]> granicus.if.org Git - python/commitdiff
Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot, due
authorTim Peters <tim.peters@gmail.com>
Mon, 10 Apr 2006 21:34:00 +0000 (21:34 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 10 Apr 2006 21:34:00 +0000 (21:34 +0000)
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.

Lib/test/test_genexps.py

index 1556604f66ba686a700502627f6be6d12f89147d..e414757ab058cd02ed9d4995808a8face5cc25ca 100644 (file)
@@ -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