[pypy-commit] cffi default: Comment out the prints (not py3)

arigo noreply at buildbot.pypy.org
Thu Oct 8 23:02:24 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2331:7b8014e87682
Date: 2015-10-08 22:55 +0200
http://bitbucket.org/cffi/cffi/changeset/7b8014e87682/

Log:	Comment out the prints (not py3)

diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py
--- a/testing/cffi0/test_verify.py
+++ b/testing/cffi0/test_verify.py
@@ -2275,16 +2275,16 @@
     @ffi.callback("int __stdcall(int)")
     def cb2(x):
         return x * 3
-    print 'cb1 =', cb1
+    #print 'cb1 =', cb1
     res = lib.call1(cb1)
     assert res == 500*999*2
-    print 'cb2 =', cb2
-    print ffi.typeof(lib.call2)
-    print 'call2 =', lib.call2
+    #print 'cb2 =', cb2
+    #print ffi.typeof(lib.call2)
+    #print 'call2 =', lib.call2
     res = lib.call2(cb2)
-    print '...'
+    #print '...'
     assert res == -500*999*3
-    print 'done'
+    #print 'done'
     if sys.platform == 'win32':
         assert '__stdcall' in str(ffi.typeof(cb2))
         assert '__stdcall' not in str(ffi.typeof(cb1))
diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py
--- a/testing/cffi1/test_recompiler.py
+++ b/testing/cffi1/test_recompiler.py
@@ -1364,15 +1364,15 @@
             return result;
         }
     """)
-    print '<<< cb1 =', ffi.addressof(lib, 'cb1')
+    #print '<<< cb1 =', ffi.addressof(lib, 'cb1')
     ptr_call1 = ffi.addressof(lib, 'call1')
     assert lib.call1(ffi.addressof(lib, 'cb1')) == 500*999*2
     assert ptr_call1(ffi.addressof(lib, 'cb1')) == 500*999*2
-    print '<<< cb2 =', ffi.addressof(lib, 'cb2')
+    #print '<<< cb2 =', ffi.addressof(lib, 'cb2')
     ptr_call2 = ffi.addressof(lib, 'call2')
     assert lib.call2(ffi.addressof(lib, 'cb2')) == -500*999*3
     assert ptr_call2(ffi.addressof(lib, 'cb2')) == -500*999*3
-    print '<<< done'
+    #print '<<< done'
 
 def test_win32_calling_convention_2():
     # any mistake in the declaration of plain function (including the


More information about the pypy-commit mailing list