Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r59978:b1d1c363030a
Date: 2013-01-11 22:12 +0100
http://bitbucket.org/pypy/pypy/changeset/b1d1c363030a/

Log:    Fixed missing imports

diff --git a/pypy/interpreter/test/test_gateway.py 
b/pypy/interpreter/test/test_gateway.py
--- a/pypy/interpreter/test/test_gateway.py
+++ b/pypy/interpreter/test/test_gateway.py
@@ -3,6 +3,7 @@
 
 from pypy.interpreter import gateway, argument
 from pypy.interpreter.gateway import ObjSpace, W_Root, WrappedDefault
+from rpython.rtyper.signature import Signature
 import py
 import sys
 
@@ -20,24 +21,24 @@
                                                    gateway.W_Root,
                                                    gateway.W_Root,
                                                    'args_w'])
-        assert code.signature() == argument.Signature(['x', 'y'], 'hello', 
None)
+        assert code.signature() == Signature(['x', 'y'], 'hello', None)
         def d(self, w_boo):
             pass
         code = gateway.BuiltinCode(d, unwrap_spec= ['self',
                                                    gateway.W_Root], 
self_type=gateway.Wrappable)
-        assert code.signature() == argument.Signature(['self', 'boo'], None, 
None)
+        assert code.signature() == Signature(['self', 'boo'], None, None)
         def e(space, w_x, w_y, __args__):
             pass
         code = gateway.BuiltinCode(e, unwrap_spec=[gateway.ObjSpace,
                                                    gateway.W_Root,
                                                    gateway.W_Root,
                                                    gateway.Arguments])
-        assert code.signature() == argument.Signature(['x', 'y'], 'args', 
'keywords')
+        assert code.signature() == Signature(['x', 'y'], 'args', 'keywords')
 
         def f(space, index):
             pass
         code = gateway.BuiltinCode(f, unwrap_spec=[gateway.ObjSpace, "index"])
-        assert code.signature() == argument.Signature(["index"], None, None)
+        assert code.signature() == Signature(["index"], None, None)
 
 
     def test_call(self):
diff --git a/rpython/rtyper/lltypesystem/module/test/test_ll_math.py 
b/rpython/rtyper/lltypesystem/module/test/test_ll_math.py
--- a/rpython/rtyper/lltypesystem/module/test/test_ll_math.py
+++ b/rpython/rtyper/lltypesystem/module/test/test_ll_math.py
@@ -1,7 +1,7 @@
 """ Try to test systematically all cases of ll_math.py.
 """
 
-import math
+import sys, math
 from rpython.rtyper.lltypesystem.module import ll_math
 from rpython.translator.c.test.test_genc import compile
 from rpython.rlib.rfloat import isinf, isnan, INFINITY, NAN
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to