summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-04-04 17:20:05 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-04-04 17:20:05 (GMT)
commit772033f08cc9116b4a6dd6ba1ed9fb5aa263dad5 (patch)
tree323c4e9509d45821c47327fe44df807d2f0b7b12 /Lib
parentea0d7444c8be91202a5b563d865aa479f90e10df (diff)
downloadcpython-772033f08cc9116b4a6dd6ba1ed9fb5aa263dad5.zip
cpython-772033f08cc9116b4a6dd6ba1ed9fb5aa263dad5.tar.gz
cpython-772033f08cc9116b4a6dd6ba1ed9fb5aa263dad5.tar.bz2
No behavior change.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_mmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index d6c62c1..9e28b34 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()