]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43955: Handle the case where the distutils warning has already been triggered...
authorSteve Dower <steve.dower@python.org>
Wed, 28 Apr 2021 15:21:55 +0000 (16:21 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 15:21:55 +0000 (16:21 +0100)
Lib/test/test_distutils.py

index de94da54798ce38ec32a421b46b5833475dc58b0..90bfc70a133ae103a558f89acbf644fc2a60b18e 100644 (file)
@@ -10,7 +10,7 @@ from test import support
 from test.support import warnings_helper
 
 with warnings_helper.check_warnings(
-    ("The distutils package is deprecated", DeprecationWarning)):
+    ("The distutils package is deprecated", DeprecationWarning), quiet=True):
 
     import distutils.tests