[Zope3-checkins] SVN: Zope3/trunk/src/zope/testbrowser/browser.py # deferred import as workaround for Zope 2 testrunner issue:

Andreas Jung andreas at andreas-jung.com
Fri Jan 19 15:15:13 EST 2007


Log message for revision 72107:
  # deferred import as workaround for Zope 2 testrunner issue:
  # http://www.zope.org/Collectors/Zope/2268
  

Changed:
  U   Zope3/trunk/src/zope/testbrowser/browser.py

-=-
Modified: Zope3/trunk/src/zope/testbrowser/browser.py
===================================================================
--- Zope3/trunk/src/zope/testbrowser/browser.py	2007-01-19 17:55:46 UTC (rev 72106)
+++ Zope3/trunk/src/zope/testbrowser/browser.py	2007-01-19 20:15:08 UTC (rev 72107)
@@ -16,7 +16,6 @@
 $Id$
 """
 __docformat__ = "reStructuredText"
-from test import pystone
 from zope.testbrowser import interfaces
 import ClientForm
 from cStringIO import StringIO
@@ -100,6 +99,10 @@
     @property
     def pystonesPerSecond(self):
         """How many pystones are equivalent to one second on this machine"""
+
+        # deferred import as workaround for Zope 2 testrunner issue:
+        # http://www.zope.org/Collectors/Zope/2268
+        from test import pystone
         if self._pystones_per_second == None:
             self._pystones_per_second = pystone.pystones(pystone.LOOPS/10)[1]
         return self._pystones_per_second



More information about the Zope3-Checkins mailing list