[Zodb-checkins] CVS: ZODB3/ZEO/tests - testZEO.py:1.45
Guido van Rossum
guido@python.org
Tue, 17 Sep 2002 13:58:19 -0400
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv28774
Modified Files:
testZEO.py
Log Message:
In checkReconnectSwitch(), during the switch, _dostore() can fail with
a variety of exceptions. Catch all of them. (The only ones I've seen
are Disconnected and ReadOnlyError, but since we're disconnected
abruptly as part of the switch, it's possible to see any of the
exceptions that checkReconnection() catches.)
=== ZODB3/ZEO/tests/testZEO.py 1.44 => 1.45 ===
--- ZODB3/ZEO/tests/testZEO.py:1.44 Tue Sep 17 13:36:38 2002
+++ ZODB3/ZEO/tests/testZEO.py Tue Sep 17 13:58:19 2002
@@ -508,7 +508,8 @@
try:
self._dostore()
break
- except ReadOnlyError:
+ except (Disconnected, ReadOnlyError,
+ select.error, thread.error, socket.error):
time.sleep(0.1)
else:
self.fail("Couldn't store after starting a read-write server")