[Zope-Checkins] CVS: Zope/utilities - testrunner.py:1.27.4.1
Chris McDonough
chrism@zope.com
Tue, 10 Sep 2002 23:36:39 -0400
Update of /cvs-repository/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv22446/utilities
Modified Files:
Tag: chrism-install-branch
testrunner.py
Log Message:
Merging chrism-install-branch with HEAD changes.
=== Zope/utilities/testrunner.py 1.27 => 1.27.4.1 ===
--- Zope/utilities/testrunner.py:1.27 Wed Aug 14 17:22:57 2002
+++ Zope/utilities/testrunner.py Tue Sep 10 23:36:38 2002
@@ -90,8 +90,11 @@
return 0
def runSuite(self, suite):
- runner=unittest.TextTestRunner(stream=sys.stderr, verbosity=self.verbosity)
- self.results.append(runner.run(suite))
+ if suite:
+ runner=unittest.TextTestRunner(stream=sys.stderr, verbosity=self.verbosity)
+ self.results.append(runner.run(suite))
+ else:
+ self.report('No suitable tests found')
def report(self, message):
sys.stderr.write( '%s\n' % message )