[Zope3-checkins] SVN: Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/ remove some comments and some hacks for (I believe) fixed race conditions

Benji York benji at zope.com
Sat Jul 29 22:32:51 EDT 2006


Log message for revision 69295:
  remove some comments and some hacks for (I believe) fixed race conditions
  

Changed:
  U   Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/proxy.py
  U   Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/real.txt

-=-
Modified: Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/proxy.py
===================================================================
--- Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/proxy.py	2006-07-30 02:22:10 UTC (rev 69294)
+++ Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/proxy.py	2006-07-30 02:32:50 UTC (rev 69295)
@@ -107,12 +107,10 @@
                 self.send_header('Content-Type', 'text/plain')
                 self.end_headers()
                 self.wfile.write(simplejson.dumps(response))
-                import time;time.sleep(1)
                 return
 
         soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         try:
-#            print 'sending', self.remote_host
             request = StringIO()
             request.write("%s %s %s\r\n" % (
                 self.command,
@@ -124,7 +122,6 @@
             request.write("\r\n")
             response = self.caller(request.getvalue())
             self.connection.send(response.getOutput())
-#            print 'done with', self.path
         finally:
             self.connection.close()
 

Modified: Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/real.txt
===================================================================
--- Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/real.txt	2006-07-30 02:22:10 UTC (rev 69294)
+++ Zope3/branches/benji-testbrowser-with-real-browsers-take-2/src/zope/testbrowser/real/real.txt	2006-07-30 02:32:50 UTC (rev 69295)
@@ -47,8 +47,7 @@
 goBack doesn't work. XXX
 
     >>> browser.getLink('[top]', index=0).click()
-    >>> browser.goBack()
-    >>> import time; time.sleep(1) # XXX race condition
+    >>> browser.goBack() # XXX race condition here?
     >>> original_contents == browser.contents
     False
 



More information about the Zope3-Checkins mailing list