diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-07-05 10:44:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-05 10:44:12 +0200 |
| commit | 850d4faed59006e8dbfcee2bbec13d1985d6538a (patch) | |
| tree | d2176d9b05b3cb7542a5ce8f4945dd6874d27a4b /tests | |
| parent | 6b9a31e6602723d98fce4c37f7151fdbab17367b (diff) | |
| download | python-setuptools-git-850d4faed59006e8dbfcee2bbec13d1985d6538a.tar.gz | |
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_bdist_wininst.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_bdist_wininst.py b/tests/test_bdist_wininst.py index 163f1cc9..5c3d025d 100644 --- a/tests/test_bdist_wininst.py +++ b/tests/test_bdist_wininst.py @@ -2,7 +2,7 @@ import sys import platform import unittest -from test.support import run_unittest +from test.support import run_unittest, check_warnings from distutils.command.bdist_wininst import bdist_wininst from distutils.tests import support @@ -21,7 +21,8 @@ class BuildWinInstTestCase(support.TempdirManager, # this test makes sure it works now for every platform # let's create a command pkg_pth, dist = self.create_dist() - cmd = bdist_wininst(dist) + with check_warnings(("", DeprecationWarning)): + cmd = bdist_wininst(dist) cmd.ensure_finalized() # let's run the code that finds the right wininst*.exe file |
