[pypy-commit] pypy default: Use absolute imports, and add back a test that was lost.

alex_gaynor noreply at buildbot.pypy.org
Mon Jul 18 00:02:11 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r45701:52aa0420607b
Date: 2011-07-17 14:52 -0700
http://bitbucket.org/pypy/pypy/changeset/52aa0420607b/

Log:	Use absolute imports, and add back a test that was lost.

diff --git a/pypy/rpython/extfuncregistry.py b/pypy/rpython/extfuncregistry.py
--- a/pypy/rpython/extfuncregistry.py
+++ b/pypy/rpython/extfuncregistry.py
@@ -1,6 +1,6 @@
 # this registry uses the new interface for external functions
 
-from extfunc import register_external
+from pypy.rpython.extfunc import register_external
 
 # ___________________________
 # math functions
diff --git a/pypy/rpython/lltypesystem/module/test/test_llinterp_math.py b/pypy/rpython/lltypesystem/module/test/test_llinterp_math.py
--- a/pypy/rpython/lltypesystem/module/test/test_llinterp_math.py
+++ b/pypy/rpython/lltypesystem/module/test/test_llinterp_math.py
@@ -38,21 +38,21 @@
                 return getattr(math, name)(x, y)
             assert self.interpret(f, [0.3, 0.4]) == f(0.3, 0.4)
         return next_test
-    
-    for name in ll_math.unary_math_functions:
+
+    for name in ll_math.unary_math_functions + ['sqrt']:
         func_name = 'test_%s' % (name,)
         next_test = new_unary_test(name)
         next_test.func_name = func_name
         locals()[func_name] = next_test
         del next_test
-        
+
     for name in ['atan2', 'fmod', 'hypot', 'pow']:
         func_name = 'test_%s' % (name,)
         next_test = new_binary_test(name)
         next_test.func_name = func_name
         locals()[func_name] = next_test
         del next_test
-    
+
     def test_ldexp(self):
         def f(x, y):
             return math.ldexp(x, y)


More information about the pypy-commit mailing list