Fix test: readline() now returns bytes

This commit is contained in:
Jeremy Hylton 2007-08-04 03:46:11 +00:00
parent 66dc8c59be
commit 3e18615496

View file

@ -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: