pypy/objspace/std/test/test_smalllongobject.py::TestW_IntObject::()::test_lshift_without_fromint
self = <pypy.objspace.std.test.test_intobject.TestW_IntObject instance at 0x0000021f4a7c8fa0>
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x0000021f4a7c8fe0>
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:385:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
objspace\std\intobject.py:834: in descr_binop
return ovf2long(space, x, self, y, w_other)
objspace\std\intobject.py:865: in _ovf2long_lshift
return space.newlong_from_rbigint(rbigint.lshift_int_int_bigint_result(x, y))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
iself = 2305843009213693951, 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-win-x86-64 build #2234
test: pypy/objspace/std/test/test_smalllongobject/py/TestW_IntObject/()/test_lshift_without_fromint