[Zodb-checkins] SVN: ZODB/trunk/src/zdaemon/tests/testzdrun.py Account for differences in error value repr on MacOS X.

Chris McDonough chrism at plope.com
Sun Mar 20 18:35:18 EST 2005


Log message for revision 29602:
  Account for differences in error value repr on MacOS X.
  

Changed:
  U   ZODB/trunk/src/zdaemon/tests/testzdrun.py

-=-
Modified: ZODB/trunk/src/zdaemon/tests/testzdrun.py
===================================================================
--- ZODB/trunk/src/zdaemon/tests/testzdrun.py	2005-03-20 23:26:52 UTC (rev 29601)
+++ ZODB/trunk/src/zdaemon/tests/testzdrun.py	2005-03-20 23:35:18 UTC (rev 29602)
@@ -281,7 +281,7 @@
         sock.close()
         return response
     except socket.error, msg:
-        if msg[1] == 'AF_UNIX path too long':
+        if str(msg) == 'AF_UNIX path too long':
             # MacOS has apparent small limits on the length of a UNIX
             # domain socket filename, we want to make MacOS users aware
             # of the actual problem



More information about the Zodb-checkins mailing list