[pypy-commit] pypy py3.7: fix error msg

cfbolz pypy.commits at gmail.com
Thu Feb 6 11:15:15 EST 2020


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.7
Changeset: r98676:eabac6f35bd1
Date: 2020-02-06 17:01 +0100
http://bitbucket.org/pypy/pypy/changeset/eabac6f35bd1/

Log:	fix error msg

diff --git a/lib-python/3/test/test_syntax.py b/lib-python/3/test/test_syntax.py
--- a/lib-python/3/test/test_syntax.py
+++ b/lib-python/3/test/test_syntax.py
@@ -134,25 +134,25 @@
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 >>> f(x for x in L, 1)
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(x for x in L, y=1)
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(x for x in L, *[])
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(x for x in L, **{})
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(L, x for x in L)
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(x for x in L, y for y in L)
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f(x for x in L,)
 Traceback (most recent call last):
-SyntaxError: Generator expression must be parenthesized
+SyntaxError: Generator expression must be parenthesized if not sole argument
 >>> f((x for x in L), 1)
 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
 >>> class C(x for x in L):


More information about the pypy-commit mailing list