[pypy-commit] cffi default: Backed out changeset 7a76a3815340
arigo
pypy.commits at gmail.com
Mon Jan 28 18:14:04 EST 2019
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r3186:e2f85d257915
Date: 2019-01-29 00:12 +0100
http://bitbucket.org/cffi/cffi/changeset/e2f85d257915/
Log: Backed out changeset 7a76a3815340
On Windows, there is no lround() or (as far as I can find) any math
function returning an integer.
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,14 +45,15 @@
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):
More information about the pypy-commit
mailing list