summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-08-13 10:26:07 (GMT)
committerGitHub <noreply@github.com>2021-08-13 10:26:07 (GMT)
commit282fc5c00787297f1d7a9b7b1469b51e84f485a9 (patch)
tree16765ff5d1b7f24296f4ef9a9967f23a618be174 /Lib/test/test_exceptions.py
parent4b86c9c5146c339c689830619be9d29b8f7bf417 (diff)
downloadcpython-282fc5c00787297f1d7a9b7b1469b51e84f485a9.zip
cpython-282fc5c00787297f1d7a9b7b1469b51e84f485a9.tar.gz
cpython-282fc5c00787297f1d7a9b7b1469b51e84f485a9.tar.bz2
[3.9] Fix the test suite for the old parser (GH-27749)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 6dd3d5d..6f192d7 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -235,7 +235,8 @@ class ExceptionTests(unittest.TestCase):
""", 9, 20)
check("pass\npass\npass\n(1+)\npass\npass\npass", 4, 4)
check("(1+)", 1, 4)
- check(b"\xef\xbb\xbf#coding: utf8\nprint('\xe6\x88\x91')\n", 0, -1)
+ check(b"\xef\xbb\xbf#coding: utf8\nprint('\xe6\x88\x91')\n", 0,
+ 0 if support.use_old_parser() else -1)
# Errors thrown by symtable.c
check('x = [(yield i) for i in range(3)]', 1, 5)