[Python-checkins] r45241 - python/trunk/Lib/test/test_genexps.py
tim.peters
python-checkins at python.org
Mon Apr 10 23:34:01 CEST 2006
Author: tim.peters
Date: Mon Apr 10 23:34:00 2006
New Revision: 45241
Modified:
python/trunk/Lib/test/test_genexps.py
Log:
Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot, due
to that id() may return a long on a 32-bit box now. On a box that assigns
addresses "with the sign bit set", id() always returns a long now.
Modified: python/trunk/Lib/test/test_genexps.py
==============================================================================
--- python/trunk/Lib/test/test_genexps.py (original)
+++ python/trunk/Lib/test/test_genexps.py Mon Apr 10 23:34:00 2006
@@ -129,7 +129,7 @@
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)
+ >>> int(max(tupleids) - min(tupleids))
0
Verify that syntax error's are raised for genexps used as lvalues
More information about the Python-checkins
mailing list