[Biopython-dev] run_tests.py rewrite

Michiel de Hoon mjldehoon at yahoo.com
Wed Feb 4 10:30:31 UTC 2009


I've uploaded to CVS a modified version of run_tests.py to address import errors. Could you have a look to see if you agree with my solution?

--Michiel.

--- On Tue, 2/3/09, Peter <biopython at maubp.freeserve.co.uk> wrote:

> From: Peter <biopython at maubp.freeserve.co.uk>
> Subject: Re: [Biopython-dev] run_tests.py rewrite
> To: mjldehoon at yahoo.com
> Cc: biopython-dev at biopython.org
> Date: Tuesday, February 3, 2009, 9:02 AM
> Michiel,
> 
> I've noticed that for print-and-compare tests we can
> get unexpected
> errors from the line:
> module = __import__(name)
> 
> For example, if there is an IOError in test_SeqIO_online.py
> this does
> not get caught - we only try to catch a
> MissingExternalDependencyError.  Perhaps we should also
> catch any
> generic exception and report that test as a failure. 
> Otherwise, the
> run_test.py file terminates prematurely.
> 
> Would you like to look into this, or should I?
> 
> Peter


      



More information about the Biopython-dev mailing list