[Python-checkins] cpython (3.2): Backport b533cc11d114 to fix intermittent test_urllibnet failures.

georg.brandl python-checkins at python.org
Tue Sep 30 17:30:36 CEST 2014


https://hg.python.org/cpython/rev/2802f5cd1384
changeset:   92674:2802f5cd1384
branch:      3.2
parent:      92672:89b2d5d0f23d
user:        Georg Brandl <georg at python.org>
date:        Tue Sep 30 17:30:18 2014 +0200
summary:
  Backport b533cc11d114 to fix intermittent test_urllibnet failures.

files:
  Lib/test/test_urllibnet.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -104,7 +104,7 @@
             # 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 "

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list