We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb95d1f commit 84fbba0Copy full SHA for 84fbba0
1 file changed
Lib/test/test_syntax.py
@@ -2852,6 +2852,11 @@ def test_assign_del(self):
2852
# report "cannot delete name"
2853
self._check_error("del a += b", "invalid syntax")
2854
2855
+ def test_parenthesized_named_expression_target(self):
2856
+ self._check_error(
2857
+ "((a) := 1)",
2858
+ "cannot parenthesize target name in assignment expression")
2859
+
2860
def test_global_param_err_first(self):
2861
source = """if 1:
2862
def error(a):
0 commit comments