]> granicus.if.org Git - python/commitdiff
Changes the remote address used for tests in TimeoutTestCase from google.com to
authorBrett Cannon <bcannon@gmail.com>
Fri, 6 Aug 2004 04:30:46 +0000 (04:30 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 6 Aug 2004 04:30:46 +0000 (04:30 +0000)
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.

Lib/test/test_timeout.py

index de6aec453d88a3fa9f2c62fea833eb0c86c1d84b..69705593cb851be277d7d884e540398ba0b854f7 100644 (file)
@@ -100,7 +100,7 @@ class TimeoutTestCase(unittest.TestCase):
 
     def setUp(self):
         self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-        self.addr_remote = ('www.google.com', 80)
+        self.addr_remote = ('www.python.org', 80)
         self.addr_local  = ('127.0.0.1', 25339)
 
     def tearDown(self):