Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1635:2d04ac7331c7
Date: 2015-01-12 22:23 +0100
http://bitbucket.org/cffi/cffi/changeset/2d04ac7331c7/

Log:    Say "From cffi callback" instead of just "From callback"

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -4515,7 +4515,7 @@
 #endif
     f = PySys_GetObject("stderr");
     if (f != NULL) {
-        PyFile_WriteString("From callback ", f);
+        PyFile_WriteString("From cffi callback ", f);
         PyFile_WriteObject(obj, f, 0);
         PyFile_WriteString(":\n", f);
         if (extra_error_line != NULL)
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1186,7 +1186,7 @@
         assert sys.stderr.getvalue() == ''
         assert f(10000) == -42
         assert matches(sys.stderr.getvalue(), """\
-From callback <function$Zcb1 at 0x$>:
+From cffi callback <function$Zcb1 at 0x$>:
 Traceback (most recent call last):
   File "$", line $, in Zcb1
     $
@@ -1198,7 +1198,7 @@
         bigvalue = 20000
         assert f(bigvalue) == -42
         assert matches(sys.stderr.getvalue(), """\
-From callback <function$Zcb1 at 0x$>:
+From cffi callback <function$Zcb1 at 0x$>:
 Trying to convert the result back to C:
 OverflowError: integer 60000 does not fit 'short'
 """)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to