test__hub.TestCloseSocketWhilePolling: make sure that timeout is fired before the event by using a remote host
This commit is contained in:
@@ -47,7 +47,7 @@ class TestCloseSocketWhilePolling(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
sock = socket.socket()
|
sock = socket.socket()
|
||||||
api.call_after(0, sock.close)
|
api.call_after(0, sock.close)
|
||||||
sock.connect(('127.0.0.1', 80))
|
sock.connect(('python.org', 81))
|
||||||
except Exception:
|
except Exception:
|
||||||
api.sleep(0)
|
api.sleep(0)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user