]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Be more forgiving if we get an error, there are lots of potential socket errors
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 1 Apr 2008 07:38:41 +0000 (07:38 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 1 Apr 2008 07:38:41 +0000 (07:38 +0000)
Lib/test/test_xmlrpc_net.py

index 260bc240a6beccfcfc98f6e2a0b2a1b0c6a399fa..e62fcb6faebb338ba865fc3aac2204cb1c824b89 100644 (file)
@@ -17,9 +17,7 @@ class CurrentTimeTest(unittest.TestCase):
         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