From 7d78834c7b9e12a5a0b5b084d43383c548adb39d Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 12 Jul 2024 20:56:07 +0200 Subject: [PATCH] test_customize_compiler_with_msvc_python: skip for cygwin Mingw32CCompiler() checks that the default compiler isn't cygwin, so it can't be used under cygwin, so skip it there. --- distutils/tests/test_mingwccompiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/distutils/tests/test_mingwccompiler.py b/distutils/tests/test_mingwccompiler.py index fd201cd7..28f4762b 100644 --- a/distutils/tests/test_mingwccompiler.py +++ b/distutils/tests/test_mingwccompiler.py @@ -45,6 +45,7 @@ def test_cygwincc_error(self, monkeypatch): with pytest.raises(CCompilerError): distutils.cygwinccompiler.Mingw32CCompiler() + @pytest.mark.skipif('sys.platform == "cygwin"') def test_customize_compiler_with_msvc_python(self): from distutils.cygwinccompiler import Mingw32CCompiler