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

Jeremy Hylton jeremy at zope.com
Thu Oct 16 11:08:47 EDT 2003


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

Modified Files:
      Tag: Zope-2_7-branch
	ConnectionTests.py 
Log Message:
Port changes from head.


=== ZODB3/ZEO/tests/ConnectionTests.py 1.40.4.2 => 1.40.4.3 ===
--- ZODB3/ZEO/tests/ConnectionTests.py:1.40.4.2	Mon Sep 15 17:26:54 2003
+++ ZODB3/ZEO/tests/ConnectionTests.py	Thu Oct 16 11:08:47 2003
@@ -16,13 +16,10 @@
 import sys
 import time
 import random
-import select
 import socket
 import asyncore
 import tempfile
-import thread # XXX do we really need to catch thread.error
 import threading
-import time
 
 import zLOG
 
@@ -456,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