[Biopython-dev] [Bug 2414] New: run_tests, py fails with a single test on a test suite

Tiago Antão tiagoantao at gmail.com
Mon Dec 3 21:41:06 UTC 2007


Hi,

Could I please ask you (I suppose Peter or Michiel) to advise on this?

I have my code for coalescent simulation ready, but I am not
committing because one of my test files has only a single test (to see
if it can run the coalescent simulator, all other tests are
non-dependent on having the simulator, so are on a different test
case).

I can either put a dummy test just to have 2 tests (hack around), or
run_test can be sorted out.

Thanks
Tiago
PS - Apologies in advance if I take too much time to respond, I will
be traveling for the next 3 days.

On Dec 1, 2007 6:25 PM,  <bugzilla-daemon at portal.open-bio.org> wrote:
> http://bugzilla.open-bio.org/show_bug.cgi?id=2414
>
>            Summary: run_tests,py fails with a single test on a test suite
>            Product: Biopython
>            Version: Not Applicable
>           Platform: All
>         OS/Version: All
>             Status: NEW
>           Severity: trivial
>           Priority: P2
>          Component: Main Distribution
>         AssignedTo: biopython-dev at biopython.org
>         ReportedBy: tiagoantao at gmail.com
>
>
> When a test python file is composed of a single test, PyUnit dumps the
> following log:
> Ran 1 test in xxxs
> run_test.py on (current CVS HEAD) line 284 is only searching for the plural
> Run yy tests in xxxs
> Mini patch (not tested, but trivial)
> if expected_line[:3] == "Ran" and \
>   string.find(expected_line, " tests in ") >= 5:
> becomes, eg,
> if expected_line[:3] == "Ran" and \
>   (string.find(expected_line, " tests in ") >= 5 or
>   string.find(expected_line, " test in ") >= 5):
>
> I actually have, for now, a single case with one test, as I split my test cases
> in depending on external binaries and not depending on external binaries
> (creating a test scenario with a single test to try to run an external
> application)
>
>
> --
> 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.
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython-dev
>



-- 
http://www.tiago.org/ps



More information about the Biopython-dev mailing list