[pypy-svn] r45407 - pypy/dist/pypy/translator/jvm/test
antocuni at codespeak.net
antocuni at codespeak.net
Fri Jul 27 16:00:51 CEST 2007
Author: antocuni
Date: Fri Jul 27 16:00:51 2007
New Revision: 45407
Modified:
pypy/dist/pypy/translator/jvm/test/runtest.py
Log:
remove unused code
Modified: pypy/dist/pypy/translator/jvm/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/runtest.py (original)
+++ pypy/dist/pypy/translator/jvm/test/runtest.py Fri Jul 27 16:00:51 2007
@@ -15,28 +15,6 @@
FLOAT_PRECISION = 8
-# CLI duplicate. Needs JVMtest support -Paul
-# check function depends on this function
-#def compile_function(func, annotation=[], graph=None, backendopt=True):
-# olddefs = patch()
-# gen = _build_gen(func, annotation, graph, backendopt)
-# gen.generate_source()
-# exe_name = gen.build_exe()
-# unpatch(*olddefs) # restore original values
-# return CliFunctionWrapper(exe_name)
-
-# CLI duplicate. Needs compile_function support (see above) -Paul
-# check is used in test_overflow
-#def check(func, annotation, args):
-# jvm = compile_function(func, annotation)
-# res1 = func(*args)
-# res2 = jvm(*args)
-#
-# if type(res1) is float:
-# assert round(res1, FLOAT_PRECISION) == round(res2, FLOAT_PRECISION)
-# else:
-# assert res1 == res2
-
class StructTuple(tuple):
def __getattr__(self, name):
if name.startswith('item'):
More information about the Pypy-commit
mailing list