[Patches] [ python-Patches-1429818 ] trace.py needs to know about doctests
SourceForge.net
noreply at sourceforge.net
Sat Feb 11 21:22:50 CET 2006
Patches item #1429818, was opened at 2006-02-11 22:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1429818&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Marius Gedminas (mgedmin)
Assigned to: Nobody/Anonymous (nobody)
Summary: trace.py needs to know about doctests
Initial Comment:
SchoolTool's test runner uses the 'trace' module to
produce unit test coverage reports. Many unit tests in
SchoolTool are actually doctests. When the test runner
invokes trace.CoverageResults.write_results, it gets a
lot of printed error messages like this:
Not printing coverage data for '<doctest
schooltool.app.browser.tests.test_app.doctest_ACLView[60]>':
[Errno 2] No such file or directory: '<doctest
schooltool.app.browser.tests.test_app.doctest_ACLView[60]>'
and a lot of empty files with nimes like
<doctest schooltool.timetable.browser.cover
appear in the output directory.
The attached patch fixes both problems.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1429818&group_id=5470
More information about the Patches
mailing list