summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc/test_pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) ↵Miss Islington (bot)2024-06-181-8/+32
| | | | | | | | | | | (GH-120669) Mocking only works if sys.modules['pydoc'] and pydoc are the same, but some pydoc functions reload the module and change sys.modules. Ensure that sys.modules['pydoc'] is always restored after the corresponding tests. (cherry picked from commit 2cf47389e26cb591342d07dad98619916d5a1b15) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)Miss Islington (bot)2024-06-151-13/+49
| | | | | | | When help() is called with non-string argument, use __qualname__ or __name__ if available, otherwise use "{typename} object". (cherry picked from commit 31d1d72d7e24e0427df70f7dd14b9baff28a4f89) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] bpo-37755: Use configured output in pydoc instead of pager (GH-15105) ↵Miss Islington (bot)2024-06-081-18/+107
| | | | | | | | | | | (GH-120261) If the Helper() class was initialized with an output, the topics, keywords and symbols help still use the pager instead of the output. Change the behavior so the output is used if available while keeping the previous behavior if no output was configured. (cherry picked from commit 2080425154d235b4b7dcc9a8a2f58e71769125ca) Co-authored-by: Enrico Tröger <enrico.troeger@uvena.de>
* gh-116303: Skip test module dependent tests if test modules are unavailable ↵Erlend E. Aasland2024-04-031-6/+6
| | | | (#117341)
* gh-113942: Show functions implemented as builtin methods (GH-115306)Serhiy Storchaka2024-02-261-0/+12
| | | | Pydoc no longer skips global functions implemented as builtin methods, such as MethodDescriptorType and WrapperDescriptorType.
* gh-101860: Expose __name__ on property (GH-101876)Eugene Toder2024-02-201-6/+17
| | | | | Useful for introspection and consistent with functions and other descriptors.
* gh-107155: Fix help() for lambda function with return annotation (GH-107401)Kirill Podoprigora2024-02-171-0/+24
|
* gh-108303: Move all `pydoc` related test files to new `test.test_pydoc` ↵Nikita Sobolev2024-02-131-0/+2015
package (#114506)