summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2020-12-15 06:08:16 +0000
committerSayed Adel <seiko@imavr.com>2020-12-20 19:19:40 +0000
commitc5539458a06e79af6b3a96134de39336f44aa1a8 (patch)
tree176ff1ba03c85568f5e7e4bc17c9863c6f9e209a /numpy/distutils/tests
parent23d0c17dec171c2d7c21bb40be773aa809ea2685 (diff)
downloadnumpy-c5539458a06e79af6b3a96134de39336f44aa1a8.tar.gz
BLD, BUG: Fix detecting aarch64 on macOS
Co-authored-by: h-vetinari <h.vetinari@gmx.com>
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r--numpy/distutils/tests/test_ccompiler_opt.py2
-rw-r--r--numpy/distutils/tests/test_ccompiler_opt_conf.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/distutils/tests/test_ccompiler_opt.py b/numpy/distutils/tests/test_ccompiler_opt.py
index a789be1ea..287a683c8 100644
--- a/numpy/distutils/tests/test_ccompiler_opt.py
+++ b/numpy/distutils/tests/test_ccompiler_opt.py
@@ -82,7 +82,7 @@ class _Test_CCompilerOpt(object):
self._opt = None
def nopt(self, *args, **kwargs):
- FakeCCompilerOpt.fake_info = self.arch + '_' + self.cc
+ FakeCCompilerOpt.fake_info = (self.arch, self.cc, "")
return FakeCCompilerOpt(*args, **kwargs)
def opt(self):
diff --git a/numpy/distutils/tests/test_ccompiler_opt_conf.py b/numpy/distutils/tests/test_ccompiler_opt_conf.py
index 244748e58..09c1fad40 100644
--- a/numpy/distutils/tests/test_ccompiler_opt_conf.py
+++ b/numpy/distutils/tests/test_ccompiler_opt_conf.py
@@ -19,7 +19,7 @@ arch_compilers = dict(
)
class FakeCCompilerOpt(CCompilerOpt):
- fake_info = ""
+ fake_info = ("arch", "compiler", "extra_args")
def __init__(self, *args, **kwargs):
CCompilerOpt.__init__(self, None, **kwargs)
def dist_compile(self, sources, flags, **kwargs):
@@ -169,7 +169,7 @@ class TestConfFeatures(unittest.TestCase):
def test_features(self):
for arch, compilers in arch_compilers.items():
for cc in compilers:
- FakeCCompilerOpt.fake_info = arch + cc
+ FakeCCompilerOpt.fake_info = (arch, cc, "")
_TestConfFeatures()
if is_standalone: