bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)

This commit is contained in:
Joannah Nanjekye 2019-02-01 22:58:43 +03:00 committed by Emily Morehouse
parent 3a32e3bf88
commit 075de6cf6c
1 changed files with 1 additions and 1 deletions

View File

@ -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")