Skip to content

Commit

Permalink
Expand warnings ignored for bdist_wheel test
Browse files Browse the repository at this point in the history
… about unset config variables and potentially wrong Python ABI.
  • Loading branch information
abravalheri committed May 5, 2023
1 parent 9a8b99e commit 7acc0bb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions setuptools/tests/test_bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7acc0bb

Please sign in to comment.