[Zope3-checkins] 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 ct at gocept.com
Sat May 3 18:12:05 EDT 2008


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:



More information about the Zope3-Checkins mailing list