]> granicus.if.org Git - python/commitdiff
Make test_fileio.py work.
authorGuido van Rossum <guido@python.org>
Tue, 15 May 2007 21:25:12 +0000 (21:25 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 15 May 2007 21:25:12 +0000 (21:25 +0000)
Lib/test/test_fileio.py

index 5bad8436ea4d9f8fd80e0f760ee4122285b41a9d..064ec0caad8e2dc2f9ca82282c3a9ce4fd0aaeb2 100644 (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])