summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_memoryio.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-11-20 17:31:08 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-11-20 17:31:08 (GMT)
commit4fec9ce6017c497e884df1a1a3d70d4d8661a3ab (patch)
tree9f28fbbdd2b762a239dd0941405484dc3e9208b8 /Lib/test/test_memoryio.py
parenta731bf17171e7c963492ddec3140c5eb7fdfda20 (diff)
downloadcpython-4fec9ce6017c497e884df1a1a3d70d4d8661a3ab.zip
cpython-4fec9ce6017c497e884df1a1a3d70d4d8661a3ab.tar.gz
cpython-4fec9ce6017c497e884df1a1a3d70d4d8661a3ab.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/test/test_memoryio.py')
-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 2b4c76e..8d95a64 100644
--- a/Lib/test/test_memoryio.py
+++ b/Lib/test/test_memoryio.py
@@ -438,6 +438,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")