mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Backport b533cc11d114 to fix intermittent test_urllibnet failures.
This commit is contained in:
parent
4615076471
commit
3bc35672a2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue