From 7d0a6d6960e39668ff636a8a58d5236d6a7b2985 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 14 Sep 2024 19:31:30 -0400 Subject: [PATCH] skipif not win --- distutils/tests/test_msvccompiler.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", [