mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
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 ........
This commit is contained in:
parent
a731bf1717
commit
4fec9ce601
3 changed files with 16 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue