[Zope3-checkins]
SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/
move process exit out to the `main` function
Christian Theune
ct at gocept.com
Sat May 3 16:23:57 EDT 2008
Log message for revision 86289:
move process exit out to the `main` function
Changed:
U zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py
U zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py
-=-
Modified: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py
===================================================================
--- zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py 2008-05-03 20:21:53 UTC (rev 86288)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/__init__.py 2008-05-03 20:23:57 UTC (rev 86289)
@@ -28,6 +28,8 @@
# the large refactoring.
runner = Runner(defaults, args)
failed = runner.run()
+ if failed and runner.options.exitwithstatus:
+ sys.exit(1)
return failed
Modified: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py
===================================================================
--- zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py 2008-05-03 20:21:53 UTC (rev 86288)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py 2008-05-03 20:23:57 UTC (rev 86289)
@@ -104,9 +104,6 @@
shutdown()
self.shutdown_features()
- if failed and self.options.exitwithstatus:
- sys.exit(1)
-
return failed
def configure(self):
More information about the Zope3-Checkins
mailing list