summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-02 09:54:52 (GMT)
committerGitHub <noreply@github.com>2021-08-02 09:54:52 (GMT)
commit1bc83eb5c8040855de425c68fc9c5d3c5b48d38e (patch)
treeb84bc18c90b5e24c63e12cd32643b18d54993453 /Lib/distutils
parent33a4010198aad31346e46dafdda17e02f8349017 (diff)
downloadcpython-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.py7
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,