Skip to content

Commit

Permalink
skipif not win
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Sep 14, 2024
1 parent 19fc855 commit 7d0a6d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distutils/tests/test_msvccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import sys
import sysconfig
import threading
import unittest.mock as mock
from distutils import _msvccompiler
Expand Down Expand Up @@ -29,7 +30,10 @@ def _find_vcvarsall(plat_spec):
'wont find this version',
)

@needs_winreg
@pytest.mark.skipif(
not sysconfig.get_platform().startswith("win"),
reason="Only run test for non-mingw Windows platforms",
)
@pytest.mark.parametrize(
"plat_name, expected",
[
Expand Down

0 comments on commit 7d0a6d6

Please sign in to comment.