[pypy-commit] pypy win64-stage1: fixed test_intobject.
ctismer
noreply at buildbot.pypy.org
Mon Nov 28 20:10:17 CET 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49931:02c5ddb49a48
Date: 2011-11-28 20:09 +0100
http://bitbucket.org/pypy/pypy/changeset/02c5ddb49a48/
Log: fixed test_intobject.
diff --git a/pypy/objspace/std/test/test_intobject.py b/pypy/objspace/std/test/test_intobject.py
--- a/pypy/objspace/std/test/test_intobject.py
+++ b/pypy/objspace/std/test/test_intobject.py
@@ -2,7 +2,7 @@
import sys
from pypy.objspace.std import intobject as iobj
from pypy.objspace.std.multimethod import FailedToImplement
-from pypy.rlib.rarithmetic import r_uint
+from pypy.rlib.rarithmetic import r_uint, is_valid_int
from pypy.rlib.rbigint import rbigint
@@ -15,7 +15,7 @@
while 1:
ires = x << n
lres = l << n
- if type(ires) is long or lres != ires:
+ if not is_valid_int(ires) or lres != ires:
return n
n += 1
More information about the pypy-commit
mailing list