[Zope-Checkins] CVS: ZODB3/ZEO/tests - ConnectionTests.py:1.47

Jeremy Hylton jeremy at zope.com
Thu Oct 9 10:50:55 EDT 2003


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv5429

Modified Files:
	ConnectionTests.py 
Log Message:
Give the connect thread a chance to run,
and remove old comment about disconnected errors.


=== ZODB3/ZEO/tests/ConnectionTests.py 1.46 => 1.47 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.46	Thu Oct  2 19:56:31 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py	Thu Oct  9 10:50:54 2003
@@ -453,11 +453,8 @@
                          "Error after server restart; retrying.",
                          error=sys.exc_info())
                 get_transaction().abort()
-            # XXX This is a bloody pain.  We're placing a heavy burden
-            # on users to catch a plethora of exceptions in order to
-            # write robust code.  Need to think about implementing
-            # John Heintz's suggestion to make sure all exceptions
-            # inherit from POSException.
+            # Give the other thread a chance to run.
+            time.sleep(0.1)
         zLOG.LOG("checkReconnection", zLOG.INFO, "finished")
         self._storage.close()
 




More information about the Zope-Checkins mailing list