Commits

Alexander Hesse  committed b1d1c36

Fixed missing imports

  • Participants
  • Parent commits bc67ae8
  • Branches split-rpython

Comments (0)

Files changed (2)

File pypy/interpreter/test/test_gateway.py

 
 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
 
                                                    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):

File rpython/rtyper/lltypesystem/module/test/test_ll_math.py

 """ 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