SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/ move process exit out to the `main` function

Christian Theune <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
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):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.