Skip to content

Commit

Permalink
Just skip the most problematic test for PyPy on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Mar 14, 2022
1 parent fb258ed commit 8afae7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
- platform: ubuntu-latest
python: "3.10"
distutils: stdlib
exclude:
# The combination of PyPy+Windows+pytest-xdist+ProcessPoolExecutor is flaky/problematic
- platform: windows-2019
python: pypy-3.7
distutils: local
runs-on: ${{ matrix.platform }}
env:
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
Expand Down
7 changes: 7 additions & 0 deletions setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
IS_PYPY = '__pypy__' in sys.builtin_module_names


pytestmark = pytest.mark.skipif(
sys.platform == "win32" and IS_PYPY,
reason="The combination of PyPy + Windows + pytest-xdist + ProcessPoolExecutor "
"is flaky and problematic"
)


class BuildBackendBase:
def __init__(self, cwd='.', env={}, backend_name='setuptools.build_meta'):
self.cwd = cwd
Expand Down

0 comments on commit 8afae7f

Please sign in to comment.