mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
This commit is contained in:
parent
3a32e3bf88
commit
075de6cf6c
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class NamedExpressionAssignmentTest(unittest.TestCase):
|
|||
else: self.fail("variable was not assigned using named expression")
|
||||
|
||||
def test_named_expression_assignment_10(self):
|
||||
if (match := 10) is 10:
|
||||
if (match := 10) == 10:
|
||||
pass
|
||||
else: self.fail("variable was not assigned using named expression")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue