[Biopython-dev] [Bug 3139] python setup.py test ends with error code 0 even on failure

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Sep 28 21:36:34 UTC 2010


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





------- Comment #1 from biopython-bugzilla at maubp.freeserve.co.uk  2010-09-28 17:36 EST -------
Hi Taigo,

I removed a sys.exit(...) call from run_tests.py because it was annoying if
running the tests from IDLE. With hindsight that was short sighted of me and
should be reverted pending a better solution - see:

http://github.com/biopython/biopython/commit/7def689001f1f457d754703d0f233f82b33c9074

Furthermore the TestRunner class method run should return a value to be used
as the return code. Since 0 is success, and 2 is already used for bad args,
I suggest 1 for at least one test failure.

If we have "python run_tests.py" returning useful error codes, then it is
easier (but not essential) to do the same for "python setup.py test".

Peter


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