From 772033f08cc9116b4a6dd6ba1ed9fb5aa263dad5 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Sat, 4 Apr 2009 17:20:05 +0000 Subject: [PATCH] No behavior change. --- Lib/test/test_mmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index d6c62c192f7..9e28b34806e 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -513,7 +513,7 @@ class MmapTests(unittest.TestCase): # Test write_byte() for i in xrange(len(data)): self.assertEquals(m.tell(), i) - m.write_byte(data[i:i+1]) + m.write_byte(data[i]) self.assertEquals(m.tell(), i+1) self.assertRaises(ValueError, m.write_byte, "x") self.assertEquals(m[:], data) @@ -521,7 +521,7 @@ class MmapTests(unittest.TestCase): m.seek(0) for i in xrange(len(data)): self.assertEquals(m.tell(), i) - self.assertEquals(m.read_byte(), data[i:i+1]) + self.assertEquals(m.read_byte(), data[i]) self.assertEquals(m.tell(), i+1) self.assertRaises(ValueError, m.read_byte) # Test read()