summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllibnet.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2007-08-04 03:46:11 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2007-08-04 03:46:11 (GMT)
commit3e186154961c760422d04c2db47f80c3067ef749 (patch)
treebf50ea1cfc02e037ada58d937a364f81665a510f /Lib/test/test_urllibnet.py
parent66dc8c59be78325cacb8d5c65754bfb0a2bee772 (diff)
downloadcpython-3e186154961c760422d04c2db47f80c3067ef749.zip
cpython-3e186154961c760422d04c2db47f80c3067ef749.tar.gz
cpython-3e186154961c760422d04c2db47f80c3067ef749.tar.bz2
Fix test: readline() now returns bytes
Diffstat (limited to 'Lib/test/test_urllibnet.py')
-rw-r--r--Lib/test/test_urllibnet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 675184b..ebd9d2d 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -54,8 +54,8 @@ class urlopenNetworkTests(unittest.TestCase):
# Test both readline and readlines.
open_url = urllib.urlopen("http://www.python.org/")
try:
- self.assert_(isinstance(open_url.readline(), basestring),
- "readline did not return a string")
+ self.assert_(isinstance(open_url.readline(), bytes),
+ "readline did not return bytes")
self.assert_(isinstance(open_url.readlines(), list),
"readlines did not return a list")
finally: