[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py fix logic error

Benji York benji at zope.com
Thu Sep 29 15:26:52 EDT 2005


Log message for revision 38695:
  fix logic error
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2005-09-29 19:19:59 UTC (rev 38694)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2005-09-29 19:26:52 UTC (rev 38695)
@@ -1382,9 +1382,9 @@
 
     # Python <= 2.4.1 had a bug that prevented hotshot from runnint in
     # non-optimize mode
-    if sys.version_info[:3] > (2,4,1) or __debug__:
+    if sys.version_info[:3] > (2,4,1) or not __debug__:
         # some Linux distributions don't include the profiling module (which
-        # hotshot depends on)
+        # hotshot.stats depends on)
         try:
             import hotshot.stats
         except ImportError:



More information about the Zope3-Checkins mailing list