Kaydet (Commit) 3e186154 authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Fix test: readline() now returns bytes

üst 66dc8c59
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment