bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485) (GH-27540)

(cherry picked from commit a9134fa2ff)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2021-08-02 02:54:52 -07:00 committed by GitHub
parent 33a4010198
commit 1bc83eb5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,