summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-06-11 16:30:46 (GMT)
committerGitHub <noreply@github.com>2020-06-11 16:30:46 (GMT)
commit1ed83adb0e95305af858bd41af531e487f54fee7 (patch)
tree5b05876e1800975fd2f0b8021544423f9fd9822a /Lib/test/test_exceptions.py
parent311110abcd8ab648dbf1803e36a8ba5d93fa019b (diff)
downloadcpython-1ed83adb0e95305af858bd41af531e487f54fee7.zip
cpython-1ed83adb0e95305af858bd41af531e487f54fee7.tar.gz
cpython-1ed83adb0e95305af858bd41af531e487f54fee7.tar.bz2
bpo-40939: Remove the old parser (GH-20768)
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 196f31e..feae31b 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -251,9 +251,9 @@ class ExceptionTests(unittest.TestCase):
check('def f():\n x, y: int', 2, 3)
check('[*x for x in xs]', 1, 2)
check('foo(x for x in range(10), 100)', 1, 5)
- check('(yield i) = 2', 1, 1 if support.use_old_parser() else 2)
- check('def f(*):\n pass', 1, 7 if support.use_old_parser() else 8)
- check('for 1 in []: pass', 1, 5 if support.use_old_parser() else 7)
+ check('(yield i) = 2', 1, 2)
+ check('def f(*):\n pass', 1, 8)
+ check('for 1 in []: pass', 1, 7)
@cpython_only
def testSettingException(self):