[Zope3-checkins] SVN: Zope3/trunk/src/zope/testing/doctestunit.py
Changed to make test selection work.
Jim Fulton
jim at zope.com
Fri Jul 23 17:31:27 EDT 2004
Log message for revision 26732:
Changed to make test selection work.
You can now name the file as a test (understanding that all dots are
converted to underscores.)
Also, the verbose listing now includes the file test file path name.
Changed:
U Zope3/trunk/src/zope/testing/doctestunit.py
-=-
Modified: Zope3/trunk/src/zope/testing/doctestunit.py
===================================================================
--- Zope3/trunk/src/zope/testing/doctestunit.py 2004-07-23 21:27:21 UTC (rev 26731)
+++ Zope3/trunk/src/zope/testing/doctestunit.py 2004-07-23 21:31:27 UTC (rev 26732)
@@ -93,8 +93,11 @@
class DocTestFileTestCase(DocTestTestCase):
+ def id(self):
+ return '_'.join(self._dt_name.split('.'))
+
def __repr__(self):
- return self._dt_name
+ return self._dt_filename
__str__ = __repr__
def format_failure(self, err):
More information about the Zope3-Checkins
mailing list