diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2019-08-08 23:25:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-08 23:25:46 +0100 |
| commit | a85a63840b076c7a9d165db731ca6d1be28287e8 (patch) | |
| tree | 7666f6b39c7b608646dd8676b48beb0de7fb284e /tests | |
| parent | cab8dd1a30b14542fcfe7ab63f8cd8b5358222da (diff) | |
| download | python-setuptools-git-a85a63840b076c7a9d165db731ca6d1be28287e8.tar.gz | |
bpo-37795: Capture DeprecationWarnings in the test suite (GH-15184)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_bdist.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_bdist.py b/tests/test_bdist.py index c80b3edc..130d8bf1 100644 --- a/tests/test_bdist.py +++ b/tests/test_bdist.py @@ -2,6 +2,7 @@ import os import unittest from test.support import run_unittest +import warnings from distutils.command.bdist import bdist from distutils.tests import support @@ -38,7 +39,10 @@ class BuildTestCase(support.TempdirManager, names.append('bdist_msi') for name in names: - subcmd = cmd.get_finalized_command(name) + with warnings.catch_warnings(): + warnings.filterwarnings('ignore', 'bdist_wininst command is deprecated', + DeprecationWarning) + subcmd = cmd.get_finalized_command(name) if getattr(subcmd, '_unsupported', False): # command is not supported on this build continue |
