Commit 59bedce7 authored by Denis Bilenko's avatar Denis Bilenko

fix test__server.py failure on Windows

parent 74ea159b
......@@ -262,7 +262,11 @@ class TestDefaultSpawn(TestCase):
assert result.startswith('HTTP/1.0 500 Internal Server Error'), repr(result)
except socket.error:
ex = sys.exc_info()[1]
if ex.args[0] != errno.ECONNRESET:
if ex.args[0] == 10053:
pass # "established connection was aborted by the software in your host machine"
elif ex.args[0] == errno.ECONNRESET:
pass
else:
raise
finally:
timeout.cancel()
......
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