[Python-3000-checkins] r62088 - python/branches/py3k/Lib/test/test_xmlrpc_net.py

neal.norwitz python-3000-checkins at python.org
Tue Apr 1 09:38:42 CEST 2008


Author: neal.norwitz
Date: Tue Apr  1 09:38:41 2008
New Revision: 62088

Modified:
   python/branches/py3k/Lib/test/test_xmlrpc_net.py
Log:
Be more forgiving if we get an error, there are lots of potential socket errors

Modified: python/branches/py3k/Lib/test/test_xmlrpc_net.py
==============================================================================
--- python/branches/py3k/Lib/test/test_xmlrpc_net.py	(original)
+++ python/branches/py3k/Lib/test/test_xmlrpc_net.py	Tue Apr  1 09:38:41 2008
@@ -17,9 +17,7 @@
         try:
             t0 = server.currentTime.getCurrentTime()
         except socket.error as e:
-            if e.errno != errno.ECONNRESET:
-                raise
-            print("    test_current_time: socket got reset, skipping test",
+            print("    test_current_time: skipping test, got error: %s" % e,
                   file=sys.stderr)
             return
 


More information about the Python-3000-checkins mailing list