summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-08-02 10:34:55 +0100
committerGitHub <noreply@github.com>2021-08-02 11:34:55 +0200
commita9134fa2ffb7e4684c980325dd5444afca596586 (patch)
treeb376bdc62221a83ebef8b1ad6de15205e526c08e
parentf92b9133ef67e77605cbd315b6b6c81036ce110e (diff)
downloadcpython-git-a9134fa2ffb7e4684c980325dd5444afca596586.tar.gz
bpo-44781: make distutils test suppress deprecation warning from import distutils (GH-27485)
-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 09ad076799..55fa3930dd 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,