diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-02-10 15:26:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 14:26:40 +0100 |
| commit | 29b3fc0a18f105de666fdd586b537f34e349766d (patch) | |
| tree | 0492c7ec4d028639fbe6d139c343140597d7409e /Lib/distutils/tests | |
| parent | 5305cc9dbfe8a5a0ab666511f3ba7f026c8983f8 (diff) | |
| download | cpython-git-29b3fc0a18f105de666fdd586b537f34e349766d.tar.gz | |
bpo-39586: Deprecate distutils bdist_msi command (GH-18415)
Diffstat (limited to 'Lib/distutils/tests')
| -rw-r--r-- | Lib/distutils/tests/test_bdist_msi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist_msi.py b/Lib/distutils/tests/test_bdist_msi.py index 15d8bdff2b..418e60ec72 100644 --- a/Lib/distutils/tests/test_bdist_msi.py +++ b/Lib/distutils/tests/test_bdist_msi.py @@ -1,7 +1,7 @@ """Tests for distutils.command.bdist_msi.""" import sys import unittest -from test.support import run_unittest +from test.support import run_unittest, check_warnings from distutils.tests import support @@ -14,7 +14,8 @@ class BDistMSITestCase(support.TempdirManager, # minimal test XXX need more tests from distutils.command.bdist_msi import bdist_msi project_dir, dist = self.create_dist() - cmd = bdist_msi(dist) + with check_warnings(("", DeprecationWarning)): + cmd = bdist_msi(dist) cmd.ensure_finalized() |
