diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-04-15 04:47:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-15 04:47:28 (GMT) |
commit | 026435ce49419a3366171416c68114dd8a1144c7 (patch) | |
tree | bc20a7681507de85662e789a3331b3a048bdaed6 /Lib/test/test_io.py | |
parent | eaeda64c2fd2abd33e59b03298f9cdc9e8efef89 (diff) | |
download | cpython-026435ce49419a3366171416c68114dd8a1144c7.zip cpython-026435ce49419a3366171416c68114dd8a1144c7.tar.gz cpython-026435ce49419a3366171416c68114dd8a1144c7.tar.bz2 |
bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130)
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 929865d..32f76a6 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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) |