diff --git a/distutils/tests/test_msvccompiler.py b/distutils/tests/test_msvccompiler.py index 96cb7a71..028dcdf5 100644 --- a/distutils/tests/test_msvccompiler.py +++ b/distutils/tests/test_msvccompiler.py @@ -2,6 +2,7 @@ import os import sys +import sysconfig import threading import unittest.mock as mock from distutils import _msvccompiler @@ -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", [