summaryrefslogtreecommitdiff
path: root/Lib/test/test_pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)Miss Islington (bot)2018-12-171-2/+2
| | | | | | | | | | Replace time.time() with time.monotonic() in tests to measure time delta. test_zipfile64: display progress every minute (60 secs) rather than every 5 minutes (5*60 seconds). (cherry picked from commit 2cf4c202ffeb30787c944365ba54013688b854c2) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-34966: Improve support of method aliases in pydoc. (GH-9823)Miss Islington (bot)2018-11-071-0/+99
| | | | | | Pydoc now does not duplicate docstrings for aliases of inherited methods. (cherry picked from commit a44d34e17908a49d584f86c4f8642a50707b7150) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34182: Fix test_pydoc running as a script. (GH-8389)Miss Islington (bot)2018-07-291-1/+2
| | | | | (cherry picked from commit 4e11c461ed39085b8495a35c9367b46d8a0d306d) Co-authored-by: Bo Bayles <bbayles@gmail.com>
* bpo-33185: Improve wording and markup (GH-6477)Miss Islington (bot)2018-04-151-1/+1
| | | | | | | | | Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419) (cherry picked from commit 1a5c4bdb6ecc6a8b19ff33bde323ab188ed60977) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)Miss Islington (bot)2018-04-151-0/+67
| | | | | | | | | | | | | The pydoc CLI assumed -m pydoc would add the empty string to sys.path, and hence got confused when it switched to adding the full initial working directory instead. This refactors the pydoc CLI path manipulation to be more testable, and ensures it won't accidentally remove the standard library directory containing pydoc itself from sys.path. (cherry picked from commit 82a948105920100ca2ec5c2340bc3890adcfe778) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* bpo-32226: PEP 560: improve typing module (#4906)Ivan Levkivskyi2018-01-201-1/+1
| | | | This PR re-designs the internal typing API using the new PEP 560 features. However, there are only few minor changes in the public API.
* bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)xdegaye2017-11-181-1/+1
| | | When there is a symlink in the directory path of the standard library.
* bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408)Dong-hee Na2017-11-151-1/+1
|
* bpo-31128: Allow pydoc to bind to arbitrary hostnames (#3011)Feanil Patel2017-09-141-2/+2
| | | | New -n flag allow overriding localhost with custom value, for example to run from containers.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-5/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-31028: Fix test_pydoc when run directly (#2864)Victor Stinner2017-07-271-1/+1
| | | | | | | | | | * bpo-31028: Fix test_pydoc when run directly Fix get_pydoc_link() of test_pydoc to fix "./python Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent relative directories. * Use realpath() instead of abspath()
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Issue #27989: Tweak inspect.formatannotation() to improve pydoc rendering of ↵Guido van Rossum2016-10-221-0/+13
|\ | | | | | | function annotations. Ivan L. (3.5->3.6)
| * Issue #27989: Tweak inspect.formatannotation() to improve pydoc rendering of ↵Guido van Rossum2016-10-221-0/+13
| | | | | | | | function annotations. Ivan L.
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-081-0/+4
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-081-7/+1
| |
* | Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-1/+1
| |
* | Issue #24254: Preserve class attribute definition order.Eric Snow2016-09-051-1/+7
| |
* | Issue #27366: Implement PEP 487Nick Coghlan2016-07-301-1/+2
| | | | | | | | | | | | - __init_subclass__ called when new subclasses defined - __set_name__ called when descriptors are part of a class definition
* | Issue #16484: Merge pydoc Windows fixes from 3.5Martin Panter2016-06-121-1/+1
|\ \ | |/
| * Issue #16484: Fix pydoc link and test on Windows, by Kaushik NadikuditiMartin Panter2016-06-121-1/+1
| |
* | Merge: #16484: Fix pydoc doc links to modules whose names are mixed case.R David Murray2016-06-031-0/+14
|\ \ | |/
| * #16484: Fix pydoc doc links to modules whose names are mixed case.R David Murray2016-06-031-0/+14
| | | | | | | | Patch by Sean Rodman, test by Kaushik N.
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-2/+2
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-2/+2
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Issue #18010: Merge pydoc web search fix from 3.5Martin Panter2015-11-061-6/+32
|\ \ | |/
| * Issue #18010: Merge pydoc web search fix from 3.4 into 3.5Martin Panter2015-11-061-6/+32
| |\
| | * Issue #18010: Fix pydoc web server search to handle package exceptionsMartin Panter2015-11-061-6/+32
| | | | | | | | | | | | Implementation by Antoine Pitrou.
* | | Issue #24879: Teach pydoc to display named tuple fields in the order they ↵Raymond Hettinger2015-08-181-0/+16
|/ / | | | | | | were defined.
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | | | | | Patch by Christie Wilson.
* | Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.Serhiy Storchaka2015-04-211-0/+8
|\ \ | |/
| * Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.Serhiy Storchaka2015-04-211-0/+8
| |
* | Fixed pydoc tests when run with -OO.Serhiy Storchaka2015-03-011-0/+4
|\ \ | |/
| * Fixed pydoc tests when run with -OO.Serhiy Storchaka2015-03-011-0/+4
| |
* | Issue #19980: Improved help() for non-recognized strings. help('') nowSerhiy Storchaka2015-03-011-1/+4
| | | | | | | | | | shows the help on str. help('help') now shows the help on help(). Original patch by Mark Lawrence.
* | Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encodingSerhiy Storchaka2015-02-201-0/+9
|\ \ | |/ | | | | differs from file system encoding (e.g. on Mac OS).
| * Issue #23374: Fixed pydoc failure with non-ASCII files when stdout encodingSerhiy Storchaka2015-02-201-0/+9
| | | | | | | | differs from file system encoding (e.g. on Mac OS).
* | merge 3.4 (#21548)Benjamin Peterson2015-02-161-0/+32
|\ \ | |/
| * fix pydoc.apropos and pydoc.synopsis on modules with empty docstrings (#21548)Benjamin Peterson2015-02-161-0/+32
| | | | | | | | Patch by Yuyang Guo and Berker Peksag.
* | Merge from 3.4Senthil Kumaran2014-09-171-0/+2
|\ \ | |/ | | | | Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
| * Merge from 3.3Senthil Kumaran2014-09-171-0/+2
| |\ | | | | | | | | | Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
| | * Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all ↵Senthil Kumaran2014-09-171-0/+2
| | | | | | | | | | | | interfaces.
* | | Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.Zachary Ware2014-07-101-5/+2
|\ \ \ | |/ /
| * | Issue #21942: Fixed source file viewing in pydoc's server mode on Windows.Zachary Ware2014-07-101-5/+2
| | |
* | | Issue 21786: Clean-up test_pydoc taking taking advantage of diffing in ↵Raymond Hettinger2014-06-211-33/+7
|/ / | | | | | | unittest.
* | Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.Charles-François Natali2014-06-201-0/+3
| |
* | Issue #21768: fix type in test_pydoc, patch by Claudiu Popa.Terry Jan Reedy2014-06-201-1/+1
| |
* | make sure the builtin help function doesn't fail when sys.stdin is not a ↵Benjamin Peterson2014-06-071-0/+8
| | | | | | | | | | | | valid file (closes #11709) Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
* | don't remove self from example code in the HTML output (closes #13223)Benjamin Peterson2014-06-071-0/+44
| | | | | | | | Patch by Víctor Terrón.
* | Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc.Eric Snow2014-02-221-1/+3
| | | | | | | | I'll look into re-enabling them in issue #20128.