diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-08 23:44:13 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-08 23:44:13 (GMT) |
commit | a5a5728cf01446f70c3bd09cc85453fdec71d461 (patch) | |
tree | 8e73f76c79f735981af4c33caf32b1b8fad704d6 /Lib | |
parent | 8ea4ded9a69ace6f8520615f770308fcdb485bbb (diff) | |
download | cpython-a5a5728cf01446f70c3bd09cc85453fdec71d461.zip cpython-a5a5728cf01446f70c3bd09cc85453fdec71d461.tar.gz cpython-a5a5728cf01446f70c3bd09cc85453fdec71d461.tar.bz2 |
remove error checks already done in set_context()
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_generators.py | 2 | ||||
-rw-r--r-- | Lib/test/test_genexps.py | 2 | ||||
-rw-r--r-- | Lib/test/test_syntax.py | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index b997ebc..f4c9655 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1588,7 +1588,7 @@ SyntaxError: can't assign to yield expression Traceback (most recent call last): ... File "<doctest test.test_generators.__test__.coroutine[25]>", line 1 -SyntaxError: augmented assignment to yield expression not possible +SyntaxError: can't assign to yield expression Now check some throw() conditions: diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py index 17ad78a..3d896a5 100644 --- a/Lib/test/test_genexps.py +++ b/Lib/test/test_genexps.py @@ -144,7 +144,7 @@ Verify that syntax error's are raised for genexps used as lvalues Traceback (most recent call last): ... File "<doctest test.test_genexps.__test__.doctests[41]>", line 1 - SyntaxError: augmented assignment to generator expression not possible + SyntaxError: can't assign to generator expression ########### Tests borrowed from or inspired by test_generators.py ############ diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 896ee81..c1027b1 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -248,12 +248,12 @@ Traceback (most recent call last): SyntaxError: keyword can't be an expression -From ast_for_expr_stmt(): +More set_context(): >>> (x for x in x) += 1 Traceback (most recent call last): File "<doctest test.test_syntax[31]>", line 1 -SyntaxError: augmented assignment to generator expression not possible +SyntaxError: can't assign to generator expression >>> None += 1 Traceback (most recent call last): File "<doctest test.test_syntax[32]>", line 1 @@ -261,7 +261,7 @@ SyntaxError: cannot assign to None >>> f() += 1 Traceback (most recent call last): File "<doctest test.test_syntax[33]>", line 1 -SyntaxError: illegal expression for augmented assignment +SyntaxError: can't assign to function call Test continue in finally in weird combinations. |