cpython: adf1e04478b4 (original) (raw)
Mercurial > cpython
changeset 89989:adf1e04478b4 3.4
Issue #21069: Temporarily use www.google.com while investigating test_urllibnet.test_fileno intermittent failures with www.example.com. [#21069]
Ned Deily nad@acm.org | |
---|---|
date | Thu, 27 Mar 2014 01:39:28 -0700 |
parents | b533cc11d114 |
children | 8d4cace71113 07984815003f |
files | Lib/test/test_urllibnet.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_urllibnet.py 2 |
line wrap: on
line diff
--- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -101,7 +101,7 @@ class urlopenNetworkTests(unittest.TestC @unittest.skipIf(sys.platform in ('win32',), 'not appropriate for Windows') def test_fileno(self): # Make sure fd returned by fileno is valid.
with self.urlopen("http://www.example.com/", timeout=None) as open_url:[](#l1.7)
with self.urlopen("http://www.google.com/", timeout=None) as open_url:[](#l1.8) fd = open_url.fileno()[](#l1.9) with os.fdopen(fd, 'rb') as f:[](#l1.10) self.assertTrue(f.read(), "reading from file created using fd "[](#l1.11)