From 805ceac098c2ae5f3b6792623c4a4ec7d204f983 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Tue, 29 Jan 2019 00:12:54 +0100 Subject: Backed out changeset 7a76a3815340 On Windows, there is no lround() or (as far as I can find) any math function returning an integer. --- testing/cffi0/test_function.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testing/cffi0') 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): -- cgit v1.2.1