[Zodb-checkins] SVN: ZODB/branches/3.7/src/ZEO/tests/forker.py
Darwin generates a different error number when trying to
connect to a
Jim Fulton
jim at zope.com
Mon Aug 14 14:13:25 EDT 2006
Log message for revision 69486:
Darwin generates a different error number when trying to connect to a
port that nothing's listening on.
Changed:
U ZODB/branches/3.7/src/ZEO/tests/forker.py
-=-
Modified: ZODB/branches/3.7/src/ZEO/tests/forker.py
===================================================================
--- ZODB/branches/3.7/src/ZEO/tests/forker.py 2006-08-14 18:11:00 UTC (rev 69485)
+++ ZODB/branches/3.7/src/ZEO/tests/forker.py 2006-08-14 18:13:24 UTC (rev 69486)
@@ -185,7 +185,12 @@
break
raise
except socket.error, e:
- if e[0] == errno.ECONNREFUSED and i > 0:
+ if (e[0] == errno.ECONNREFUSED
+ or
+ # MAC OS X uses EINVAL when connecting to a port
+ # that isn't being listened on.
+ (sys.platform == 'darwin' and e[0] == errno.EINVAL)
+ ) and i > 0:
break
raise
try:
More information about the Zodb-checkins
mailing list