diff options
author | Armin Rigo <arigo@tunes.org> | 2019-01-29 00:12:54 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2019-01-29 00:12:54 +0100 |
commit | 805ceac098c2ae5f3b6792623c4a4ec7d204f983 (patch) | |
tree | 884dd89dc18f237fe6eb6084e2cafa0136168ceb /testing/cffi0 | |
parent | 3ef7d5ad08df5789e9c9260153d7647d49be02de (diff) | |
download | cffi-805ceac098c2ae5f3b6792623c4a4ec7d204f983.tar.gz |
Backed out changeset 7a76a3815340
On Windows, there is no lround() or (as far as I can find) any math
function returning an integer.
Diffstat (limited to 'testing/cffi0')
-rw-r--r-- | testing/cffi0/test_function.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testing/cffi0/test_function.py b/testing/cffi0/test_function.py index 9733f5e..5a85c64 100644 --- a/testing/cffi0/test_function.py +++ b/testing/cffi0/test_function.py @@ -45,14 +45,15 @@ class TestFunction(object): assert x != math.sin(1.23) # rounding effects assert abs(x - math.sin(1.23)) < 1E-6 - def test_lround_no_return_value(self): + def test_getenv_no_return_value(self): # check that 'void'-returning functions work too ffi = FFI(backend=self.Backend()) ffi.cdef(""" - void lround(double x); + void getenv(char *); """) - m = ffi.dlopen(lib_m) - x = m.lround(1.23) + needs_dlopen_none() + m = ffi.dlopen(None) + x = m.getenv("FOO") assert x is None def test_dlopen_filename(self): |