summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2017-04-15 04:47:28 (GMT)
committerGitHub <noreply@github.com>2017-04-15 04:47:28 (GMT)
commit026435ce49419a3366171416c68114dd8a1144c7 (patch)
treebc20a7681507de85662e789a3331b3a048bdaed6 /Lib/test/test_io.py
parenteaeda64c2fd2abd33e59b03298f9cdc9e8efef89 (diff)
downloadcpython-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.py1
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)