<s> from pypy . conftest import gettestobjspace <EOL> class AppTestPyPyJIT : <EOL> def setup_class ( cls ) : <EOL> space = gettestobjspace ( usemodules = ( '<STR_LIT>' , ) ) <EOL> cls . space = space <EOL> def test_setup ( self ) : <EOL> import pypyjit <EOL> pypyjit . set_param ( threshold = <NUM_LIT:5> , inlining = <NUM_LIT:1> ) <EOL> pypyjit . set_param ( "<STR_LIT>" ) <EOL> def f ( x , y ) : <EOL> return x * y + <NUM_LIT:1> <EOL> assert f ( <NUM_LIT:6> , <NUM_LIT:7> ) == <NUM_LIT> <EOL> def gen ( x ) : <EOL> i = <NUM_LIT:0> <EOL> while i < x : <EOL> yield i * i <EOL> i += <NUM_LIT:1> <EOL> assert list ( gen ( <NUM_LIT:3> ) ) == [ <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:4> ] </s>
