https://github.com/python/cpython/commit/075de6cf6cb0f5f4d3711fc07f023a9a7a0a816b commit: 075de6cf6cb0f5f4d3711fc07f023a9a7a0a816b branch: master author: Joannah Nanjekye <33177550+nanjekyejoannah at users.noreply.github.com> committer: Emily Morehouse <emilyemorehouse at gmail.com> date: 2019年02月01日T12:58:43-07:00 summary: bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722) files: M Lib/test/test_named_expressions.py diff --git a/Lib/test/test_named_expressions.py b/Lib/test/test_named_expressions.py index e49fd7de20de..ff426f4cea29 100644 --- a/Lib/test/test_named_expressions.py +++ b/Lib/test/test_named_expressions.py @@ -165,7 +165,7 @@ def test_named_expression_assignment_09(self): 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")