[Biopython-dev] [Bug 2524] Handle missing libraries like numpy or reportlab in run_tests.py

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Nov 14 15:35:18 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2524


biopython-bugzilla at maubp.freeserve.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from biopython-bugzilla at maubp.freeserve.co.uk  2008-11-14 10:35 EST -------
Fixed the numpy test cases (they were getting annoying with python 2.6 on
Windows where numpy isn't yet available).  The reportlab tests already fail
gracefully.

I ended up going down this route:

> (b) Modify all the tests using these semi-optional libraries to catch
> the ImportError and raise MissingExternalDependencyError instead.  As
> the tests themselves generally don't directly import the external
> library this is perhaps messy.

Marking this bug as fixed.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list