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

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sat Dec 1 18:25:56 UTC 2007


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.



More information about the Biopython-dev mailing list