Author: Christian Tismer <tis...@stackless.com> Branch: Changeset: r53646:0e167f61c5f6 Date: 2012-03-14 19:54 -0700 http://bitbucket.org/pypy/pypy/changeset/0e167f61c5f6/
Log: a few more trivial changes for win64 diff --git a/pypy/rpython/memory/gc/test/test_direct.py b/pypy/rpython/memory/gc/test/test_direct.py --- a/pypy/rpython/memory/gc/test/test_direct.py +++ b/pypy/rpython/memory/gc/test/test_direct.py @@ -9,7 +9,7 @@ import py from pypy.rpython.lltypesystem import lltype, llmemory from pypy.rpython.memory.gctypelayout import TypeLayoutBuilder -from pypy.rlib.rarithmetic import LONG_BIT +from pypy.rlib.rarithmetic import LONG_BIT, is_valid_int WORD = LONG_BIT // 8 @@ -286,7 +286,7 @@ p = self.malloc(S) hash = self.gc.identityhash(p) print hash - assert isinstance(hash, (int, long)) + assert is_valid_int(hash) assert hash == self.gc.identityhash(p) self.stackroots.append(p) for i in range(6): @@ -299,7 +299,7 @@ self.gc.collect() hash = self.gc.identityhash(self.stackroots[-1]) print hash - assert isinstance(hash, (int, long)) + assert is_valid_int(hash) for i in range(6): self.gc.collect() assert hash == self.gc.identityhash(self.stackroots[-1]) @@ -311,7 +311,7 @@ self.gc.collect() hash = self.gc.identityhash(self.stackroots[-1]) print hash - assert isinstance(hash, (int, long)) + assert is_valid_int(hash) for i in range(2): self.gc.collect() assert hash == self.gc.identityhash(self.stackroots[-1]) @@ -319,7 +319,7 @@ # (4) p is a prebuilt object hash = self.gc.identityhash(p_const) print hash - assert isinstance(hash, (int, long)) + assert is_valid_int(hash) assert hash == self.gc.identityhash(p_const) # (5) p is actually moving (for the markcompact gc) p0 = self.malloc(S) diff --git a/pypy/rpython/test/test_rbuiltin.py b/pypy/rpython/test/test_rbuiltin.py --- a/pypy/rpython/test/test_rbuiltin.py +++ b/pypy/rpython/test/test_rbuiltin.py @@ -5,7 +5,7 @@ from pypy.rlib.debug import llinterpcall from pypy.rpython.lltypesystem import lltype from pypy.tool import udir -from pypy.rlib.rarithmetic import intmask +from pypy.rlib.rarithmetic import intmask, is_valid_int from pypy.rlib.rarithmetic import r_int, r_uint, r_longlong, r_ulonglong from pypy.annotation.builtin import * from pypy.rpython.test.tool import BaseRtypingTest, LLRtypeMixin, OORtypeMixin @@ -567,7 +567,7 @@ if r_longlong is not r_int: assert isinstance(res, r_longlong) else: - assert isinstance(res, int) + assert is_valid_int(res) # def llfn(v): return rffi.cast(rffi.ULONGLONG, v) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit