[Python-checkins] bpo-43955: Handle the case where the distutils warning has already been triggered (GH-25675)

zooba webhook-mailer at python.org
Wed Apr 28 11:21:59 EDT 2021


https://github.com/python/cpython/commit/c1a9535989cc7323099725503519a17f79d083f5
commit: c1a9535989cc7323099725503519a17f79d083f5
branch: master
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2021-04-28T16:21:55+01:00
summary:

bpo-43955: Handle the case where the distutils warning has already been triggered (GH-25675)

files:
M Lib/test/test_distutils.py

diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py
index de94da54798ce..90bfc70a133ae 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
 



More information about the Python-checkins mailing list