summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_named_expressions.py4
-rw-r--r--Lib/test/test_syntax.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_named_expressions.py b/Lib/test/test_named_expressions.py
index 01e26c8..3ae557f 100644
--- a/Lib/test/test_named_expressions.py
+++ b/Lib/test/test_named_expressions.py
@@ -32,7 +32,7 @@ class NamedExpressionInvalidTest(unittest.TestCase):
def test_named_expression_invalid_06(self):
code = """((a, b) := (1, 2))"""
- with self.assertRaisesRegex(SyntaxError, "cannot use named assignment with tuple"):
+ with self.assertRaisesRegex(SyntaxError, "cannot use assignment expressions with tuple"):
exec(code, {}, {})
def test_named_expression_invalid_07(self):
@@ -90,7 +90,7 @@ class NamedExpressionInvalidTest(unittest.TestCase):
code = """(lambda: x := 1)"""
with self.assertRaisesRegex(SyntaxError,
- "cannot use named assignment with lambda"):
+ "cannot use assignment expressions with lambda"):
exec(code, {}, {})
def test_named_expression_invalid_16(self):
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 3829746..128c4da 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -45,7 +45,7 @@ SyntaxError: cannot assign to True
>>> (True := 1)
Traceback (most recent call last):
-SyntaxError: cannot use named assignment with True
+SyntaxError: cannot use assignment expressions with True
>>> obj.__debug__ = 1
Traceback (most recent call last):