Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r3157:7a76a3815340 Date: 2018-09-04 21:11 +0200 http://bitbucket.org/cffi/cffi/changeset/7a76a3815340/
Log: Issue #382 Second fix attempt, thanks Adam diff --git a/testing/cffi0/test_function.py b/testing/cffi0/test_function.py --- a/testing/cffi0/test_function.py +++ b/testing/cffi0/test_function.py @@ -45,15 +45,14 @@ assert x != math.sin(1.23) # rounding effects assert abs(x - math.sin(1.23)) < 1E-6 - def test_getenv_no_return_value(self): + def test_lround_no_return_value(self): # check that 'void'-returning functions work too ffi = FFI(backend=self.Backend()) ffi.cdef(""" - void getenv(char *); + void lround(double x); """) - needs_dlopen_none() - m = ffi.dlopen(None) - x = m.getenv("FOO") + m = ffi.dlopen(lib_m) + x = m.lround(1.23) assert x is None def test_dlopen_filename(self): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit