[pypy-svn] r17872 - pypy/dist/lib-python/modified-2.4.1/test
ac at codespeak.net
ac at codespeak.net
Mon Sep 26 13:50:30 CEST 2005
Author: ac
Date: Mon Sep 26 13:50:30 2005
New Revision: 17872
Modified:
pypy/dist/lib-python/modified-2.4.1/test/test_genexps.py
Log:
Adjust tests to account for implementation details.
Modified: pypy/dist/lib-python/modified-2.4.1/test/test_genexps.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/test_genexps.py (original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_genexps.py Mon Sep 26 13:50:30 2005
@@ -116,9 +116,9 @@
Verify re-use of tuples (a side benefit of using genexps over listcomps)
- >>> tupleids = map(id, ((i,i) for i in xrange(10)))
- >>> max(tupleids) - min(tupleids)
- 0
+## >>> tupleids = map(id, ((i,i) for i in xrange(10)))
+## >>> max(tupleids) - min(tupleids)
+## 0
Verify that syntax error's are raised for genexps used as lvalues
@@ -191,7 +191,7 @@
g.next()
File "<pyshell#35>", line 1, in <generator expression>
g = (10 // i for i in (5, 0, 2))
- ZeroDivisionError: integer division or modulo by zero
+ ZeroDivisionError: integer division by zero
>>> g.next()
Traceback (most recent call last):
File "<pyshell#38>", line 1, in -toplevel-
More information about the Pypy-commit
mailing list