summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-03 19:19:24 +0000
committerGuido van Rossum <guido@python.org>2007-08-03 19:19:24 +0000
commit227bf520935cf9837c56f89551370ab1d0dac959 (patch)
treedc0a87babf92362c4f5621571fb02f0f2799611e /Lib/test/test_urllib2.py
parent55e438c1a94ba4bc7309846671a53efca017c493 (diff)
downloadcpython-227bf520935cf9837c56f89551370ab1d0dac959.tar.gz
SF patch# 1762940 by Joe Gregorio.
Fix test_cookielib and test_urllib2. (The changes to urllib make urllib.quote() work correctly for Unicode strings; but they don't fix test_urllib.)
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 488e9e2b93..e3e6de26e6 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1003,7 +1003,7 @@ class HandlerTests(unittest.TestCase):
self.assertEqual(len(http_handler.requests), 2)
self.assertFalse(http_handler.requests[0].has_header(auth_header))
userpass = '%s:%s' % (user, password)
- auth_hdr_value = 'Basic '+base64.encodestring(userpass).strip()
+ auth_hdr_value = 'Basic ' + str(base64.encodestring(userpass)).strip()
self.assertEqual(http_handler.requests[1].get_header(auth_header),
auth_hdr_value)