Skip to content

Commit 800fae9

Browse files
committed
Make test_customize_compiler run on mingw
Simply, run it for the subclasses for `UnixCCompiler`
1 parent fb9b466 commit 800fae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distutils/tests/test_sysconfig.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import distutils
1414
from distutils import sysconfig
15-
from distutils.ccompiler import get_default_compiler # noqa: F401
15+
from distutils.ccompiler import new_compiler # noqa: F401
1616
from distutils.unixccompiler import UnixCCompiler
1717
from test.support import swap_item
1818

@@ -109,7 +109,7 @@ def set_executables(self, **kw):
109109

110110
return comp
111111

112-
@pytest.mark.skipif("get_default_compiler() != 'unix'")
112+
@pytest.mark.skipif("not isinstance(new_compiler(), UnixCCompiler)")
113113
def test_customize_compiler(self):
114114
# Make sure that sysconfig._config_vars is initialized
115115
sysconfig.get_config_vars()

0 commit comments

Comments
 (0)