Backport b533cc11d114 to fix intermittent test_urllibnet failures.
This commit is contained in:
parent
4615076471
commit
3bc35672a2
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue