Debian Codegraph @

pypy/module/pypyjit/test/test_jit_not_in_trace.py

raw symbols SCIP
1
2 class AppTestJitNotInTrace(object):
3 spaceconfig = dict(usemodules=('pypyjit',))
4
5 def test_not_from_assembler(self):
6 import pypyjit
7 @pypyjit.not_from_assembler
8 def f(x, y):
9 return 42
10 r = f(3, 4)
11 assert r is f
12
13 def test_not_from_assembler_exception(self):
14 import pypyjit
15 @pypyjit.not_from_assembler
16 def f(x, y):
17 raise ValueError(y, x)
18 e = raises(ValueError, f, 3, 4)
19 assert e.value.args == (4, 3)