[Zope-Checkins] CVS: Zope/utilities - testrunner.py:1.35
Fred L. Drake, Jr.
fred@zope.com
Fri, 31 Jan 2003 10:46:45 -0500
Update of /cvs-repository/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv6860
Modified Files:
testrunner.py
Log Message:
Don't raise an AttributeError when using -t and no matching tests are
found.
=== Zope/utilities/testrunner.py 1.34 => 1.35 ===
--- Zope/utilities/testrunner.py:1.34 Thu Jan 30 17:11:34 2003
+++ Zope/utilities/testrunner.py Fri Jan 31 10:46:42 2003
@@ -246,6 +246,10 @@
class TimingTestRunner(unittest.TextTestRunner):
+ def __init__(self, *args, **kw):
+ unittest.TextTestRunner.__init__(self, *args, **kw)
+ self.timings = []
+
def _makeResult(self):
r = TimingTestResult(self.stream, self.descriptions, self.verbosity)
self.timings = r.timings