From 24066c6c9a76e8bfc274c41242a602ed7e42ee5a Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 22 Apr 2024 23:48:17 +0100 Subject: [PATCH] Attempt to avoid errors in PyPY (test of hypothesis) --- setuptools/tests/test_build_py.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setuptools/tests/test_build_py.py b/setuptools/tests/test_build_py.py index db2052a5863..dd23cbde7d4 100644 --- a/setuptools/tests/test_build_py.py +++ b/setuptools/tests/test_build_py.py @@ -1,4 +1,5 @@ import os +import platform import stat import shutil import warnings @@ -157,6 +158,11 @@ def test_executable_data(tmpdir_cwd): } +@pytest.mark.skipif( + platform.python_implementation() == 'PyPy', + reason="Playing with warning filters might be causing unexpected problems in PyPy, " + "see discussion in pypa/setuptools#4255.", +) def test_excluded_subpackages(tmpdir_cwd): jaraco.path.build(EXAMPLE_WITH_MANIFEST) dist = Distribution({"script_name": "%PEP 517%"})