-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as not planned
Closed as not planned
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
If docutils-0.19
are installed system-wide while running CPython's test suite, the following test fails:
======================================================================
FAIL: test_check_metadata_deprecated (distutils.tests.test_register.RegisterTestCase.test_check_metadata_deprecated)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mgorny/git/cpython/Lib/distutils/tests/test_register.py", line 296, in test_check_metadata_deprecated
self.assertEqual(len(w.warnings), 1)
AssertionError: 70 != 1
Apparently it's caused by multiple instances of the following warning:
/home/mgorny/git/cpython/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.
settings = frontend.OptionParser(components=(Parser,)).get_default_values()
/home/mgorny/git/cpython/Lib/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
option = self.option_class(*args, **kwargs)
To reproduce
- Install
docutils-0.19
using the system package manager. ./configure --prefix=/usr
make -j$(nproc)
make test
Your environment
- CPython versions tested on: 3.11.0
- Operating system and architecture: Gentoo/amd64
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error