[pypy-svn] r48166 - pypy/dist/pypy/translator/llvm/test

santagada at codespeak.net santagada at codespeak.net
Mon Oct 29 17:10:05 CET 2007


Author: santagada
Date: Mon Oct 29 17:10:04 2007
New Revision: 48166

Added:
   pypy/dist/pypy/translator/llvm/test/test_runtest.py
Modified:
   pypy/dist/pypy/translator/llvm/test/runtest.py
   pypy/dist/pypy/translator/llvm/test/test_rlist.py
Log:


Modified: pypy/dist/pypy/translator/llvm/test/runtest.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/runtest.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/runtest.py	Mon Oct 29 17:10:04 2007
@@ -9,6 +9,7 @@
 
 optimize_tests = False
 MINIMUM_LLVM_VERSION = 1.9
+FLOAT_PRECISION = 8
 
 ext_modules = []
 

Modified: pypy/dist/pypy/translator/llvm/test/test_rlist.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_rlist.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/test_rlist.py	Mon Oct 29 17:10:04 2007
@@ -1,6 +1,6 @@
 import py
 from pypy.rpython.test.test_rlist import BaseTestRlist
-from pypy.translator.llvm.test.runtest import LLVMTest
+from pypy.translator.llvm.test.runtest import *
 
 # ====> ../../../rpython/test/test_rlist.py
 

Added: pypy/dist/pypy/translator/llvm/test/test_runtest.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/translator/llvm/test/test_runtest.py	Mon Oct 29 17:10:04 2007
@@ -0,0 +1,10 @@
+import py
+from pypy.translator.oosupport.test_template.runtest import BaseTestRunTest
+from pypy.translator.llvm.test.runtest import *
+
+class TestRunTest(BaseTestRunTest, LLVMTest):
+    def test_none(self):
+        def fn(x):
+            y = 1 + x
+            return None
+        assert self.interpret(fn,[1]) == None



More information about the Pypy-commit mailing list