diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-04-27 17:11:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 17:11:03 -0600 |
commit | 1fee7acbcf498334e36b748087bd86409a09a828 (patch) | |
tree | 794f3a01abebb2dd8d81561462d25d35d2438360 /numpy | |
parent | 694f5c704736e99c0e92204dab797b1430d2424c (diff) | |
parent | b32985638bd3d8b8829676131c98066647076e06 (diff) | |
download | numpy-1fee7acbcf498334e36b748087bd86409a09a828.tar.gz |
Merge pull request #18862 from ogrisel/skip-longdouble-f2py-tests-on-macos-arm64
TST: Skip f2py TestSharedMemory for LONGDOUBLE on macos/arm64
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/f2py/tests/test_array_from_pyobj.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py index 77149e4e7..649fd1c48 100644 --- a/numpy/f2py/tests/test_array_from_pyobj.py +++ b/numpy/f2py/tests/test_array_from_pyobj.py @@ -1,6 +1,7 @@ import os import sys import copy +import platform import pytest import numpy as np @@ -118,8 +119,11 @@ _cast_dict['CFLOAT'] = _cast_dict['FLOAT'] + ['CFLOAT'] # 16 byte long double types this means the inout intent cannot be satisfied # and several tests fail as the alignment flag can be randomly true or fals # when numpy gains an aligned allocator the tests could be enabled again +# +# Furthermore, on macOS ARM64, LONGDOUBLE is an alias for DOUBLE. if ((np.intp().dtype.itemsize != 4 or np.clongdouble().dtype.alignment <= 8) and - sys.platform != 'win32'): + sys.platform != 'win32' and + (platform.system(), platform.processor()) != ('Darwin', 'arm')): _type_names.extend(['LONGDOUBLE', 'CDOUBLE', 'CLONGDOUBLE']) _cast_dict['LONGDOUBLE'] = _cast_dict['LONG'] + \ ['ULONG', 'FLOAT', 'DOUBLE', 'LONGDOUBLE'] |