SVN: zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py move test discovery before late initialisation so that profilers don't profile

Christian Theune <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
Log message for revision 86306:
  move test discovery before late initialisation so that profilers don't profile
  the test runner code.
  

Changed:
  U   zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py

-=-
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 22:10:28 UTC (rev 86305)
+++ zope.testing/branches/ctheune-cleanup/src/zope/testing/testrunner/runner.py	2008-05-03 22:12:04 UTC (rev 86306)
@@ -87,6 +87,7 @@
             return True
 
         self.setup_features()
+        self.find_tests()
 
         # Some system tools like profilers are really bad with stack frames.
         # E.g. hotshot doesn't like it when we leave the stack frame that we
@@ -95,7 +96,6 @@
             init()
 
         try:
-            self.find_tests()
             self.run_tests()
         finally:
             for shutdown in self.early_shutdown:
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.