Kaydet (Commit) a45ea582 authored tarafından Guido van Rossum's avatar Guido van Rossum

Make test_fileio.py work.

üst ea0ebd80
...@@ -61,7 +61,7 @@ class AutoFileTests(unittest.TestCase): ...@@ -61,7 +61,7 @@ class AutoFileTests(unittest.TestCase):
# verify readinto # verify readinto
self.f.write(bytes([1, 2])) self.f.write(bytes([1, 2]))
self.f.close() self.f.close()
a = array('b', 'x'*10) a = array('b', b'x'*10)
self.f = _fileio._FileIO(TESTFN, 'r') self.f = _fileio._FileIO(TESTFN, 'r')
n = self.f.readinto(a) n = self.f.readinto(a)
self.assertEquals(array('b', [1, 2]), a[:n]) self.assertEquals(array('b', [1, 2]), a[:n])
......
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