From: Serhiy Storchaka Date: Fri, 9 Feb 2024 23:23:29 +0000 (+0200) Subject: [3.11] gh-115198: Fix test_check_metadata_deprecation in test_distutils (#115200) X-Git-Tag: v3.11.9~241 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=115f72b70b7df816cf588fde149e1d9358862cd2;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-115198: Fix test_check_metadata_deprecation in test_distutils (#115200) * [3.11] gh-115198: Fix test_check_metadata_deprecation in test_distutils Co-authored-by: Terry Jan Reedy --------- Co-authored-by: Terry Jan Reedy --- diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py index 33f9443358ff..986392cf9203 100644 --- a/Lib/distutils/tests/test_register.py +++ b/Lib/distutils/tests/test_register.py @@ -291,6 +291,8 @@ class RegisterTestCase(BasePyPIRCCommandTestCase): cmd = self._get_cmd() with check_warnings() as w: warnings.simplefilter("always") + warnings.filterwarnings("ignore", ".*OptionParser class will be replaced.*") + warnings.filterwarnings("ignore", ".*Option class will be removed.*") cmd.check_metadata() self.assertEqual(len(w.warnings), 1) diff --git a/Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst b/Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst new file mode 100644 index 000000000000..2ad92f4b472b --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst @@ -0,0 +1 @@ +Fix test_check_metadata_deprecate in distutils tests with a newer Docutils.