jit/metainterp/optimizeopt/test/test_intbound.py::test_are_knownbits_implied
@given(knownbits_and_bound_with_contained_number, strategies.data())
> def test_are_knownbits_implied(t, data):
jit/metainterp/optimizeopt/test/test_intbound.py:966:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/pypy2.7-v7.3.22-linux32/site-packages/hypothesis/core.py:563: in execute
result = self.test_runner(data, run)
/opt/pypy2.7-v7.3.22-linux32/site-packages/hypothesis/executors.py:56: in default_new_style_executor
return function(data)
/opt/pypy2.7-v7.3.22-linux32/site-packages/hypothesis/core.py:561: in run
return test(*args, **kwargs)
jit/metainterp/optimizeopt/test/test_intbound.py:970: in test_are_knownbits_implied
assert b.contains(n2)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = IntBound(MININT, -1), value = -2147483648L
def contains(self, value):
"""
Returns `True` iff this abstract integer contains the given `value`.
"""
assert not isinstance(value, IntBound)
if not we_are_translated():
> assert not isinstance(value, long)
E assert not True
E + where True = isinstance(-2147483648L, long)
jit/metainterp/optimizeopt/intutils.py:1233: AssertionError
---------- Hypothesis ----------
Falsifying example: test_are_knownbits_implied(t=(IntBound(MININT, -1), -1), data=data(...))
Draw 1: -2147483648L
builder: rpython-linux-x86-32 build #818*
test: jit/metainterp/optimizeopt/test/test_intbound.py::test_are_knownbits_implied