Skip to content

Commit 35ba77d

Browse files
committed
Fix warning in test_bdist_wheel
1 parent a2f7e0b commit 35ba77d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setuptools/tests/test_bdist_wheel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from setuptools.command.bdist_wheel import _get_abi_tag, bdist_wheel
1818
from setuptools.dist import Distribution
1919
from setuptools.extern.packaging import tags
20+
from setuptools.warnings import SetuptoolsDeprecationWarning
2021

2122
DEFAULT_FILES = {
2223
"dummy_dist-1.0.dist-info/top_level.txt",
@@ -276,7 +277,10 @@ def test_licenses_deprecated(dummy_dist, monkeypatch, tmp_path):
276277
"[metadata]\nlicense_file=licenses/DUMMYFILE", encoding="utf-8"
277278
)
278279
monkeypatch.chdir(dummy_dist)
279-
bdist_wheel_cmd(bdist_dir=str(tmp_path), universal=True).run()
280+
281+
with pytest.warns(SetuptoolsDeprecationWarning, match="use license_files"):
282+
bdist_wheel_cmd(bdist_dir=str(tmp_path), universal=True).run()
283+
280284
with ZipFile("dist/dummy_dist-1.0-py2.py3-none-any.whl") as wf:
281285
license_files = {"dummy_dist-1.0.dist-info/DUMMYFILE"}
282286
assert set(wf.namelist()) == DEFAULT_FILES | license_files

0 commit comments

Comments
 (0)