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

fijal at codespeak.net fijal at codespeak.net
Sat May 26 12:17:43 CEST 2007


Author: fijal
Date: Sat May 26 12:17:42 2007
New Revision: 43666

Modified:
   pypy/dist/pypy/translator/llvm/test/test_symbolic.py
Log:
Fix the tests (I hope), don't have llvm to test it here.


Modified: pypy/dist/pypy/translator/llvm/test/test_symbolic.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_symbolic.py	(original)
+++ pypy/dist/pypy/translator/llvm/test/test_symbolic.py	Sat May 26 12:17:42 2007
@@ -169,9 +169,9 @@
 
 
 def test_is_early_constant():
-    from pypy.rlib import objectmodel
+    from pypy.rlib import jit
     def f(x):
-        if objectmodel._is_early_constant(x):
+        if jit._is_early_constant(x):
             return 42
         return 0
     
@@ -181,9 +181,9 @@
     assert res == 0
 
 def test_we_are_jitted():
-    from pypy.rlib import objectmodel
+    from pypy.rlib import jit
     def f():
-        return objectmodel.we_are_jitted()
+        return jit.we_are_jitted()
     fn = compile_function(f, [])
     res = fn()
     assert res == False



More information about the Pypy-commit mailing list