summaryrefslogtreecommitdiff
path: root/numpy/distutils/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r--numpy/distutils/tests/test_system_info.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py
index de680298c..50befa15b 100644
--- a/numpy/distutils/tests/test_system_info.py
+++ b/numpy/distutils/tests/test_system_info.py
@@ -6,7 +6,7 @@ from tempfile import mkstemp, mkdtemp
from subprocess import Popen, PIPE
from distutils.errors import DistutilsError
-from numpy.distutils import ccompiler
+from numpy.distutils import ccompiler, customized_ccompiler
from numpy.testing import (
run_module_suite, assert_, assert_equal, dec
)
@@ -60,8 +60,7 @@ void bar(void) {
def have_compiler():
""" Return True if there appears to be an executable compiler
"""
- compiler = ccompiler.new_compiler()
- compiler.customize(None)
+ compiler = customized_ccompiler()
try:
cmd = compiler.compiler # Unix compilers
except AttributeError:
@@ -205,8 +204,7 @@ class TestSystemInfoReading(object):
@dec.skipif(not HAVE_COMPILER)
def test_compile1(self):
# Compile source and link the first source
- c = ccompiler.new_compiler()
- c.customize(None)
+ c = customized_ccompiler()
previousDir = os.getcwd()
try:
# Change directory to not screw up directories
@@ -223,8 +221,7 @@ class TestSystemInfoReading(object):
def test_compile2(self):
# Compile source and link the second source
tsi = self.c_temp2
- c = ccompiler.new_compiler()
- c.customize(None)
+ c = customized_ccompiler()
extra_link_args = tsi.calc_extra_info()['extra_link_args']
previousDir = os.getcwd()
try: