Commits

Barry Warsaw committed 90ec0bc

Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.

  • Participants
  • Parent commits 24244a7
  • Branches 2.6

Comments (0)

Files changed (1)

File Lib/test/test_urllib2.py

         h = urllib2.HTTPRedirectHandler()
         o = h.parent = MockOpener()
         req = Request(from_url)
+        req.timeout = socket._GLOBAL_DEFAULT_TIMEOUT
 
         for scheme in invalid_schemes:
             invalid_url = scheme + '://' + schemeless_url