[Zope3-checkins]
SVN: Zope3/branches/3.3/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:17:19 EST 2007
Log message for revision 72108:
# deferred import as workaround for Zope 2 testrunner issue:
# http://www.zope.org/Collectors/Zope/2268
Changed:
U Zope3/branches/3.3/src/zope/testbrowser/browser.py
-=-
Modified: Zope3/branches/3.3/src/zope/testbrowser/browser.py
===================================================================
--- Zope3/branches/3.3/src/zope/testbrowser/browser.py 2007-01-19 20:15:08 UTC (rev 72107)
+++ Zope3/branches/3.3/src/zope/testbrowser/browser.py 2007-01-19 20:17:19 UTC (rev 72108)
@@ -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,11 @@
@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