Backport b533cc11d114 to fix intermittent test_urllibnet failures.

This commit is contained in:
Georg Brandl 2014-09-30 17:30:18 +02:00
parent 4615076471
commit 3bc35672a2
1 changed files with 1 additions and 1 deletions

View File

@ -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 "