Debian Codegraph @

pypy/objspace/std/test/test_prebuiltint.py

raw symbols SCIP
1 import pytest
2 from pypy.objspace.std.test import test_intobject
3
4 @pytest.mark.skipif('config.option.runappdirect')
5 class AppTestInt(test_intobject.AppTestInt):
6 spaceconfig = {"objspace.std.withprebuiltint": True}
7
8 def setup_class(cls):
9 space = cls.space
10 cls.w_start = space.wrap(space.config.objspace.std.prebuiltintfrom)
11 cls.w_stop = space.wrap(space.config.objspace.std.prebuiltintto)
12
13 def test_prebuiltint(self):
14 def f(x):
15 assert x is (-(x + 3 - 3) * 5 // (-5))
16 for i in range(self.start, self.stop):
17 f(i)