Author: Alex Gaynor <alex.gay...@gmail.com> Branch: kill-someobject Changeset: r57852:998d083319fe Date: 2012-10-07 20:24 +0200 http://bitbucket.org/pypy/pypy/changeset/998d083319fe/
Log: kill tests using someobjects 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 @@ -562,31 +562,6 @@ class TestLLtype(BaseTestRbuiltin, LLRtypeMixin): - - def test_isinstance_obj(self): - _1 = lltype.pyobjectptr(1) - def f(x): - return isinstance(x, int) - res = self.interpret(f, [_1], someobjects=True) - assert res is True - _1_0 = lltype.pyobjectptr(1.0) - res = self.interpret(f, [_1_0], someobjects=True) - assert res is False - - def test_hasattr(self): - class A(object): - def __init__(self): - self.x = 42 - def f(i): - a = A() - if i==0: return int(hasattr(A, '__init__')) - if i==1: return int(hasattr(A, 'y')) - if i==2: return int(hasattr(42, 'x')) - for x, y in zip(range(3), (1, 0, 0)): - res = self.interpret(f, [x], someobjects=True) - assert res._obj.value == y - # hmm, would like to test against PyObj, is this the wrong place/way? - def test_cast(self): def llfn(v): return rffi.cast(rffi.VOIDP, v) @@ -607,7 +582,8 @@ res = self.interpret(llfn, [lltype.nullptr(rffi.VOIDP.TO)]) assert res == 0 assert isinstance(res, r_ulonglong) - + + class TestOOtype(BaseTestRbuiltin, OORtypeMixin): def test_instantiate_multiple_meta(self): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit