[Biopython-dev] [Bug 2613] test_Wise and test_psw fail under Python 2.3

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Oct 7 17:07:33 UTC 2008


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





------- Comment #3 from biopython-bugzilla at maubp.freeserve.co.uk  2008-10-07 13:07 EST -------
(In reply to comment #2)
> If you look at test_psw and test_wise, you'll see that these make use of
> Python's generic test framework, with asserts in the test code. Instead,
> Biopython's testing framework expects each test code to print out stuff,
> which then gets matched to an output file. Sometimes it makes more sense
> to use Python's testing framework directly; there are several more tests
> for which the output file required by Biopython does not contain useful
> information (output/test_Cluster is another example). In such cases, I
> suggest we stop requiring the output file and simply rely on Python's
> testing framework directly. This will solve the issue with test_Wise and
> test_psw, and will let us get rid of unnecessary output files.

So if there is an expected output file, then run_tests.py will continue to do
the comparison as now.  However, if there is no output file it will instead
just run the code - which presumably will throw an exception if something is
wrong (even just an assert statement)?

I haven't looked at run_tests.py to see how easy such a change would be, but in
principle it sounds fine.


-- 
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