[pypy-svn] r66515 - pypy/branch/parser-compiler/lib-python/modified-2.5.2/test
benjamin at codespeak.net
benjamin at codespeak.net
Wed Jul 22 21:20:42 CEST 2009
Author: benjamin
Date: Wed Jul 22 21:20:41 2009
New Revision: 66515
Modified:
pypy/branch/parser-compiler/lib-python/modified-2.5.2/test/test_generators.py
Log:
these error message are imp details
Modified: pypy/branch/parser-compiler/lib-python/modified-2.5.2/test/test_generators.py
==============================================================================
--- pypy/branch/parser-compiler/lib-python/modified-2.5.2/test/test_generators.py (original)
+++ pypy/branch/parser-compiler/lib-python/modified-2.5.2/test/test_generators.py Wed Jul 22 21:20:41 2009
@@ -1535,17 +1535,17 @@
>>> def f(): x = yield = y
Traceback (most recent call last):
...
-SyntaxError: assignment to yield expression not possible (<doctest test.test_generators.__test__.coroutine[23]>, line 1)
+SyntaxError: can't assign to yield expr (<doctest test.test_generators.__test__.coroutine[23]>, line 1)
>>> def f(): (yield bar) = y
Traceback (most recent call last):
...
-SyntaxError: assignment to yield expression not possible (<doctest test.test_generators.__test__.coroutine[24]>, line 1)
+SyntaxError: can't assign to yield expr (<doctest test.test_generators.__test__.coroutine[24]>, line 1)
>>> def f(): (yield bar) += y
Traceback (most recent call last):
...
-SyntaxError: augmented assignment to yield expression not possible (<doctest test.test_generators.__test__.coroutine[25]>, line 1)
+SyntaxError: can't assign to yield expr (<doctest test.test_generators.__test__.coroutine[25]>, line 1)
Now check some throw() conditions:
More information about the Pypy-commit
mailing list