bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) (#1150)

This commit is contained in:
Xiang Zhang 2017-04-15 13:25:15 +08:00 committed by GitHub
parent 05bfbcd233
commit d5fa5f3ce7
3 changed files with 23 additions and 11 deletions

View file

@ -3498,6 +3498,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)