From 105186c09ece2a88993d6284c5f47c9c10e94c34 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 28 Apr 2021 01:03:52 +0100 Subject: [PATCH] bpo-43955: Handle the case where the distutils warning has already been triggered --- Lib/test/test_distutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py index de94da54798ce3..90bfc70a133ae1 100644 --- a/Lib/test/test_distutils.py +++ b/Lib/test/test_distutils.py @@ -10,7 +10,7 @@ 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