mirror of
https://github.com/micropython/micropython.git
synced 2026-01-10 05:57:16 +01:00
Change allows tests/unix/ffi_float.py to pass on OSX
This commit is contained in:
@@ -12,7 +12,7 @@ def ffi_open(names):
|
||||
err = e
|
||||
raise err
|
||||
|
||||
libc = ffi_open(('libc.so', 'libc.so.0', 'libc.so.6'))
|
||||
libc = ffi_open(('libc.so', 'libc.so.0', 'libc.so.6', 'libc.dylib'))
|
||||
|
||||
strtof = libc.func("f", "strtof", "sp")
|
||||
print('%.6f' % strtof('1.23', None))
|
||||
|
||||
Reference in New Issue
Block a user