From 115f72b70b7df816cf588fde149e1d9358862cd2 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 10 Feb 2024 01:23:29 +0200 Subject: [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 --- Lib/distutils/tests/test_register.py | 2 ++ Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst | 1 + 2 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py index 33f9443..986392c 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 0000000..2ad92f4 --- /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. -- cgit v0.12