Skip to content

Commit

Permalink
tests: skip a test that fails with new Python 3.11 from MSYS2
Browse files Browse the repository at this point in the history
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
msys2-contrib/cpython-mingw#141 is fixed
this can be reverted.
  • Loading branch information
lazka committed Jul 29, 2023
1 parent 9eb7fe3 commit 6aedda7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittests/windowstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6aedda7

Please sign in to comment.