diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-02 09:54:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 09:54:52 (GMT) |
commit | 1bc83eb5c8040855de425c68fc9c5d3c5b48d38e (patch) | |
tree | b84bc18c90b5e24c63e12cd32643b18d54993453 /Lib/distutils | |
parent | 33a4010198aad31346e46dafdda17e02f8349017 (diff) | |
download | cpython-1bc83eb5c8040855de425c68fc9c5d3c5b48d38e.zip cpython-1bc83eb5c8040855de425c68fc9c5d3c5b48d38e.tar.gz cpython-1bc83eb5c8040855de425c68fc9c5d3c5b48d38e.tar.bz2 |
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485) (GH-27540)
(cherry picked from commit a9134fa2ffb7e4684c980325dd5444afca596586)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_bdist.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_bdist.py b/Lib/distutils/tests/test_bdist.py index 09ad076..55fa393 100644 --- a/Lib/distutils/tests/test_bdist.py +++ b/Lib/distutils/tests/test_bdist.py @@ -3,8 +3,11 @@ import os import unittest from test.support import run_unittest -from distutils.command.bdist import bdist -from distutils.tests import support +import warnings +with warnings.catch_warnings(): + warnings.simplefilter('ignore', DeprecationWarning) + from distutils.command.bdist import bdist + from distutils.tests import support class BuildTestCase(support.TempdirManager, |