diff options
author | Armin Rigo <arigo@tunes.org> | 2018-09-04 21:11:54 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2018-09-04 21:11:54 +0200 |
commit | 01408ed73c4fb7112e17355d46068a5bc3e420ed (patch) | |
tree | bc46069d91fc5578f3ef4ede330290e6e061a813 /testing/cffi0 | |
parent | b29a38cab4dc835256fc4936b2b35a2149b9ed22 (diff) | |
download | cffi-01408ed73c4fb7112e17355d46068a5bc3e420ed.tar.gz |
Issue #382
Second fix attempt, thanks Adam
Diffstat (limited to 'testing/cffi0')
-rw-r--r-- | testing/cffi0/test_function.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testing/cffi0/test_function.py b/testing/cffi0/test_function.py index 5a85c64..9733f5e 100644 --- a/testing/cffi0/test_function.py +++ b/testing/cffi0/test_function.py @@ -45,15 +45,14 @@ class TestFunction(object): 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): |