summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-04-10 21:34:00 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-04-10 21:34:00 (GMT)
commit88459359b160741c7abcad38a97db65004430125 (patch)
treea92f638a1f6aca8dae53df1a79ccbf5e8ddb6869 /Lib
parent3daf304f3b24a1ac01a11ae956ffe3d0bcfd693e (diff)
downloadcpython-88459359b160741c7abcad38a97db65004430125.zip
cpython-88459359b160741c7abcad38a97db65004430125.tar.gz
cpython-88459359b160741c7abcad38a97db65004430125.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_genexps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py
index 1556604..e414757 100644
--- a/Lib/test/test_genexps.py
+++ b/Lib/test/test_genexps.py
@@ -129,7 +129,7 @@ Verify late binding for the innermost for-expression
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