Commit f7276c9b authored by Neal Norwitz's avatar Neal Norwitz

Be more forgiving if we get an error, there are lots of potential socket errors

parent d2bee32e
...@@ -17,9 +17,7 @@ class CurrentTimeTest(unittest.TestCase): ...@@ -17,9 +17,7 @@ class CurrentTimeTest(unittest.TestCase):
try: try:
t0 = server.currentTime.getCurrentTime() t0 = server.currentTime.getCurrentTime()
except socket.error as e: except socket.error as e:
if e.errno != errno.ECONNRESET: print(" test_current_time: skipping test, got error: %s" % e,
raise
print(" test_current_time: socket got reset, skipping test",
file=sys.stderr) file=sys.stderr)
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment