diff options
author | Xiang Zhang <angwerzx@126.com> | 2017-04-15 05:25:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-15 05:25:15 (GMT) |
commit | d5fa5f3ce7d9003bbd3975d1bf634043305ae18f (patch) | |
tree | 82915931446d0a3eb293741ea8c593a35657449e /Lib/test/test_io.py | |
parent | 05bfbcd233b2f5ba0d0634a380092d6ead6b35e1 (diff) | |
download | cpython-d5fa5f3ce7d9003bbd3975d1bf634043305ae18f.zip cpython-d5fa5f3ce7d9003bbd3975d1bf634043305ae18f.tar.gz cpython-d5fa5f3ce7d9003bbd3975d1bf634043305ae18f.tar.bz2 |
bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1130) (#1150)
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 8f895fe..e04baef 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -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) |