Skip to content

Commit

Permalink
Ignore Py_DEBUG warning on Windows for bdist_wheel test
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 23, 2023
1 parent c8ccd77 commit 98d788a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions setuptools/tests/test_bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,15 @@ def test_build_number(dummy_dist, monkeypatch, tmp_path):
"""


@pytest.mark.filterwarnings("ignore:Config variable 'Py_DEBUG' is unset.*")
# ^-- Warning may happen in Windows (inherited from original pypa/wheel implementation)
# 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
)


@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 98d788a

Please sign in to comment.