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

This commit is contained in:
Irit Katriel 2021-08-02 10:34:55 +01:00 committed by GitHub
parent f92b9133ef
commit a9134fa2ff
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,