From bcc30360951a303aa72b0502b77aad2c5f09f30d Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 14 May 2020 21:11:48 +0100 Subject: bpo-40619: Correctly handle error lines in programs without file mode (GH-20090) --- Lib/test/test_exceptions.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/test/test_exceptions.py') diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index b689ec7aed..efd77fdbaa 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) -- cgit v1.2.1