summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-11-20 17:26:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-11-20 17:26:25 (GMT)
commit5a1ca6e36802f48a6cbcbd563770427ded747e0f (patch)
tree4839f8d50529d34dde76dd22e9707884cf5b5968 /Lib
parente062ba48b6945ed0fa8be65d26ddbf88374293c0 (diff)
downloadcpython-5a1ca6e36802f48a6cbcbd563770427ded747e0f.zip
cpython-5a1ca6e36802f48a6cbcbd563770427ded747e0f.tar.gz
cpython-5a1ca6e36802f48a6cbcbd563770427ded747e0f.tar.bz2
Merged revisions 86587 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86587 | benjamin.peterson | 2010-11-20 11:24:04 -0600 (Sat, 20 Nov 2010) | 1 line correct logic when pos is after the string #10467 ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_memoryio.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_memoryio.py b/Lib/test/test_memoryio.py
index 89c8196..027ac94 100644
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -392,6 +392,11 @@ class PyBytesIOTest(MemoryTestMixin, MemorySeekTestMixin, unittest.TestCase):
self.assertEqual(a.tostring(), b"1234567890d")
memio.close()
self.assertRaises(ValueError, memio.readinto, b)
+ memio = self.ioclass(b"123")
+ b = bytearray()
+ memio.seek(42)
+ memio.readinto(b)
+ self.assertEqual(b, b"")
def test_relative_seek(self):
buf = self.buftype("1234567890")