Skip to content

Commit

Permalink
test_customize_compiler_with_msvc_python: skip for cygwin
Browse files Browse the repository at this point in the history
Mingw32CCompiler() checks that the default compiler isn't cygwin,
so it can't be used under cygwin, so skip it there.
  • Loading branch information
lazka committed Jul 12, 2024
1 parent abfccb8 commit 38346c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distutils/tests/test_mingwccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 38346c8

Please sign in to comment.