summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2023-07-28 17:43:50 +0200
committerEli Schwartz <eschwartz93@gmail.com>2023-07-30 22:39:45 -0400
commit68dce66bf9a2bcb3d23c291beb2354225a74b954 (patch)
treef7ba83f3c7358691091f9670b971bc18e5fd763a
parentd9870ed54b27f853d43b4aaaf4daec86e92bd20e (diff)
downloadmeson-68dce66bf9a2bcb3d23c291beb2354225a74b954.tar.gz
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.
-rw-r--r--unittests/windowstests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/windowstests.py b/unittests/windowstests.py
index 37e92996d..c20195327 100644
--- a/unittests/windowstests.py
+++ b/unittests/windowstests.py
@@ -462,6 +462,9 @@ class WindowsTests(BasePlatformTests):
@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()