Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/objspace/std/test/test_smalllongobject.py::TestW_IntObject::()::test_lshift_without_fromint

self = <pypy.objspace.std.test.test_intobject.TestW_IntObject instance at 0xf45df80c>
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0xf1f8430c>

    def test_lshift_without_fromint(self, monkeypatch):
        space = self.space
        monkeypatch.setattr(rbigint, 'fromint', None)
        x = sys.maxint // 4
        y = 16
        f1 = iobj.W_IntObject(x)
        f2 = iobj.W_IntObject(y)
>       v = f1.descr_lshift(space, f2)

objspace/std/test/test_intobject.py:361: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
objspace/std/intobject.py:620: in descr_binop
    return ovf2long(space, x, self, y, w_other)
objspace/std/intobject.py:645: in _ovf2long_lshift
    return space.newlong_from_rbigint(rbigint.lshift_int_int_bigint_result(x, y))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

iself = 536870911, int_other = 16

    @staticmethod
    @jit.elidable
    def lshift_int_int_bigint_result(iself, int_other):
        if not SUPPORT_INT128 or SHIFT != 63 or not int_in_valid_range(iself):
>           return rbigint.fromint(iself).lshift(int_other)
E           TypeError: 'NoneType' object is not callable

../rpython/rlib/rbigint.py:1383: TypeError
builder: own-linux-x86-32 build #9366
test: pypy/objspace/std/test/test_smalllongobject/py/TestW_IntObject/()/test_lshift_without_fromint