diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-08-13 10:26:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 10:26:07 (GMT) |
commit | 282fc5c00787297f1d7a9b7b1469b51e84f485a9 (patch) | |
tree | 16765ff5d1b7f24296f4ef9a9967f23a618be174 /Lib/test/test_syntax.py | |
parent | 4b86c9c5146c339c689830619be9d29b8f7bf417 (diff) | |
download | cpython-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_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 74d9773..30d8e5a 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -429,9 +429,6 @@ SyntaxError: expression cannot contain assignment, perhaps you meant "=="? >>> f((x)=2) Traceback (most recent call last): SyntaxError: expression cannot contain assignment, perhaps you meant "=="? ->>> f(True=2) -Traceback (most recent call last): -SyntaxError: expression cannot contain assignment, perhaps you meant "=="? >>> f(__debug__=1) Traceback (most recent call last): SyntaxError: cannot assign to __debug__ @@ -981,7 +978,7 @@ def func2(): def test_invalid_line_continuation_error_position(self): self._check_error(r"a = 3 \ 4", "unexpected character after line continuation character", - lineno=1, offset=9) + lineno=1, offset=(10 if support.use_old_parser() else 9)) def test_invalid_line_continuation_left_recursive(self): # Check bpo-42218: SyntaxErrors following left-recursive rules |