Commits

mattip committed b76f44c

do not wrap callable if testing -A

  • Participants
  • Parent commits 10fd78f

Comments (0)

Files changed (1)

File pypy/module/math/test/test_math.py

             if type(expected) is type and issubclass(expected, Exception):
                 expected = getattr(space, "w_%s" % expected.__name__)
             elif callable(expected):
-                expected = cls.make_callable_wrapper(expected)
+                if not cls.runappdirect:
+                    expected = cls.make_callable_wrapper(expected)
             else:
                 expected = space.wrap(expected)
             cases.append(space.newtuple([space.wrap(a), space.wrap(b), expected]))