[pypy-commit] pypy py3k-osxfix: more debug

pjenvey pypy.commits at gmail.com
Mon May 23 15:04:50 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k-osxfix
Changeset: r84634:b1fbb8f141b8
Date: 2016-05-23 12:03 -0700
http://bitbucket.org/pypy/pypy/changeset/b1fbb8f141b8/

Log:	more debug

diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -175,8 +175,10 @@
         result = space.c_int_w(w_value)
     except OperationError as e:
         if not e.match(space, space.w_OverflowError):
+            import traceback
+            traceback.print_stack()
             raise oefmt(space.w_TypeError,
-                "argument should be %s, not %T", allowed_types, w_value)
+                "!argument should be %s, not %T", allowed_types, w_value)
         else:
             raise
     if result == -1:


More information about the pypy-commit mailing list