diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-01 07:38:41 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-04-01 07:38:41 (GMT) |
commit | f7276c9b0e06a920ae917441b2f3d2e113d89612 (patch) | |
tree | bcd1124d2bda986db6d6b16ce3a2d2eb7db5b67c /Lib | |
parent | d2bee32e9e0030dee22249a18998c079eec3b8cb (diff) | |
download | cpython-f7276c9b0e06a920ae917441b2f3d2e113d89612.zip cpython-f7276c9b0e06a920ae917441b2f3d2e113d89612.tar.gz cpython-f7276c9b0e06a920ae917441b2f3d2e113d89612.tar.bz2 |
Be more forgiving if we get an error, there are lots of potential socket errors
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_xmlrpc_net.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_xmlrpc_net.py b/Lib/test/test_xmlrpc_net.py index 260bc24..e62fcb6 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 |