1
from pypy.conftest import gettestobjspace
3
class AppTest_pypy_c(object):
5
cls.space = gettestobjspace(**{"objspace.std.withtproxy": True,
6
"usemodules":("_stackless",)})
8
def test_snippet_1(self):
9
from tputil import make_proxy
11
def recorder(operation):
12
history.append(operation)
13
return operation.delegate()
15
l = make_proxy(recorder, obj=[])
17
class AppTest_pypy_c_thunk(object):
19
cls.space = gettestobjspace(**{"objspace.name": 'thunk'})
21
def test_snippet_1(self):
22
from __pypy__ import thunk
29
class AppTest_pypy_c_taint(object):
31
cls.space = gettestobjspace(**{'objspace.name': 'taint'})
33
def test_snippet_1(self):
34
from __pypy__ import taint
37
class AppTest_pypy_cli(object):
39
cls.space = gettestobjspace(**{'usemodules': 'clr'})
41
def test_snippet_1(self):
43
ArrayList = clr.load_cli_class('System.Collections', 'ArrayList')
47
class AppTest_pyrolog_c(object):
50
class AppTest_python(object):
53
class AppTest_pypy_c_jit(object):
55
cls.space = gettestobjspace(**{'usemodules':('pypyjit',)})
57
def test_snippet_1(self):
61
"Arbitrary test function."
80
print '%d iterations, time per iteration: %s' % (N, (end-start)/N)