Skip to content

Commit

Permalink
Added a test for the deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Aug 4, 2024
1 parent 3936c55 commit b045a80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_bdist_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b045a80

Please sign in to comment.