]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
General cleanup of test_pydoc (GH-29459)
authorZachary Ware <zach@python.org>
Sun, 7 Nov 2021 23:44:11 +0000 (17:44 -0600)
committerGitHub <noreply@github.com>
Sun, 7 Nov 2021 23:44:11 +0000 (17:44 -0600)
commitfd41125f0f1bd73e0137580d4a5bfaeaef87c283
tree0cc4dfc6864a53e79361c626042b5ddae4f10890
parentbe3cd5c05d9fb1d1cdb55cb98ca6ef8f866774be
General cleanup of test_pydoc (GH-29459)

- Uniform usage of `test.support.requires_docstrings` instead of a
  local check for `-OO`.
- Added `requires_docstrings` to a couple more methods that need it.
- Replaced a few instances of `test.test_pydoc` with `__name__` to allow
  for different methods of running just this test file.
- Rewrote `test_server` to run faster and better test the server.
- Removed unused import.
- Removed unused locals.
- Minor whitespace cleanups.
Lib/test/test_pydoc.py