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

This commit is contained in:
Neal Norwitz 2008-04-01 07:38:41 +00:00
parent d2bee32e9e
commit f7276c9b0e

View 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