From fecbb3d3500d6a6b7503eaec2de05c998798ef9c Mon Sep 17 00:00:00 2001 From: Marvin Schmidt Date: Thu, 30 Mar 2017 13:46:57 +0200 Subject: TST: Respect compiler customizations Without calling `compiler.customize(None)` customizations using environment variables like CC won't be honoured --- numpy/distutils/tests/test_system_info.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/distutils/tests/test_system_info.py') 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: -- cgit v1.2.1