From 7acc0bba3a6bbbc21b6c1111cdf5dc1cb2a882aa Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 5 May 2023 17:00:27 +0100 Subject: [PATCH] Expand warnings ignored for bdist_wheel test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … about unset config variables and potentially wrong Python ABI. --- setuptools/tests/test_bdist_wheel.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/setuptools/tests/test_bdist_wheel.py b/setuptools/tests/test_bdist_wheel.py index 018ed734b51..bfb7b26418c 100644 --- a/setuptools/tests/test_bdist_wheel.py +++ b/setuptools/tests/test_bdist_wheel.py @@ -362,15 +362,9 @@ def test_build_number(dummy_dist, monkeypatch, tmp_path): """ -# On Windows, a warning may inform the user that Py_DEBUG is unset. -# This behaviour seems to be inherited from the original pypa/wheel implementation. -ignore_pydebug = ( - pytest.mark.filterwarnings("ignore:Config variable 'Py_DEBUG' is unset.*") - if sys.platform == "win32" else lambda x: x +@pytest.mark.filterwarnings( + "once:Config variable '.*' is unset.*, Python ABI tag may be incorrect" ) - - -@ignore_pydebug def test_limited_abi(monkeypatch, tmp_path, tmp_path_factory): """Test that building a binary wheel with the limited ABI works.""" proj_dir = tmp_path_factory.mktemp("dummy_dist")