Debian Codegraph @

pypy/objspace/std/test/test_translate.py

raw symbols SCIP
1 from rpython.translator.interactive import Translation
2 from rpython.rlib.nonconst import NonConstant
3
4
5 def test_newtext_memo(space):
6 def f():
7 return space.newtext("abc") is space.newtext("abc")
8
9 t = Translation(f, [])
10 s_res = t.annotate()
11 assert s_res.const is True