Author: Armin Rigo <ar...@tunes.org> Branch: cffi-char16-char32 Changeset: r91516:35878bce885d Date: 2017-06-04 23:43 +0200 http://bitbucket.org/pypy/pypy/changeset/35878bce885d/
Log: import cffi/e7063ce4bdf8 diff --git a/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py b/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py --- a/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py +++ b/pypy/module/test_lib_pypy/cffi_tests/cffi1/test_recompiler.py @@ -2011,7 +2011,7 @@ lib = verify(ffi, "test_function_returns_float_complex", """ #include <complex.h> static float _Complex f1(float a, float b) { return a + I*2.0*b; } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ result = lib.f1(1.25, 5.1) assert type(result) == complex assert result.real == 1.25 # exact @@ -2025,7 +2025,7 @@ lib = verify(ffi, "test_function_returns_double_complex", """ #include <complex.h> static double _Complex f1(double a, double b) { return a + I*2.0*b; } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ result = lib.f1(1.25, 5.1) assert type(result) == complex assert result.real == 1.25 # exact @@ -2039,7 +2039,7 @@ lib = verify(ffi, "test_function_argument_float_complex", """ #include <complex.h> static float f1(float _Complex x) { return cabsf(x); } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ x = complex(12.34, 56.78) result = lib.f1(x) assert abs(result - abs(x)) < 1e-5 @@ -2052,7 +2052,7 @@ lib = verify(ffi, "test_function_argument_double_complex", """ #include <complex.h> static double f1(double _Complex x) { return cabs(x); } - """) + """, no_cpp=True) # <complex.h> fails on some systems with C++ x = complex(12.34, 56.78) result = lib.f1(x) assert abs(result - abs(x)) < 1e-11 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit