[Python-checkins] bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
Emily Morehouse
webhook-mailer at python.org
Fri Feb 1 14:58:48 EST 2019
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-01T12: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")
More information about the Python-checkins
mailing list