diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-24 16:53:16 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-24 16:53:16 (GMT) |
commit | ca2fc9eb1fd987b8885d7126f2b541a6c2636d53 (patch) | |
tree | da4cb1ce852691d443f3e2473aa6339b305788f5 /Lib/test/test_urllib2.py | |
parent | 0facd77015465ac7bd486f5cb98d6265f61428a9 (diff) | |
download | cpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.zip cpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.tar.gz cpython-ca2fc9eb1fd987b8885d7126f2b541a6c2636d53.tar.bz2 |
Merged revisions 78422 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78422 | senthil.kumaran | 2010-02-24 22:15:46 +0530 (Wed, 24 Feb 2010) | 2 lines
Fix for Issue3819 - urllib2 sends Basic auth across redirects
........
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index f77537d..11848e0 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -1145,7 +1145,8 @@ class HandlerTests(unittest.TestCase): base64.encodebytes(userpass).strip().decode()) self.assertEqual(http_handler.requests[1].get_header(auth_header), auth_hdr_value) - + self.assertEqual(http_handler.requests[1].unredirected_hdrs[auth_header], + auth_hdr_value) # if the password manager can't find a password, the handler won't # handle the HTTP auth error password_manager.user = password_manager.password = None |