[Zope3-checkins] SVN: Zope3/trunk/src/zope/testbrowser/testing.py delay import to facilitate stand-alone zope.testbrowser distribution

Benji York benji at zope.com
Sun Nov 6 21:17:23 EST 2005


Log message for revision 39954:
  delay import to facilitate stand-alone zope.testbrowser distribution
  

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

-=-
Modified: Zope3/trunk/src/zope/testbrowser/testing.py
===================================================================
--- Zope3/trunk/src/zope/testbrowser/testing.py	2005-11-07 02:13:41 UTC (rev 39953)
+++ Zope3/trunk/src/zope/testbrowser/testing.py	2005-11-07 02:17:22 UTC (rev 39954)
@@ -22,7 +22,6 @@
 import mechanize
 import ClientCookie
 
-from zope.app.testing.functional import HTTPCaller
 from zope.testbrowser import browser
 
 
@@ -30,8 +29,9 @@
     """A ``urllib2`` compatible connection obejct."""
 
     def __init__(self, host):
+        from zope.app.testing.functional import HTTPCaller
+        self.caller = HTTPCaller()
         self.host = host
-        self.caller = HTTPCaller()
 
     def set_debuglevel(self, level):
         pass



More information about the Zope3-Checkins mailing list