mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130)
This commit is contained in:
parent
eaeda64c2f
commit
026435ce49
3 changed files with 22 additions and 10 deletions
|
@ -3510,6 +3510,7 @@ class MiscIOTest(unittest.TestCase):
|
|||
self.assertRaises(ValueError, f.readinto1, bytearray(1024))
|
||||
self.assertRaises(ValueError, f.readline)
|
||||
self.assertRaises(ValueError, f.readlines)
|
||||
self.assertRaises(ValueError, f.readlines, 1)
|
||||
self.assertRaises(ValueError, f.seek, 0)
|
||||
self.assertRaises(ValueError, f.tell)
|
||||
self.assertRaises(ValueError, f.truncate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue