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

This commit is contained in:
Xiang Zhang 2017-04-15 12:47:28 +08:00 committed by GitHub
parent eaeda64c2f
commit 026435ce49
3 changed files with 22 additions and 10 deletions

View file

@ -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)