mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
33a4010198
commit
1bc83eb5c8
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue