[Checkins] SVN: zope.tal/trunk/src/zope/tal/tests/test_files.py Make it possible to filter FileTestCases by filename.
Marius Gedminas
cvs-admin at zope.org
Sat Feb 9 16:53:52 UTC 2013
Log message for revision 129240:
Make it possible to filter FileTestCases by filename.
Example: bin/test -t test04.xml
Changed:
U zope.tal/trunk/src/zope/tal/tests/test_files.py
-=-
Modified: zope.tal/trunk/src/zope/tal/tests/test_files.py
===================================================================
--- zope.tal/trunk/src/zope/tal/tests/test_files.py 2013-02-09 05:29:09 UTC (rev 129239)
+++ zope.tal/trunk/src/zope/tal/tests/test_files.py 2013-02-09 16:53:51 UTC (rev 129240)
@@ -43,6 +43,11 @@
path = os.path.basename(self.__file)
return '%s (%s)' % (path, self.__class__)
+ def id(self):
+ return os.path.relpath(self.__file, os.path.dirname(__file__))
+
+ __str__ = id
+
def runTest(self):
basename = os.path.basename(self.__file)
if basename.startswith('test_sa'):
More information about the checkins
mailing list