Skip to content

Commit b0ae0dc

Browse files
committed
Expand warnings ignored for bdist_wheel test
… about unset config variables and potentially wrong Python ABI.
1 parent 468e894 commit b0ae0dc

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

setuptools/tests/test_bdist_wheel.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,9 @@ def test_build_number(dummy_dist, monkeypatch, tmp_path):
362362
"""
363363

364364

365-
# On Windows, a warning may inform the user that Py_DEBUG is unset.
366-
# This behaviour seems to be inherited from the original pypa/wheel implementation.
367-
ignore_pydebug = (
368-
pytest.mark.filterwarnings("ignore:Config variable 'Py_DEBUG' is unset.*")
369-
if sys.platform == "win32" else lambda x: x
365+
@pytest.mark.filterwarnings(
366+
"once:Config variable '.*' is unset.*, Python ABI tag may be incorrect"
370367
)
371-
372-
373-
@ignore_pydebug
374368
def test_limited_abi(monkeypatch, tmp_path, tmp_path_factory):
375369
"""Test that building a binary wheel with the limited ABI works."""
376370
proj_dir = tmp_path_factory.mktemp("dummy_dist")

0 commit comments

Comments
 (0)