test__hub.TestCloseSocketWhilePolling: make sure that timeout is fired before the event by using a remote host

This commit is contained in:
Denis Bilenko
2009-06-17 14:50:42 +07:00
parent d6eebf4ad3
commit 3694b1e186

View File

@@ -47,7 +47,7 @@ class TestCloseSocketWhilePolling(unittest.TestCase):
try:
sock = socket.socket()
api.call_after(0, sock.close)
sock.connect(('127.0.0.1', 80))
sock.connect(('python.org', 81))
except Exception:
api.sleep(0)
else: