Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 115f72b

Browse files
[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]>
1 parent 7542210 commit 115f72b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/distutils/tests/test_register.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ def test_check_metadata_deprecated(self):
291291
cmd = self._get_cmd()
292292
with check_warnings() as w:
293293
warnings.simplefilter("always")
294+
warnings.filterwarnings("ignore", ".*OptionParser class will be replaced.*")
295+
warnings.filterwarnings("ignore", ".*Option class will be removed.*")
294296
cmd.check_metadata()
295297
self.assertEqual(len(w.warnings), 1)
296298

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_check_metadata_deprecate in distutils tests with a newer Docutils.

0 commit comments

Comments
 (0)