diff options
author | Marvin Schmidt <marv@exherbo.org> | 2017-03-30 13:46:57 +0200 |
---|---|---|
committer | Marvin Schmidt <marv@exherbo.org> | 2017-03-30 14:22:22 +0200 |
commit | fecbb3d3500d6a6b7503eaec2de05c998798ef9c (patch) | |
tree | 7f1ab7fa078a390ebf94c7a11d3e555620b7dbb0 /numpy/distutils/tests/test_system_info.py | |
parent | ab9b15ef0a80ea002d12498554853544bb25ad57 (diff) | |
download | numpy-fecbb3d3500d6a6b7503eaec2de05c998798ef9c.tar.gz |
TST: Respect compiler customizations
Without calling `compiler.customize(None)` customizations using
environment variables like CC won't be honoured
Diffstat (limited to 'numpy/distutils/tests/test_system_info.py')
-rw-r--r-- | numpy/distutils/tests/test_system_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py index e0a205b10..3576de814 100644 --- a/numpy/distutils/tests/test_system_info.py +++ b/numpy/distutils/tests/test_system_info.py @@ -60,6 +60,7 @@ def have_compiler(): """ Return True if there appears to be an executable compiler """ compiler = ccompiler.new_compiler() + compiler.customize(None) try: cmd = compiler.compiler # Unix compilers except AttributeError: @@ -201,6 +202,7 @@ class TestSystemInfoReading(TestCase): def test_compile1(self): # Compile source and link the first source c = ccompiler.new_compiler() + c.customize(None) previousDir = os.getcwd() try: # Change directory to not screw up directories @@ -218,6 +220,7 @@ class TestSystemInfoReading(TestCase): # Compile source and link the second source tsi = self.c_temp2 c = ccompiler.new_compiler() + c.customize(None) extra_link_args = tsi.calc_extra_info()['extra_link_args'] previousDir = os.getcwd() try: |