--On 19. Januar 2007 14:35:53 -0500 Benji York <[EMAIL PROTECTED]> wrote:

Andreas Jung wrote:
the Zope 2 testrunner has a problem with zope.testing:

<http://www.zope.org/Collectors/Zope/2268>

testbrowser/browser.py tries a  "from test import pystone" import it
picks up the test.py of the Zope 2 testrunner

A workaround would be to move the import above
PystoneTimer.pystonesPerSecond(). Any objections against this workaround?

I'm not sure how that would help, but I'm not exactly sure what you're
proposing, either.  Perhaps if you posted a diff it would clarify your
suggestion to me.


[EMAIL PROTECTED]:~/sandboxes/Zope/Zope/lib/python/zope/testbrowser> svn diff browser.py
Index: browser.py
===================================================================
--- browser.py  (revision 72034)
+++ browser.py  (working copy)
@@ -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,7 @@
    @property
    def pystonesPerSecond(self):
"""How many pystones are equivalent to one second on this machine"""
+        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


Attachment: pgp4WcghTLEzV.pgp
Description: PGP signature

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to