Changeset 391 for python/trunk/Lib/test/test_genexps.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_genexps.py
r2 r391 138 138 Traceback (most recent call last): 139 139 ... 140 SyntaxError: can't assign to generator expression (<doctest test.test_genexps.__test__.doctests[40]>, line 1) 140 File "<doctest test.test_genexps.__test__.doctests[40]>", line 1 141 SyntaxError: can't assign to generator expression 141 142 142 143 >>> (y for y in (1,2)) += 10 143 144 Traceback (most recent call last): 144 145 ... 145 SyntaxError: augmented assignment to generator expression not possible (<doctest test.test_genexps.__test__.doctests[41]>, line 1) 146 File "<doctest test.test_genexps.__test__.doctests[41]>", line 1 147 SyntaxError: can't assign to generator expression 146 148 147 149 … … 222 224 True 223 225 224 >>> print g.next.__doc__ 226 >>> from test.test_support import HAVE_DOCSTRINGS 227 >>> print(g.next.__doc__ if HAVE_DOCSTRINGS else 'x.next() -> the next value, or raise StopIteration') 225 228 x.next() -> the next value, or raise StopIteration 226 229 >>> import types
Note:
See TracChangeset
for help on using the changeset viewer.