Make test_fileio.py work.

This commit is contained in:
Guido van Rossum 2007-05-15 21:25:12 +00:00
parent ea0ebd8075
commit a45ea5828e
1 changed files with 1 additions and 1 deletions

View File

@ -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])