Commit a45ea582 authored by Guido van Rossum's avatar Guido van Rossum

Make test_fileio.py work.

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