summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge with 3.3Terry Jan Reedy2013-11-051-1/+1
|\
| * Issue #19397: test_pydoc now works with -S (help not added to builtins).Terry Jan Reedy2013-11-051-1/+1
| | | | | | | | Patch by Serhiy Storchaka and Vajrasky Kok.
* | Issue #19030: fix new pydoc tests for --without-doc-stringsEthan Furman2013-10-221-5/+22
| |
* | Fix test_pydoc failure introduced by 2f09a6980e1a (issue #19030).Charles-François Natali2013-10-211-14/+14
| |
* | Issue #19030: final pieces for proper location of various class attributes ↵Ethan Furman2013-10-211-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | located in the metaclass. Okay, hopefully the very last patch for this issue. :/ I realized when playing with Enum that the metaclass attributes weren't always displayed properly. New patch properly locates DynamicClassAttributes, virtual class attributes (returned by __getattr__ and friends), and metaclass class attributes (if they are also in the metaclass __dir__ method). Also had to change one line in pydoc to get this to work. Added tests in test_inspect and test_pydoc to cover these situations.
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-1/+1
| | | | | | | | ModuleNotFoundError.
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
* | Issue #11995: test_pydoc doesn't import all sys.path modules anymore.Antoine Pitrou2013-05-191-15/+58
|\ \ | |/
| * Issue #11995: test_pydoc doesn't import all sys.path modules anymore.Antoine Pitrou2013-05-191-15/+58
| |
| * #17476: make allmethods actually return all methods.R David Murray2013-03-191-0/+24
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression relative to Python2. (In 2, methods on a class were unbound methods and matched the inspect queries being done, in 3 they are just functions and so were missed). This is an undocumented function that pydoc itself does not use, but I found that numpy at least uses it in its documentation generator. Original patch by Matt Bachmann.
| | * #17476: make allmethods actually return all methods.R David Murray2013-03-191-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression relative to Python2. (In 2, methods on a class were unbound methods and matched the inspect queries being done, in 3 they are just functions and so were missed). This is an undocumented function that pydoc itself does not use, but I found that numpy at least uses it in its documentation generator. Original patch by Matt Bachmann.
* | | #17115: Remove what appears to be a useless chunk of code which brokeBrett Cannon2013-05-041-4/+0
| | | | | | | | | | | | other tests.
* | | Merge: #17476: make allmethods actually return all methods.R David Murray2013-03-191-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression relative to Python2. (In 2, methods on a class were unbound methods and matched the inspect queries being done, in 3 they are just functions and so were missed). This is an undocumented function that pydoc itself does not use, but I found that numpy at least uses it in its documentation generator. Original patch by Matt Bachmann.
* | | #17464: improve pydoc test coverage.R David Murray2013-03-191-0/+25
|/ / | | | | | | Patch by Matt Bachmann.
* | Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-21/+32
|\ \ | |/ | | | | --without-doc-strings.
| * Issue #17041: Fix testing when Python is configured with theSerhiy Storchaka2013-01-271-17/+32
| | | | | | | | --without-doc-strings.
* | Fix test_pydoc for build --without-doc-strings.Stefan Krah2013-01-261-0/+4
| |
* | merge #14638: pydoc now treats non-str __name__ as None instead of raisingR David Murray2012-04-231-0/+11
|\ \ | |/ | | | | Original patch by Peter Otten.
| * #14638: pydoc now treats non-str __name__ as None instead of raisingR David Murray2012-04-231-0/+11
| | | | | | | | Original patch by Peter Otten.
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-5/+4
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Issue #13861: mergeNed Deily2012-02-031-2/+2
|\ \ | |/
| * Issue #13861: Prevent test_apropos* test case failures in test_pydoc.Ned Deily2012-02-031-2/+2
| |
* | merge from 3.2Ned Deily2011-10-061-42/+53
|\ \ | |/
| * Issue #7425: Refactor test_pydoc test case for '-k' behavior and addNed Deily2011-10-061-42/+53
| | | | | | | | new test cases for importing bad packages and unreadable packages dirs.
* | #13012: use splitlines(keepends=True/False) instead of splitlines(0/1).Ezio Melotti2011-09-281-2/+2
| |
* | Merge fix for #8887 from 3.2Éric Araujo2011-07-291-0/+18
|\ \ | |/
| * Make “pydoc somebuiltin.somemethod” work (#8887)Éric Araujo2011-07-291-0/+18
| |
* | Merge from 3.2Antoine Pitrou2011-07-151-21/+26
|\ \ | |/
| * Use test.script_helper in test_pydocAntoine Pitrou2011-07-151-11/+13
| |
| * test_pydoc needs to cleanup after itselfAntoine Pitrou2011-07-151-13/+16
| |
* | (merge 3.2) Issue #12451: pydoc.synopsis() now reads the encoding cookie ifVictor Stinner2011-06-301-1/+12
|\ \ | |/ | | | | available, to read the Python script from the right encoding.
| * Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, toVictor Stinner2011-06-301-1/+12
| | | | | | | | read the Python script from the right encoding.
* | (Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabledVictor Stinner2011-05-201-0/+6
|\ \ | |/
| * test_pydoc: skip PydocServerTest if thread support is disabledVictor Stinner2011-05-201-0/+6
| |
* | #11926: merge with 3.2.Ezio Melotti2011-04-281-0/+7
|\ \ | |/
| * #11926: merge with 3.1.Ezio Melotti2011-04-281-0/+7
| |\
| | * #11926: add missing keywords to help("keywords").Ezio Melotti2011-04-281-1/+7
| | |
| | * Merged revisions 86504 via svnmerge fromAlexander Belopolsky2010-11-181-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86504 | alexander.belopolsky | 2010-11-17 20:52:54 -0500 (Wed, 17 Nov 2010) | 15 lines Issue #10446: Several changes to module documentation generated by pydoc: 1. Online reference manual link is now version-specific and the 'MODULE DOCS' section renamed to 'MODULE REFERENCE'. 2. 'FILE' section is moved to the end of the file. 3. Special names processed by pydoc such as __version__ or __credits__ are now excluded from the DATA section. 4. Defined __all__ to prevent pydoc from exposing undocumented details about itself. 5. Removed Python 2.3 compatibility code. ........
| | * Merged revisions 79520 via svnmerge fromBrian Curtin2010-03-311-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r79520 | brian.curtin | 2010-03-30 22:19:28 -0500 (Tue, 30 Mar 2010) | 9 lines Merged revisions 79518 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79518 | brian.curtin | 2010-03-30 22:10:21 -0500 (Tue, 30 Mar 2010) | 2 lines Fix #8225. xml.etree was displaying an incorrect link when viewed in help. ........ ................
| | * Merged revisions 78209 via svnmerge fromEzio Melotti2010-02-161-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78209 | ezio.melotti | 2010-02-17 01:31:04 +0200 (Wed, 17 Feb 2010) | 9 lines Merged revisions 78207 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line #7930: fix stripid ........ ................
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| | * Merged revisions 73623-73624 via svnmerge fromBenjamin Peterson2009-06-281-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r73623 | benjamin.peterson | 2009-06-28 12:22:03 -0500 (Sun, 28 Jun 2009) | 58 lines Merged revisions 73004,73439,73496,73509,73529,73564,73576-73577,73595-73596,73605 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73004 | jeffrey.yasskin | 2009-05-28 22:44:31 -0500 (Thu, 28 May 2009) | 5 lines Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g -Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without. There's still a batch of non-prototype warnings in Xlib.h that I don't know how to fix. ........ r73439 | benjamin.peterson | 2009-06-15 19:29:31 -0500 (Mon, 15 Jun 2009) | 1 line don't mask encoding errors when decoding a string #6289 ........ r73496 | vinay.sajip | 2009-06-21 12:37:27 -0500 (Sun, 21 Jun 2009) | 1 line Issue #6314: logging.basicConfig() performs extra checks on the "level" argument. ........ r73509 | amaury.forgeotdarc | 2009-06-22 14:33:48 -0500 (Mon, 22 Jun 2009) | 2 lines #4490 Fix sample code run by "python -m xml.sax.xmlreader" ........ r73529 | r.david.murray | 2009-06-23 13:02:46 -0500 (Tue, 23 Jun 2009) | 4 lines Fix issue 5230 by having pydoc's safeimport check to see if the import error was thrown from itself in order to decide if the module can't be found. Thanks to Lucas Prado Melo for collaborating on the fix and tests. ........ r73564 | amaury.forgeotdarc | 2009-06-25 17:29:29 -0500 (Thu, 25 Jun 2009) | 6 lines #2016 Fix a crash in function call when the **kwargs dictionary is mutated during the function call setup. This even gives a slight speedup, probably because tuple allocation is faster than PyMem_NEW. ........ r73576 | benjamin.peterson | 2009-06-26 18:37:06 -0500 (Fri, 26 Jun 2009) | 1 line document is_declared_global() ........ r73577 | benjamin.peterson | 2009-06-27 09:16:23 -0500 (Sat, 27 Jun 2009) | 1 line link to extensive generator docs in the reference manual ........ r73595 | ezio.melotti | 2009-06-27 18:45:39 -0500 (Sat, 27 Jun 2009) | 1 line stmt and setup can contain multiple statements, see #5896 ........ r73596 | ezio.melotti | 2009-06-27 19:07:45 -0500 (Sat, 27 Jun 2009) | 1 line Fixed a wrong apostrophe ........ r73605 | georg.brandl | 2009-06-28 07:10:18 -0500 (Sun, 28 Jun 2009) | 1 line Remove stray pychecker directive. ........ ................ r73624 | benjamin.peterson | 2009-06-28 12:32:20 -0500 (Sun, 28 Jun 2009) | 1 line document BufferedIOBase.raw and TextIOBase.buffer ................
* | | Issue #11666: Teach pydoc to display full help for named tuplesRaymond Hettinger2011-03-251-1/+11
|\ \ \ | |/ /
| * | Issue #11666: Teach pydoc to display full help for named tuplesRaymond Hettinger2011-03-251-1/+11
| | |
* | | Issue #3080: Use repr() to format the module name on errorVictor Stinner2011-03-141-1/+1
| | |
* | | Issue #10992: make tests pass when run under coverage.Brett Cannon2011-02-221-0/+6
|/ / | | | | | | | | | | | | | | | | | | Various tests fail when run under coverage. A primary culprit is refcount tests which fail as the counts are thrown off by the coverage code. A new decorator -- test.support.refcount_test -- is used to decorate tests which test refcounts and to skip them when running under coverage. Other tests simply fail because of changes in the system (e.g., __local__ suddenly appearing). Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
* | #10961: fix exception handling in new pydoc server code.Georg Brandl2011-01-301-24/+21
| | | | | | | | Patch by Ron Adam, reviewed by Eric Araujo.
* | Handle Windows paths and don't double up on HTML header sections in new ↵Nick Coghlan2010-12-031-3/+5
| | | | | | | | pydoc URL handler
* | Improve Pydoc interactive browsing (#2001). Patch by Ron Adam.Nick Coghlan2010-12-031-17/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * A -b option to start an enhanced browsing session. * Allow -b and -p options to be used together. * Specifying port 0 will pick an arbitrary unused socket port. * A new browse() function to start the new server and browser. * Show Python version information in the header. * A *Get* field which takes the same input as the help() function. * A *Search* field which replaces the Tkinter search box. * Links to *Module Index*, *Topics*, and *Keywords*. * Improved source file viewing. * An HTMLDoc.filelink() method. * The -g option and the gui() and serve() functions are deprecated.
* | #940286: pydoc.Helper.help() ignores input/output init parameters.Georg Brandl2010-12-031-2/+39
| |