diff options
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r-- | numpy/distutils/tests/test_system_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py index 3576de814..73b841692 100644 --- a/numpy/distutils/tests/test_system_info.py +++ b/numpy/distutils/tests/test_system_info.py @@ -65,7 +65,8 @@ def have_compiler(): cmd = compiler.compiler # Unix compilers except AttributeError: try: - compiler.initialize() # MSVC is different + if not compiler.initialized: + compiler.initialize() # MSVC is different except DistutilsError: return False cmd = [compiler.cc] |