Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1936:fb159344a9d0
Date: 2015-05-08 20:36 +0200
http://bitbucket.org/cffi/cffi/changeset/fb159344a9d0/
Log: Improve the test for unicode_literals. Now it fails
diff --git a/_cffi1/test_unicode_literals.py b/_cffi1/test_unicode_literals.py
--- a/_cffi1/test_unicode_literals.py
+++ b/_cffi1/test_unicode_literals.py
@@ -8,7 +8,7 @@
#
#
import sys, math
-from cffi import FFI
+from _cffi_backend import FFI
from _cffi1 import recompiler
lib_m = "m"
@@ -82,5 +82,6 @@
def test_math_sin_unicode():
ffi = FFI()
ffi.cdef("float sin(double); double cos(double);")
- lib = recompiler.verify(ffi, 'test_math_sin_unicode', '#include <math.h>')
+ lib = recompiler.verify(ffi, 'test_math_sin_unicode', '#include <math.h>',
+ libraries=[lib_m])
assert lib.cos(1.43) == math.cos(1.43)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit