We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_customize_compiler
1 parent fb9b466 commit 800fae9Copy full SHA for 800fae9
distutils/tests/test_sysconfig.py
@@ -12,7 +12,7 @@
12
13
import distutils
14
from distutils import sysconfig
15
-from distutils.ccompiler import get_default_compiler # noqa: F401
+from distutils.ccompiler import new_compiler # noqa: F401
16
from distutils.unixccompiler import UnixCCompiler
17
from test.support import swap_item
18
@@ -109,7 +109,7 @@ def set_executables(self, **kw):
109
110
return comp
111
112
- @pytest.mark.skipif("get_default_compiler() != 'unix'")
+ @pytest.mark.skipif("not isinstance(new_compiler(), UnixCCompiler)")
113
def test_customize_compiler(self):
114
# Make sure that sysconfig._config_vars is initialized
115
sysconfig.get_config_vars()
0 commit comments