mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Make test_fileio.py work.
This commit is contained in:
parent
ea0ebd8075
commit
a45ea5828e
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue