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 8abde60 commit 6920d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distutils/tests/test_mingwccompiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import pytest

from distutils.util import split_quoted, is_mingw
Expand Down Expand Up @@ -45,6 +47,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 6920d32

Please sign in to comment.