Commit f1806ea5 authored by Georg Brandl's avatar Georg Brandl

Backport b533cc11d114 to fix intermittent test_urllibnet failures.

parent adaa0aa4
......@@ -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 "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment