Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1928:3f00fb18d21a
Date: 2015-05-08 10:30 +0200
http://bitbucket.org/cffi/cffi/changeset/3f00fb18d21a/
Log: Test repr(lib)
diff --git a/_cffi1/test_recompiler.py b/_cffi1/test_recompiler.py
--- a/_cffi1/test_recompiler.py
+++ b/_cffi1/test_recompiler.py
@@ -114,6 +114,11 @@
lib = verify(ffi, 'test_math_sin', '#include <math.h>')
assert lib.cos(1.43) == math.cos(1.43)
+def test_repr_lib():
+ ffi = FFI()
+ lib = verify(ffi, 'test_repr_lib', '')
+ assert repr(lib) == "<Lib object for 'test_repr_lib'>"
+
def test_funcarg_ptr():
ffi = FFI()
ffi.cdef("int foo(int *);")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit