diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-04-07 15:15:04 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-04-07 15:15:04 (GMT) |
| commit | 52b9620c1941643dc6f834857bf6d76e8bbfc478 (patch) | |
| tree | f7a1665820790b8287bef5fcc7dcc15a8d729564 /Lib/test/test_genexps.py | |
| parent | ee42545884552f2f782a2c2f091de8f07169b831 (diff) | |
| download | cpython-52b9620c1941643dc6f834857bf6d76e8bbfc478.zip cpython-52b9620c1941643dc6f834857bf6d76e8bbfc478.tar.gz cpython-52b9620c1941643dc6f834857bf6d76e8bbfc478.tar.bz2 | |
fix syntax tests after formatting change
Diffstat (limited to 'Lib/test/test_genexps.py')
| -rw-r--r-- | Lib/test/test_genexps.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py index a86f12f..17ad78a 100644 --- a/Lib/test/test_genexps.py +++ b/Lib/test/test_genexps.py @@ -137,12 +137,14 @@ Verify that syntax error's are raised for genexps used as lvalues >>> (y for y in (1,2)) = 10 Traceback (most recent call last): ... - SyntaxError: can't assign to generator expression (<doctest test.test_genexps.__test__.doctests[40]>, line 1) + File "<doctest test.test_genexps.__test__.doctests[40]>", line 1 + SyntaxError: can't assign to generator expression >>> (y for y in (1,2)) += 10 Traceback (most recent call last): ... - SyntaxError: augmented assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[41]>, line 1) + File "<doctest test.test_genexps.__test__.doctests[41]>", line 1 + SyntaxError: augmented assignment to generator expression not possible ########### Tests borrowed from or inspired by test_generators.py ############ |
