From 68dce66bf9a2bcb3d23c291beb2354225a74b954 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 28 Jul 2023 17:43:50 +0200 Subject: [PATCH] tests: skip a test that fails with new Python 3.11 from MSYS2 For some (atm unknown) reason mingw Python fails to load some modules when MSYS2 is removed from PATH, like in this test. Skip for now to make the test suite pass again. Once https://github.com/msys2-contrib/cpython-mingw/issues/141 is fixed this can be reverted. --- unittests/windowstests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unittests/windowstests.py b/unittests/windowstests.py index 37e92996d97a..c201953276cc 100644 --- a/unittests/windowstests.py +++ b/unittests/windowstests.py @@ -462,6 +462,9 @@ def test_non_utf8_fails(self): @unittest.skipIf(is_cygwin(), "Needs visual studio") def test_vsenv_option(self): + if mesonbuild.environment.detect_msys2_arch(): + # https://github.com/msys2-contrib/cpython-mingw/issues/141 + raise SkipTest('mingw python fails with /bin being removed from PATH') if self.backend is not Backend.ninja: raise SkipTest('Only ninja backend is valid for test') env = os.environ.copy()