mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485)
This commit is contained in:
parent
f92b9133ef
commit
a9134fa2ff
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