[pypy-commit] pypy win64-stage1: fixed int tests to use is_valid_int
ctismer
noreply at buildbot.pypy.org
Thu Nov 24 22:51:58 CET 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49762:9a56f7d674e7
Date: 2011-11-24 22:50 +0100
http://bitbucket.org/pypy/pypy/changeset/9a56f7d674e7/
Log: fixed int tests to use is_valid_int
diff --git a/pypy/rpython/test/test_rptr.py b/pypy/rpython/test/test_rptr.py
--- a/pypy/rpython/test/test_rptr.py
+++ b/pypy/rpython/test/test_rptr.py
@@ -5,6 +5,7 @@
from pypy.rpython.lltypesystem import llmemory
from pypy.rpython.rtyper import RPythonTyper
from pypy.annotation import model as annmodel
+from pypy.rlib.rarithmetic import is_valid_int
# ____________________________________________________________
@@ -188,7 +189,7 @@
return llmemory.cast_adr_to_int(a, "forced")
res = interpret(fn, [2])
- assert type(res) is int
+ assert is_valid_int(res)
assert res == cast_ptr_to_int(p)
#
res = interpret(fn, [4])
@@ -196,7 +197,7 @@
assert llmemory.cast_int_to_adr(res) == llmemory.cast_ptr_to_adr(p)
#
res = interpret(fn, [6])
- assert type(res) is int
+ assert is_valid_int(res)
from pypy.rpython.lltypesystem import rffi
assert res == rffi.cast(Signed, p)
More information about the pypy-commit
mailing list