Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2279:b25fef6ab1f1
Date: 2015-09-27 13:12 +0200
http://bitbucket.org/cffi/cffi/changeset/b25fef6ab1f1/
Log: More of the same
diff --git a/testing/cffi1/test_verify1.py b/testing/cffi1/test_verify1.py
--- a/testing/cffi1/test_verify1.py
+++ b/testing/cffi1/test_verify1.py
@@ -1622,11 +1622,11 @@
def test_FILE_stored_explicitly():
ffi = FFI()
- ffi.cdef("int myprintf(const char *, int); FILE *myfile;")
+ ffi.cdef("int myprintf11(const char *, int); FILE *myfile;")
lib = ffi.verify("""
#include <stdio.h>
FILE *myfile;
- int myprintf(const char *out, int value) {
+ int myprintf11(const char *out, int value) {
return fprintf(myfile, out, value);
}
""")
@@ -1636,7 +1636,7 @@
lib.myfile = ffi.cast("FILE *", fw1)
#
fw1.write(b"X")
- r = lib.myprintf(b"hello, %d!\n", ffi.cast("int", 42))
+ r = lib.myprintf11(b"hello, %d!\n", ffi.cast("int", 42))
fw1.close()
assert r == len("hello, 42!\n")
#
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit