]> granicus.if.org Git - python/commitdiff
bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Fri, 1 Feb 2019 19:58:43 +0000 (22:58 +0300)
committerEmily Morehouse <emilyemorehouse@gmail.com>
Fri, 1 Feb 2019 19:58:43 +0000 (12:58 -0700)
Lib/test/test_named_expressions.py

index e49fd7de20deb9303b8a9218cfe6bd845623698c..ff426f4cea29bc22c43a556f8ff6621885c3cbf6 100644 (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")