diff options
author | Rohit Goswami <rgoswami@quansight.com> | 2022-04-30 21:11:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 21:11:35 +0000 |
commit | a73755455ae73dd7fe93836c72e72c6ffaee7977 (patch) | |
tree | fb02b6370ea68129340bfef8687bf57f58edcdc7 /numpy | |
parent | f42ccf635d9f644cafe7bda585d53b8f938220db (diff) | |
parent | 96c41da6a4fdbba2cc5e03382e696603fa2987fc (diff) | |
download | numpy-a73755455ae73dd7fe93836c72e72c6ffaee7977.tar.gz |
Merge pull request #21415 from HaoZeke/fixBLDf2py
BUG: Fix handling of skip-empty-wrappers
Diffstat (limited to 'numpy')
-rwxr-xr-x | numpy/f2py/f2py2e.py | 2 | ||||
-rw-r--r-- | numpy/f2py/tests/test_return_real.py | 9 | ||||
-rw-r--r-- | numpy/f2py/tests/test_semicolon_split.py | 9 |
3 files changed, 17 insertions, 3 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index 5732c1e19..69d946cf0 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -531,7 +531,7 @@ def run_compile(): sysinfo_flags = [f[7:] for f in sysinfo_flags] _reg2 = re.compile( - r'--((no-|)(wrap-functions|lower)|debug-capi|quiet)|-include') + r'--((no-|)(wrap-functions|lower)|debug-capi|quiet|skip-empty-wrappers)|-include') f2py_flags = [_m for _m in sys.argv[1:] if _reg2.match(_m)] sys.argv = [_m for _m in sys.argv if _m not in f2py_flags] f2py_flags2 = [] diff --git a/numpy/f2py/tests/test_return_real.py b/numpy/f2py/tests/test_return_real.py index 35ab5008d..7705a1122 100644 --- a/numpy/f2py/tests/test_return_real.py +++ b/numpy/f2py/tests/test_return_real.py @@ -1,5 +1,6 @@ import platform import pytest +import numpy as np from numpy import array from . import util @@ -48,9 +49,13 @@ class TestReturnReal(util.F2PyTest): @pytest.mark.skipif( - platform.system() == "Darwin" or platform.system() == "Windows", + platform.system() == "Darwin", reason="Prone to error when run with numpy/f2py/tests on mac os, " - "and windows, but not when run in isolation", + "but not when run in isolation", +) +@pytest.mark.skipif( + np.dtype(np.intp).itemsize < 8, + reason="32-bit builds are buggy" ) class TestCReturnReal(TestReturnReal): suffix = ".pyf" diff --git a/numpy/f2py/tests/test_semicolon_split.py b/numpy/f2py/tests/test_semicolon_split.py index 5375543e0..6d499046c 100644 --- a/numpy/f2py/tests/test_semicolon_split.py +++ b/numpy/f2py/tests/test_semicolon_split.py @@ -1,5 +1,6 @@ import platform import pytest +import numpy as np from . import util @@ -9,6 +10,10 @@ from . import util reason="Prone to error when run with numpy/f2py/tests on mac os, " "but not when run in isolation", ) +@pytest.mark.skipif( + np.dtype(np.intp).itemsize < 8, + reason="32-bit builds are buggy" +) class TestMultiline(util.F2PyTest): suffix = ".pyf" module_name = "multiline" @@ -38,6 +43,10 @@ end python module {module_name} reason="Prone to error when run with numpy/f2py/tests on mac os, " "but not when run in isolation", ) +@pytest.mark.skipif( + np.dtype(np.intp).itemsize < 8, + reason="32-bit builds are buggy" +) class TestCallstatement(util.F2PyTest): suffix = ".pyf" module_name = "callstatement" |