-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Closed
Copy link
Labels
Description
When testing 3.11.8 installed on Win 10, the only failure is
FAIL: test_check_metadata_deprecated (distutils.tests.test_register.RegisterTestCase.test_check_metadata_deprecated)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Programs\Python311\Lib\distutils\tests\test_register.py", line 295, in test_check_metadata_deprecated
self.assertEqual(len(w.warnings), 1)
AssertionError: 71 != 1
Running test.test_distutils, the warnings are
C:\Programs\Python311\Lib\distutils\command\install.py:326:
DeprecationWarning: check_home argument is deprecated and ignored.
and apparently 70 similar to
C:\Programs\Python311\Lib\distutils\command\check.py:128: DeprecationWarning:
The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
I don't know why this passes on CI and buildbots, but there are two easy fixes.
- Change the test to
assertGreaterEqual(len(w.warnings), 1)
. - Remove the test.
@vstinner Which do you think would be better?