From: Guido van Rossum Date: Tue, 15 May 2007 21:25:12 +0000 (+0000) Subject: Make test_fileio.py work. X-Git-Tag: v3.0a1~946 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a45ea5828e8e9ca9ed18c0de7d81486a86bbe058;p=thirdparty%2FPython%2Fcpython.git Make test_fileio.py work. --- diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index 5bad8436ea4d..064ec0caad8e 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -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])