https://github.com/python/cpython/commit/115f72b70b7df816cf588fde149e1d9358862cd2 commit: 115f72b70b7df816cf588fde149e1d9358862cd2 branch: 3.11 author: Serhiy Storchaka <[email protected]> committer: terryjreedy <[email protected]> date: 2024-02-09T18:23:29-05:00 summary:
[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 <[email protected]> --------- Co-authored-by: Terry Jan Reedy <[email protected]> files: A Misc/NEWS.d/next/Tests/2024-02-09-10-59-17.gh-issue-115198.1JP6LG.rst M Lib/distutils/tests/test_register.py diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py index 33f9443358ff27..986392cf92037d 100644 --- a/Lib/distutils/tests/test_register.py +++ b/Lib/distutils/tests/test_register.py @@ -291,6 +291,8 @@ def test_check_metadata_deprecated(self): 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 00000000000000..2ad92f4b472bbf --- /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. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
