[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/testing/doctestunit.py Merged from trunk:

Jim Fulton jim at zope.com
Fri Jul 23 17:35:13 EDT 2004


Log message for revision 26733:
  Merged from trunk:
  
    r26732 | jim | 2004-07-23 17:31:27 -0400 (Fri, 23 Jul 2004) | 7 lines
  
  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/branches/ZopeX3-3.0/src/zope/testing/doctestunit.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/testing/doctestunit.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/testing/doctestunit.py	2004-07-23 21:31:27 UTC (rev 26732)
+++ Zope3/branches/ZopeX3-3.0/src/zope/testing/doctestunit.py	2004-07-23 21:35:13 UTC (rev 26733)
@@ -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