]> granicus.if.org Git - python/commitdiff
Backport b533cc11d114 to fix intermittent test_urllibnet failures.
authorGeorg Brandl <georg@python.org>
Tue, 30 Sep 2014 15:30:18 +0000 (17:30 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 30 Sep 2014 15:30:18 +0000 (17:30 +0200)
Lib/test/test_urllibnet.py

index 1b6dee261fc8795d5173d1f4e4070c9fbf488f1e..3e47d2671673cb6242ed10c4ee7da48ac30003a1 100755 (executable)
@@ -104,7 +104,7 @@ class urlopenNetworkTests(unittest.TestCase):
             # test can't pass on Windows.
             return
         # Make sure fd returned by fileno is valid.
-        with self.urlopen("http://www.example.com/", timeout=None) as open_url:
+        with self.urlopen("http://www.google.com/", timeout=None) as open_url:
             fd = open_url.fileno()
             with os.fdopen(fd, 'rb') as f:
                 self.assertTrue(f.read(), "reading from file created using fd "