mirror of https://github.com/python/cpython
bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
This commit is contained in:
parent
3a32e3bf88
commit
075de6cf6c
|
@ -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…
Reference in New Issue