From: Neal Norwitz Date: Tue, 1 Apr 2008 07:38:41 +0000 (+0000) Subject: Be more forgiving if we get an error, there are lots of potential socket errors X-Git-Tag: v3.0a4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7276c9b0e06a920ae917441b2f3d2e113d89612;p=thirdparty%2FPython%2Fcpython.git Be more forgiving if we get an error, there are lots of potential socket errors --- diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py index 260bc240a6be..e62fcb6faebb 100644 --- a/Lib/test/test_xmlrpc_net.py +++ b/Lib/test/test_xmlrpc_net.py @@ -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