diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-14 20:11:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 20:11:48 (GMT) |
commit | bcc30360951a303aa72b0502b77aad2c5f09f30d (patch) | |
tree | 2a34a277802399700512ff2fe203c20fde0b6122 /Lib | |
parent | a482dc500b6ec4889f6a126ba08cbad6c11e37bc (diff) | |
download | cpython-bcc30360951a303aa72b0502b77aad2c5f09f30d.zip cpython-bcc30360951a303aa72b0502b77aad2c5f09f30d.tar.gz cpython-bcc30360951a303aa72b0502b77aad2c5f09f30d.tar.bz2 |
bpo-40619: Correctly handle error lines in programs without file mode (GH-20090)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b689ec7..efd77fd 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -228,6 +228,8 @@ class ExceptionTests(unittest.TestCase): def baz(): '''quux''' """, 9, 20) + check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4) + check("(1+)", 1, 4) # Errors thrown by symtable.c check('x = [(yield i) for i in range(3)]', 1, 5) |