Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d09d966

Browse files
committed
Changes the remote address used for tests in TimeoutTestCase from google.com to
python.org . This way the delay should be great enough for testConnectTimeout() to pass even when one has a really fast Net connection that allows connections faster than .001 seconds.
1 parent 3f5c654 commit d09d966

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class TimeoutTestCase(unittest.TestCase):
100100

101101
def setUp(self):
102102
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
103-
self.addr_remote = ('www.google.com', 80)
103+
self.addr_remote = ('www.python.org', 80)
104104
self.addr_local = ('127.0.0.1', 25339)
105105

106106
def tearDown(self):

0 commit comments

Comments
 (0)