summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 21:47:52 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 21:47:52 (GMT)
commit98b349f8e6efc5c1994e506c02a755f311d49f03 (patch)
tree2eb82600c7f8eff6ed00ae6253ee2e78b3c15f2b /Lib/test
parent1f2ca56e296bea2e1374458a7ec40692e7145174 (diff)
downloadcpython-98b349f8e6efc5c1994e506c02a755f311d49f03.zip
cpython-98b349f8e6efc5c1994e506c02a755f311d49f03.tar.gz
cpython-98b349f8e6efc5c1994e506c02a755f311d49f03.tar.bz2
Fix some tests I broke. (More to follow.)
Diffstat (limited to 'Lib/test')
-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 22979f6..5cbc652 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -998,7 +998,7 @@ class HandlerTests(unittest.TestCase):
# expect one request without authorization, then one with
self.assertEqual(len(http_handler.requests), 2)
self.assertFalse(http_handler.requests[0].has_header(auth_header))
- userpass = '%s:%s' % (user, password)
+ userpass = bytes('%s:%s' % (user, password), "ascii")
auth_hdr_value = 'Basic ' + str(base64.encodestring(userpass)).strip()
self.assertEqual(http_handler.requests[1].get_header(auth_header),
auth_hdr_value)