diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py index 4815f4fb..bb1457a8 100644 --- a/tests/test_bdist_wheel.py +++ b/tests/test_bdist_wheel.py @@ -442,3 +442,10 @@ def _fake_import(name: str, *args, **kwargs): from wheel import _bdist_wheel assert _bdist_wheel + + +def test_deprecated_import() -> None: + with pytest.warns(DeprecationWarning): + from wheel import bdist_wheel + + assert issubclass(bdist_wheel.bdist_wheel, setuptools.Command)