Skip to content

Commit ee46480

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6b9b2f6 commit ee46480

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/parse_errors_test.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,10 @@ def test_self_in_arglist_invalid():
437437

438438

439439
def test_set_with_dollar_signs_raises():
440-
if sys.version_info < (3, 10): # pragma: no cover
441-
msg = "SyntaxError: cannot assign to function call (<unknown>, line 1)"
442-
else: # pragma: >=3.10 cover
443-
msg = (
444-
"SyntaxError: cannot assign to function call here. "
445-
"Maybe you meant '==' instead of '='? (<unknown>, line 1)"
446-
)
440+
msg = (
441+
"SyntaxError: cannot assign to function call here. "
442+
"Maybe you meant '==' instead of '='? (<unknown>, line 1)"
443+
)
447444
assert_parse_error(
448445
f'\n\n'
449446
f'{msg}\n\n'

0 commit comments

Comments
 (0)