6507657dddebc629e49f3dc683d89a96a481fb86 |
|
07-Sep-2016 |
Martin Panter <vadmium+py@gmail.com> |
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
/external/python/cpython2/Lib/doctest.py
|
9840db838475e675339a97b727ddbe0a3e162eb5 |
|
03-Oct-2014 |
R David Murray <rdmurray@bitdance.com> |
#8473: make doctest.testfile use universal newline mode.
/external/python/cpython2/Lib/doctest.py
|
0ee9baa8d43a95d8981d00f09b6abd26aea32e52 |
|
04-Dec-2013 |
Tim Peters <tim@python.org> |
Issue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all. Grafted from c80083ad142d.
/external/python/cpython2/Lib/doctest.py
|
0364134fc80f779381392ebe46d27dde909f0d1a |
|
19-Aug-2013 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #18647: A regular expression in the doctest module rewritten so that determined minimal width of repeated subexpression is >0 (an empty line was not matched in any case).
/external/python/cpython2/Lib/doctest.py
|
f5469cff1f90381819291bcddcc70f5aaf2da141 |
|
17-Aug-2013 |
Ezio Melotti <ezio.melotti@gmail.com> |
#18705: fix a number of typos. Patch by Févry Thibault.
/external/python/cpython2/Lib/doctest.py
|
8d580539f0765fd39a457d85a68bf2d4a2f1099f |
|
10-Sep-2012 |
R David Murray <rdmurray@bitdance.com> |
#14649: clarify DocTestSuite error when there are no docstrings. Also adds tests to verify the documented behavior (which is probably a bug, as indicated in the added comments). Patch by Chris Jerdonek.
/external/python/cpython2/Lib/doctest.py
|
b3f95d7ff17f64de1a3b9b0d1e36d9a89748be3f |
|
21-Mar-2012 |
R David Murray <rdmurray@bitdance.com> |
#12757: Make doctest skipping in -OO mode work with unittest/regrtest -v
/external/python/cpython2/Lib/doctest.py
|
6c3f4a8a246cfdec15387b60876ada321ac43074 |
|
18-Dec-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Followup to #7502: add __hash__ method and tests.
/external/python/cpython2/Lib/doctest.py
|
7a3d8aee8c930ce09e585690d978fbcbb78cb61a |
|
18-Dec-2011 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #7502: Fix equality comparison for DocTestCase instances. Patch by Cédric Krier.
/external/python/cpython2/Lib/doctest.py
|
c2077b0d9b5bf99768c6f396bf7ae6c41b682465 |
|
15-Mar-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Lib/doctest.py
|
99d848bd4ba7bc0df689709f3854d67c6d82a757 |
|
15-Oct-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Merged revisions 85503 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85503 | antoine.pitrou | 2010-10-15 00:11:44 +0200 (ven., 15 oct. 2010) | 2 lines More proper closing of files ........
/external/python/cpython2/Lib/doctest.py
|
80800d35713912eb4b9486033c1ce86bce263728 |
|
14-Oct-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Fix the issue with non-ascii char in doctest. Issue #9409 Recorded merge of revisions 85495,85500 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85495 | florent.xicluna | 2010-10-14 22:56:20 +0200 (jeu., 14 oct. 2010) | 3 lines Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409) ........ r85500 | florent.xicluna | 2010-10-14 23:35:58 +0200 (jeu., 14 oct. 2010) | 2 lines Add test case for issue #9409, non-ascii char in doctest. It passes in 3.2 but needs fixing in 2.7. ........
/external/python/cpython2/Lib/doctest.py
|
b67660fcceabd6cac7d4dea593db34bffa52dc98 |
|
14-Oct-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Merged revisions 85495 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85495 | florent.xicluna | 2010-10-14 22:56:20 +0200 (jeu., 14 oct. 2010) | 3 lines Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409) ........
/external/python/cpython2/Lib/doctest.py
|
b8de9fab302263b6950b1d1e978b253e73682e06 |
|
16-Aug-2010 |
Alexander Belopolsky <alexander.belopolsky@gmail.com> |
Merged revisions 84106 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84106 | alexander.belopolsky | 2010-08-16 16:17:07 -0400 (Mon, 16 Aug 2010) | 1 line Issue #8983: Corrected docstrings. ........
/external/python/cpython2/Lib/doctest.py
|
507759904cbac9a4ab00b8fc6ebf0541cd378fda |
|
01-Aug-2010 |
Georg Brandl <georg@python.org> |
Merged revisions 83259,83261,83264-83265,83268-83269,83271-83272,83281 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83259 | georg.brandl | 2010-07-30 09:03:39 +0200 (Fr, 30 Jul 2010) | 1 line Clarification. ........ r83261 | georg.brandl | 2010-07-30 09:21:26 +0200 (Fr, 30 Jul 2010) | 1 line #9230: allow Pdb.checkline() to be called without a current frame, for setting breakpoints before starting debugging. ........ r83264 | georg.brandl | 2010-07-30 10:45:26 +0200 (Fr, 30 Jul 2010) | 1 line Document the "jump" command in pdb.__doc__, and add a version tag for "until X". ........ r83265 | georg.brandl | 2010-07-30 10:54:49 +0200 (Fr, 30 Jul 2010) | 1 line #8015: fix crash when entering an empty line for breakpoint commands. Also restore environment properly when an exception occurs during the definition of commands. ........ r83268 | georg.brandl | 2010-07-30 11:23:23 +0200 (Fr, 30 Jul 2010) | 2 lines Issue #8048: Prevent doctests from failing when sys.displayhook has been reassigned. ........ r83269 | georg.brandl | 2010-07-30 11:43:00 +0200 (Fr, 30 Jul 2010) | 1 line #6719: In pdb, do not stop somewhere in the encodings machinery if the source file to be debugged is in a non-builtin encoding. ........ r83271 | georg.brandl | 2010-07-30 11:59:28 +0200 (Fr, 30 Jul 2010) | 1 line #5727: Restore the ability to use readline when calling into pdb in doctests. ........ r83272 | georg.brandl | 2010-07-30 12:29:19 +0200 (Fr, 30 Jul 2010) | 1 line #5294: Fix the behavior of pdb "continue" command when called in the top-level debugged frame. ........ r83281 | georg.brandl | 2010-07-30 15:36:43 +0200 (Fr, 30 Jul 2010) | 1 line Add myself for pdb. ........
/external/python/cpython2/Lib/doctest.py
|
1f05e2e9baa66b3c6241c2450481eee0756381ca |
|
01-Aug-2010 |
Georg Brandl <georg@python.org> |
#8471: reset _SpoofOut.buf to an empty string when truncating; if Unicode had been output previously, it had been coerced to a Unicode string, potentially making subsequent prints behave differently or raise UnicodeErrors.
/external/python/cpython2/Lib/doctest.py
|
dfb45dfd048160a60b2165f25a2b1fb99ca0495d |
|
28-Apr-2010 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)
/external/python/cpython2/Lib/doctest.py
|
e1f4c92d23d9fb71bbaf76be12e80757c7d43e6a |
|
22-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
#7667: Fix doctest failures with non-ASCII paths.
/external/python/cpython2/Lib/doctest.py
|
2a903b26e93c34cfc18fc9b5e491ca183e01eecf |
|
27-Feb-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
Issue #1729305: Fix doctest to handle encode error with "backslashreplace". It fixes #7667 too.
/external/python/cpython2/Lib/doctest.py
|
f28fd24c36310541a1f3ec74e92e8d38629dd5d8 |
|
23-Feb-2010 |
R. David Murray <rdmurray@bitdance.com> |
Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch.
/external/python/cpython2/Lib/doctest.py
|
08dca0d6daf46eecb758c8765fdb592211122d47 |
|
21-Dec-2009 |
R. David Murray <rdmurray@bitdance.com> |
Remove a leftover from a previous iteration of the issue 7376 patch.
/external/python/cpython2/Lib/doctest.py
|
77e48ba993a83ffd6e821ab69a09ab0d11771338 |
|
20-Dec-2009 |
R. David Murray <rdmurray@bitdance.com> |
Issue #7376: When called with no arguments doctest was running a self-test. Because of a change to the way tracebacks are printed, this self-test was failing. The test is run (and passes) during normal regression testing. So instead of running the failing self-test this patch makes doctest emit a usage message. This is better behavior anyway since passing in arguments is the real reason to run doctest as a command. Bug discovery and initial patch by Florent Xicluna.
/external/python/cpython2/Lib/doctest.py
|
f93f3032c63906d0a6516d6e75985f0d425f36f5 |
|
27-Jan-2009 |
Raymond Hettinger <python@rcn.com> |
Stronger tests for combinatoric relationships.
/external/python/cpython2/Lib/doctest.py
|
68060013eaa13ddd26bf4eb804d3dce7b29813a9 |
|
15-Dec-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue #4197: Fix the remaining part of the doctest-in-zipfile problem by giving linecache access to the module globals when available
/external/python/cpython2/Lib/doctest.py
|
7fb29797e3b53fdb73155d269f210a3da7d725d6 |
|
19-Nov-2008 |
Skip Montanaro <skip@pobox.com> |
patch from issue 1108
/external/python/cpython2/Lib/doctest.py
|
1b4758d2769858c75c6ef301ba995272a0a314f3 |
|
12-May-2008 |
Georg Brandl <georg@python.org> |
#2767: don't clear globs in run() call, since they could be needed in tearDown, which clears them at the end.
/external/python/cpython2/Lib/doctest.py
|
45141d00575fc6c27d9b794f444e5507ddac96d6 |
|
12-May-2008 |
Georg Brandl <georg@python.org> |
#2766: remove code without effect.
/external/python/cpython2/Lib/doctest.py
|
fff4e6e17190bb62c542eed1a477819d37c35b71 |
|
11-Jan-2008 |
Raymond Hettinger <python@rcn.com> |
Doctest results return a named tuple for readability
/external/python/cpython2/Lib/doctest.py
|
d8a8c7d8d754ca965e6d04265ec034001bf7b50b |
|
08-Dec-2007 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Fix issue #1530. Return an error exit status if not all tests passes.
/external/python/cpython2/Lib/doctest.py
|
c756d00cf20ba094a93f09647e80b688ded61bf5 |
|
27-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
/external/python/cpython2/Lib/doctest.py
|
58a6f446dbf48be0c0bdcb19e82a51dea94bd55d |
|
24-Nov-2007 |
Skip Montanaro <skip@pobox.com> |
back in these go - thanks to Titus Brown for the fix
/external/python/cpython2/Lib/doctest.py
|
d3a1bdf4d93c07e738d454d612a44b9094c67b18 |
|
24-Nov-2007 |
Skip Montanaro <skip@pobox.com> |
revert change that breaks test_doctest (which I forgot to run - sorry)
/external/python/cpython2/Lib/doctest.py
|
6d7914bf22ff657c1047fde8cf85861f16c57d8c |
|
23-Nov-2007 |
Skip Montanaro <skip@pobox.com> |
Make trace and doctest play nice together (issue 1429818). Will backport.
/external/python/cpython2/Lib/doctest.py
|
43e53f85b6f5e77a2f09cbda5833ffba5fbbdb2a |
|
21-Nov-2007 |
Brett Cannon <bcannon@gmail.com> |
doctest assumed that a package's __loader__.get_data() method used universal newlines; it doesn't. To rectify this the string returned replaces all instances of os.linesep with '\n' to fake universal newline support. Backport candidate.
/external/python/cpython2/Lib/doctest.py
|
cff1ae3a2faea532f3fb86bdb060e260b83f0b9b |
|
06-Mar-2007 |
Georg Brandl <georg@python.org> |
Small nit, found by Neal.
/external/python/cpython2/Lib/doctest.py
|
ff432e6f4ad8e4430ce984ec883a3d038e1c7ab9 |
|
06-Mar-2007 |
Georg Brandl <georg@python.org> |
Patch #1663234: you can now run doctest on test files and modules using "python -m doctest [-v] filename ...".
/external/python/cpython2/Lib/doctest.py
|
d219e7f986a9b777c969614bf21967fd0c44df69 |
|
29-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix a couple of typos.
/external/python/cpython2/Lib/doctest.py
|
6f6814706ea8158ae298244d1e127a8181f22479 |
|
28-Jul-2006 |
Tim Peters <tim.peters@gmail.com> |
Bug #1529297: The rewrite of doctest for Python 2.4 unintentionally lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns.
/external/python/cpython2/Lib/doctest.py
|
052cbcf635d0ab8a3d7690ba8bb50c3a88d59c0a |
|
12-Jun-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Remove unused import
/external/python/cpython2/Lib/doctest.py
|
bf0400abe91ff2bbe3061d596441f082ee4f10eb |
|
05-Jun-2006 |
Tim Peters <tim.peters@gmail.com> |
Remove doctest.testmod's deprecated (in 2.4) `isprivate` argument. A lot of hair went into supporting that!
/external/python/cpython2/Lib/doctest.py
|
27c70598a87ca2dad013e7532ca249f1d1651eca |
|
30-May-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/doctest.py
|
a3f092751ae5f29957c78a7e86381532629c7fa3 |
|
28-May-2006 |
Armin Rigo <arigo@tunes.org> |
("Forward-port" of r46506) Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification...
/external/python/cpython2/Lib/doctest.py
|
f3c65de460de58e5538bd4b9e27c0810d772e240 |
|
28-May-2006 |
George Yoshida <dynkin@gmail.com> |
Patch #1080727: add "encoding" parameter to doctest.DocFileSuite Contributed by Bjorn Tillenius.
/external/python/cpython2/Lib/doctest.py
|
195648000cd704e9d50dee0e7f082f3eb74d3bd3 |
|
10-May-2006 |
Georg Brandl <georg@python.org> |
Patch #721464: pdb.Pdb instances can now be given explicit stdin and stdout arguments, making it possible to redirect input and output for remote debugging.
/external/python/cpython2/Lib/doctest.py
|
ad2ef33245bdd90bf0e80824dbba732b17fdf6b6 |
|
10-May-2006 |
Tim Peters <tim.peters@gmail.com> |
Variant of patch #1478292. doctest.register_optionflag(name) shouldn't create a new flag when `name` is already the name of an option flag.
/external/python/cpython2/Lib/doctest.py
|
711bf30b898c73a94f56b7edfb7dd10d5999cb27 |
|
25-Apr-2006 |
Tim Peters <tim.peters@gmail.com> |
Patch #1475231: add a new SKIP doctest option, thanks to Edward Loper.
/external/python/cpython2/Lib/doctest.py
|
470321108019367e3bdd96309e89d79f04784d45 |
|
11-Apr-2006 |
Phillip J. Eby <pje@telecommunity.com> |
Updated the warnings, linecache, inspect, traceback, site, and doctest modules to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included.
/external/python/cpython2/Lib/doctest.py
|
ecf93c765c8c8675ac2276d26679ec3998831744 |
|
27-Jun-2005 |
Georg Brandl <georg@python.org> |
Fix test cases for doctest.
/external/python/cpython2/Lib/doctest.py
|
1f149642c9940662f45004a0bf5f5b05034aa67b |
|
27-Jun-2005 |
Georg Brandl <georg@python.org> |
bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able
/external/python/cpython2/Lib/doctest.py
|
b7e99b642f75ce2b4f31af26b693feda00c9da7c |
|
29-Mar-2005 |
Tim Peters <tim.peters@gmail.com> |
SF patch 1167316: doctest.py fails self-test if run directly. Patch by Ilya Sandler. Bugfix candidate.
/external/python/cpython2/Lib/doctest.py
|
7c404a4bf7b9061ee013bef361b6eba951218d80 |
|
22-Dec-2004 |
Fred Drake <fdrake@acm.org> |
add __file__ to the globals available for tests loaded via DocFileSuite; this is useful for locating supporting data files, just as it is in Python modules
/external/python/cpython2/Lib/doctest.py
|
7960bf9c00e3f01e1e7f4585d593cb966afb8078 |
|
08-Nov-2004 |
Tim Peters <tim.peters@gmail.com> |
And delete a useless comment.
/external/python/cpython2/Lib/doctest.py
|
d7bbbbc594544318bc6d0f28cb376a11a326c22f |
|
08-Nov-2004 |
Tim Peters <tim.peters@gmail.com> |
_OutputRedirectingPdb.trace_dispatch(): Return the base class's trace_dispatch() result in a more obvious, and more robust way.
/external/python/cpython2/Lib/doctest.py
|
50c6bdb1d6f5344fcaa772c6a1a37c09bbe55bf6 |
|
08-Nov-2004 |
Tim Peters <tim.peters@gmail.com> |
test_doctest.py test_pdb_set_trace_nested(): A new test from Jim Fulton showing that doctest's pdb.set_trace() support was dramatically broken. doctest.py _OutputRedirectingPdb.trace_dispatch(): Return a local trace function instead of (implicitly) None. Else interaction with pdb was bizarre, noticing only 'call' events. Amazingly, the existing set_trace() tests didn't care.
/external/python/cpython2/Lib/doctest.py
|
7d428788e156200df2f8e6421cad9fce083fd96b |
|
13-Oct-2004 |
Jim Fulton <jim@zope.com> |
Fixed a small bug. doctest didn't handle unicode docstrings containing non-ascii characters.
/external/python/cpython2/Lib/doctest.py
|
7d88a58e851d6c4b9ac61052d54041536a1ceddd |
|
28-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter's request. Tim says that "correct 'fuzzy' comparison of floats cannot be automated." (The motivation behind adding the new option was verifying interactive examples in Python's latex documentation; several such examples use numbers that don't print consistently on different platforms.)
/external/python/cpython2/Lib/doctest.py
|
aec3c9b54fe2cbd8f4b04b6034341d333bc3936b |
|
28-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Added a new NORMALIZE_NUMBERS option, which causes number literals in the expected output to match corresponding number literals in the actual output if their values are equal (to ten digits of precision).
/external/python/cpython2/Lib/doctest.py
|
498a1868e72c2e3ac58fd252d2aea7a256923690 |
|
27-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Added a "parser" option to testfile() and DocFileTest().
/external/python/cpython2/Lib/doctest.py
|
3afaaf24872d534e5782dbe6214fc7027a9d074a |
|
26-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Removed debug_script from the public API: no docs, not public. I'm in the process of writing docs for the other "missing" debug support functions.
/external/python/cpython2/Lib/doctest.py
|
9d02a7cfa097492f94d8383ad5c22a4ac684b95a |
|
26-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Add set_unittest_reportflags() to the public API. Docs will follow "soon", after I repair the LaTeX I somehow damaged.
/external/python/cpython2/Lib/doctest.py
|
261b28aac65313463b315e4570798bfea100848f |
|
26-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Removed two undocumented unittest support classes, and one undocumented unittest support function, from the public interface. If they're not documented, they shouldn't be public.
/external/python/cpython2/Lib/doctest.py
|
48983fc484a94cac36d3bc99556251dca80b2595 |
|
25-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Removed most of the module docstring. There's too much to explain now, and the LaTeX docs are in increasingly good shape.
/external/python/cpython2/Lib/doctest.py
|
a2fc7ec80aea43768c11c50922a665a08b3885c0 |
|
21-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Minor docstring fixes. - Simplified code to find names for file-based tests.
/external/python/cpython2/Lib/doctest.py
|
bab3e996894032e96993575182105817aedf90e0 |
|
20-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/doctest.py
|
052d0cd291ca0f447fe7c8bf5ad30cbb1ad8de8f |
|
19-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Added "testfile" function, a simple function for running & verifying all examples in a given text file. (analagous to "testmod") - Minor docstring fixes. - Added module_relative parameter to DocTestFile/DocTestSuite, which controls whether paths are module-relative & os-independent, or os-specific.
/external/python/cpython2/Lib/doctest.py
|
0273f5b6b29486629f74f184da84172cb43fe221 |
|
18-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
In DocFileTest: - Fixed bug in handling of absolute paths. - If run from an interactive session, make paths relative to the directory containing sys.argv[0] (since __main__ doesn't have a __file__ attribute).
/external/python/cpython2/Lib/doctest.py
|
958cc890370d58b81bf15177f0dfeecff8714394 |
|
13-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
exclude_empty: make the default True for DocTestFinder, and introduce it with default False for testmod(). The real point of introducing this was so that output from doctest.master.summarize() would be the same as in 2.3, and doctest.master in 2.4 is a backward-compatability hack used only by testmod().
/external/python/cpython2/Lib/doctest.py
|
32ddbf7fab000af7941983ecbfe05efd15700255 |
|
13-Sep-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Added new parameter exclude_empty to DocTestFinder.__init__, which controls whether tests are included for objects with empty docstrings. Defaults to True, to match the behavior of Python 2.3.
/external/python/cpython2/Lib/doctest.py
|
c56847878e503ddea8309b0a0c45e06d7c56f2ee |
|
13-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
DocTestFinder._find(): for tests derived from a module __test__ global, doctest always promised to stick "__test__" in the name. That got broken. Now it's fixed again.
/external/python/cpython2/Lib/doctest.py
|
82076ef19482c7fc8b3f4a322f12d4417a397b3e |
|
13-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Reluctantly, rehabilitate doctest.master.
/external/python/cpython2/Lib/doctest.py
|
9661f9ab4f969651e7f1fea224034237e328f6ac |
|
13-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Tester.run___test__(): This couldn't possibly work at all. I'm afraid the "backward compatibility" here was a joke.
/external/python/cpython2/Lib/doctest.py
|
4be7a92f7f296fe74fc7e220c3740a800ec85c09 |
|
13-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Tester.__init__(): this couldn't possibly work when a module argument was passed.
/external/python/cpython2/Lib/doctest.py
|
1fbf9c5ec10d38d58837e20a681604440aa7b3da |
|
04-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Added IGNORE_EXCEPTION_DETAIL comparison option. The need is explained in the new docs. DocTestRunner.__run: Separate the determination of the example outcome from reporting that outcome, to squash brittle code duplication and excessive nesting.
/external/python/cpython2/Lib/doctest.py
|
ba6019691eddff901bbb7eb5d8a2cc66e5ebaaca |
|
04-Sep-2004 |
Tim Peters <tim.peters@gmail.com> |
Added a couple names to __all__.
/external/python/cpython2/Lib/doctest.py
|
38330fe5ef3c0227d2267774b9b95352d290e9d7 |
|
30-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
The distinction between comparison flags and reporting flags isn't unique to unittest, so make it official: new module constants COMPARISON_FLAGS and REPORTING_FLAGS, which are bitmasks or'ing together the relevant individual option flags. set_unittest_reportflags(): Reworked to use REPORTING_FLAGS, and simplified overly complicated flag logic. class FakeModule: Removed this; neither documented nor used.
/external/python/cpython2/Lib/doctest.py
|
df7a208ff70a66f4384252d12768dbd9e7c60204 |
|
29-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/doctest.py
|
f54bad4564d6216cd658ce1d93421d8d40f7a719 |
|
28-Aug-2004 |
Jim Fulton <jim@zope.com> |
- setUp and tearDown functions are now passed the test object - Added a set_unittest_reportflags to set default reporting flags used when running doctests under unittest control.
/external/python/cpython2/Lib/doctest.py
|
12a4baf5a12148c757583e381b0371e50f324ec1 |
|
27-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Remove unused method _OutputRedirectingPdb.resume
/external/python/cpython2/Lib/doctest.py
|
2de91ba2ab02f914a6ea71f329d4efbe02293e9d |
|
27-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Removed redundant call to expandtabs in DocTestParesr. - Improvements to interactive debugging support: - Changed the replacement pdb.set_trace to redirect stdout to the real stdout *only* during interactive debugging; stdout from code continues to go to the fake stdout. - When the interactive debugger gets to the end of an example, automatically continue. - Use a replacement linecache.getlines that will return source lines from doctest examples; this makes the source available to the debugger for interactive debugging. - In test_doctest, use a specialized _FakeOutput class instead of a temporary file to fake stdin for the interactive interpreter.
/external/python/cpython2/Lib/doctest.py
|
00f8da77e7d07de28318844fbfbf6cf07f915cf4 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Added DocTestParser.parse(), which parses a docstring into Examples and intervening text strings. - Removed DocTestParser.get_program(): use script_from_examples() instead. - Fixed bug in DocTestParser._INDENT_RE - Fixed bug in DocTestParser._min_indent - Moved _want_comment() to the utility function section
/external/python/cpython2/Lib/doctest.py
|
e7edcb8e22126f3afed3c9976a11bb5f58dcbba0 |
|
26-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
output_difference(): In fancy-diff cases, the way this split expected & actual output into lines created spurious empty lines at the ends of each. Those matched, but the fancy diffs had surprising line counts (1 larger than expected), and tests kept having to slam <BLANKLINE> into the expected output to account for this. Using the splitlines() string method with keepends=True instead accomplishes what was intended directly.
/external/python/cpython2/Lib/doctest.py
|
5b799c1f3d1e96e2d45737bed95a149d356ad5de |
|
26-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
_do_a_fancy_diff(): Pay no attention to the ellipses behind the curtain. While a fancy diff can be confusing in the presence of ellipses, so far I'm finding (2-0-0) that it's much more a major aid in narrowing down the possibilities when an ellipsis-slinging test fails. So we no longer refuse to do a fancy diff just because of ellipses. This isn't ideal; it's just better.
/external/python/cpython2/Lib/doctest.py
|
ca9111eef31dc46077dfeffa1f17575dfde564d4 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Changed OutputChecker.output_difference to expect an Example object, rather than an expected output string. This gives the output_difference method access to more information, such as the indentation of the example, which might be useful.
/external/python/cpython2/Lib/doctest.py
|
a89f88d53fc83b3eb6788a6e70e0eb05a58703ed |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Added REPORT_ONLY_FIRST_FAILURE flag, which supresses output after the first failing example in each test.
/external/python/cpython2/Lib/doctest.py
|
71f55af826481576ffa75f9dc0771e20ab7c1187 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; and NDIFF_DIFF->REPORT_NDIFF. This establishes the naming convention that all reporting options should begin with "REPORT_" (since reporting options are a different class from output comparison options; but they are both set in optionflags).
/external/python/cpython2/Lib/doctest.py
|
5662929a4268efdeed21c45366e6a632926a275f |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Shortened diff output for unified & context diffs
/external/python/cpython2/Lib/doctest.py
|
aacf0833886c30f900fe18db1367d887cc0d1172 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Changed the output of report_start() and report_unexpected_exception() to be more consistent with report_failure() - If `want` or `got` is empty, then print "Expected nothing\n" or "Got nothing\n" rather than "Expected:\n" or "Got:\n" - Got rid of _tag_msg
/external/python/cpython2/Lib/doctest.py
|
a6b68327b2aab767197f513c18abb5db496241d7 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Added an "exc_msg" attribute to Example (containing the expected exception message, or None if no exception is expected); and moved exception parsing from DocTestRunner to DocTestParser. This is architecturally cleaner, since it moves all parsing work to DocTestParser; and it should make it easier for code outside DocTestRunner (notably debugging code) to properly handle expected exceptions.
/external/python/cpython2/Lib/doctest.py
|
19b1958730f290ad6bf309653d76f222906f0c41 |
|
26-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Only recognize the expected output as an exception if it *starts* with a traceback message. I.e., examples that raise exceptions may no longer generate pre-exception output. This restores the behavior of doctest in python 2.3. The ability to check pre-exception output is being removed because it makes the documentation simpler; and because there are very few use cases for it.
/external/python/cpython2/Lib/doctest.py
|
dd50cb748a4dc317891a8df50adc8371db7598cc |
|
24-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
The attempt to shut up deprecation warnings for doctest's own use of is_private in its tests failed if doctest.py was run directly. Now it works.
/external/python/cpython2/Lib/doctest.py
|
a7def72a081c5ea54f12b091a2d742eb7adef468 |
|
24-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Moved some test cases from doctest to test_doctest.
/external/python/cpython2/Lib/doctest.py
|
3fa8c2079a164254b037a975a811aae946845815 |
|
23-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Misc cleanups.
/external/python/cpython2/Lib/doctest.py
|
b6a04d687da3803b7ed7434141a8d820d181f2a0 |
|
23-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
debug_script(): I changed this in haste before to take out the use of NamedTemporaryFile (which can't work for this function's purposes on Windows). Leaving temp files behind wasn't a great idea either, though, so try to clean up. At least the test suite no longer leaves any of these guys behind now.
/external/python/cpython2/Lib/doctest.py
|
f82a9ded393c98205ca263ff397bf84f0eedfef3 |
|
22-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Start deferring to the LaTeX docs for details. I'd like to move the docstrings toward being a lot shorter, and telling the whole truth in the manual instead. This change is an example: the manual has detailed explanations of the option names now, so it's Bad to repeat them in the docstring (two detailed descriptions are certain to get out of synch). Just listing the names has memory-jogging benefits, though, so that's still helpful in the docstring.
/external/python/cpython2/Lib/doctest.py
|
c6cbab0db4a3d3878eabc300c259ed74a5237ff0 |
|
22-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Added NDIFF_DIFF option.
/external/python/cpython2/Lib/doctest.py
|
75dc5e14eaea0fad7445920511f371751fe1bfd1 |
|
22-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Type in docstring.
/external/python/cpython2/Lib/doctest.py
|
c50491591dd5987c121d92b1961df69b911b8a5c |
|
22-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
_parse_example(): Simplified new code to preserve trailing spaces before final newline. Anything to get rid of "l" as a variable name <0.5 wink>.
/external/python/cpython2/Lib/doctest.py
|
07a349c4eeda0a937367ea9a2eff9958c46b11e1 |
|
22-Aug-2004 |
Jim Fulton <jim@zope.com> |
Bugs fixed: - Test filenames sometimes had trailing .pyc or .pyo sufixes (when module __file__ did). - Trailing spaces spaces in expected output were dropped. New default failure format: - Separation of examples from file info makes examples easier to see - More vertical separation, improving readability - Emacs-recognized file info (also closer to Python exception format)
/external/python/cpython2/Lib/doctest.py
|
e594bee5351d6109ca5e6a7dde45e5ddd08ebe48 |
|
22-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
_ellipsis_match(): Removed special-casing of "...\n". The semantics are non-obvious either way because the newline character "is invisible", but it's still there all the same, and it's easier to explain/predict if that reality is left alone.
/external/python/cpython2/Lib/doctest.py
|
b0a04e15921433159392aaa465db9581107e11f7 |
|
20-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Gave _ellipsis_match() an attractive new leading underscore.
/external/python/cpython2/Lib/doctest.py
|
3a3817f506801e4a1e62d8cd52e1c8aa0feb2993 |
|
19-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Got rid of nooutput() (was used by DocTestCase.debug()) It's redundant, since no output is written anyway: DebugRunner doesn't generate any output for failures and unexpected exceptions, and since verbose=False, it won't generate any output for non-failures either.
/external/python/cpython2/Lib/doctest.py
|
b7503ff631648db6b54641db3154f4a70193c997 |
|
19-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Updated __all__ to include every non-underscored class, function, and constant defined by the module (except the test*() functions, which should be integrated into test/test_doctest.py, anyway).
/external/python/cpython2/Lib/doctest.py
|
dc5de3bab2f6a202b6cd4b94ae9ac8b46e804caa |
|
19-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
ellipsis_match(): Changed treatment of start- and end-of-string exact matches to be symmetric. This makes the algorithm easier to understand.
/external/python/cpython2/Lib/doctest.py
|
26b3ebb515eacb997885ff4fe1b425674429e253 |
|
19-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Replaced the ELLIPSIS implementation with a worst-case linear-time one.
/external/python/cpython2/Lib/doctest.py
|
1cf3aa6e6615dcddc58e42d4fb214f9e0d90d22c |
|
19-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
ELLIPSIS implementation: an ellipsis couldn't match nothing if it appeared at the end of a line. Repaired that. Also noted that it's too easy to provoke this implementation into requiring exponential time, and especially when a test fails. I'll replace the implementation with an always-efficient one later.
/external/python/cpython2/Lib/doctest.py
|
b51b23405b6cf82ab4ec20f3d5ef4b895bd0786f |
|
17-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Fixed bug in line-number finding for examples (DocTestParser wasn't updating line numbers correctly for bare prompts & examples containing only comments).
/external/python/cpython2/Lib/doctest.py
|
41a65ea7fec64be031b79041ebba875bde1155d6 |
|
13-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Doctest has new traceback gimmicks in 2.4. While trying to document them (which they are now), I had to rewrite the code to understand it. This has got to be the most DWIM part of doctest -- but in context is really necessary.
/external/python/cpython2/Lib/doctest.py
|
7ea48ddd4f324f014226c8647b8ac65254a3bed4 |
|
13-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is implemented, just what it does.
/external/python/cpython2/Lib/doctest.py
|
68ba9a685d2627efb8ffdb54296e9b9892924cc9 |
|
12-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
In output_difference(), replace blank lines in `want` with <BLANKLINE> (rather than replacing <BLANKLINE> with blank lines in `got`). This makes it easier to see what's intended.
/external/python/cpython2/Lib/doctest.py
|
a5db6009fe195274760e0fb79aff67cb7f97e00e |
|
12-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Changed output of DocTestParser.get_program() to make it easier to visually distinguish the expected output from the comments (use "##" to mark expected outputs, and "#" to mark comments). - If the string given to DocTestParser.get_program() is indented, then strip its indentation. (In particular, find the min indentation of non-blank lines, and strip that indentation from all lines.)
/external/python/cpython2/Lib/doctest.py
|
8e4a34ba090a4ad9753ea8d9ccf95703c85fdbb4 |
|
12-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Added __docformat__ - Added comments for some regexps - If the traceback type/message don't match, then still print full traceback in report_failure (not just the first & last lines) - Renamed DocTestRunner.__failure_header -> _failure_header
/external/python/cpython2/Lib/doctest.py
|
74bca7aa44be315c669edcc0e02126fdd927062b |
|
12-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Changed option directives to be example-specific. (i.e., they now modify option flags for a single example; they do not turn options on or off.) - Added "indent" and "options" attributes for Example - Got rid of add_newlines param to DocTestParser._parse_example (it's no longer needed; Example's constructor now takes care of it). - Added some docstrings
/external/python/cpython2/Lib/doctest.py
|
ac20f57c2810ad980953d6d8f65fb6f3e2c6c741 |
|
12-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Added a register_optionflag function (so users can add their own option flags); and use it to define the existing optionflag constants.
/external/python/cpython2/Lib/doctest.py
|
c2388a2b9c75f5cf837678211583fd2d67b2339b |
|
10-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Start rewriting doctest's LaTeX docs. Damn, this is slow going!
/external/python/cpython2/Lib/doctest.py
|
6c542b731cfe3e17991643bfc41bb785331e7e5c |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Edward's latest checkins somehow managed to wipe out my previous latest checkins. Reapplying the latter changes.
/external/python/cpython2/Lib/doctest.py
|
a1ef6110ba5355334431c76f6b4b3273a613aed2 |
|
09-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- DocTest is now a simple container class; its constructor is no longer responsible for parsing the string. - Renamed Parser to DocTestParser - DocTestParser.get_*() now accept the string & name as command-line arguments; the parser's constructor is now empty. - Added DocTestParser.get_doctest() method - Replaced "doctest_factory" argument to DocTestFinder with a "parser" argument (takes a DocTestParser). - Changed _tag_msg to take an indentation string argument.
/external/python/cpython2/Lib/doctest.py
|
413ced6c226b5a89c45cf2f4da79126f75cb200b |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
This started as a spelling and whitespace cleanup. The comment for the set_trace fiddling didn't make sense to me, and I ended up reworking that part of the code. We really do want to save and restore pdb.set_trace, so that each dynamically nested level of doctest gets sys.stdout fiddled to what's appropriate for *it*. The only "trick" really needed is that these layers of set_trace wrappers each call the original pdb.set_trace (instead of the current pdb.set_trace).
/external/python/cpython2/Lib/doctest.py
|
356fd19c31882e35b34027b4c12fa8922e74e3ca |
|
09-Aug-2004 |
Jim Fulton <jim@zope.com> |
Added support for pdb.set_trace.
/external/python/cpython2/Lib/doctest.py
|
80e53141b9227c39b7edb4677b8b1c14551866ec |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Removed lots of stuff from the module docstring. My intent for 2.4 is to put details in the LaTeX docs instead, and lots of stuff in the module docstring wasn't useful anyway.
/external/python/cpython2/Lib/doctest.py
|
208ca7075f9d2e667603fb00c22606e62c575858 |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Repair some out-of-date comments.
/external/python/cpython2/Lib/doctest.py
|
bb43147312dd030e0551b6aa34f338fcba7a055c |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Drop the excruciating newline requirements on arguments to Example.__init__. The constructor now adds trailing newlines when needed, and no longer distinguishes between multi- and single-line cases for source.
/external/python/cpython2/Lib/doctest.py
|
dd0e4752977b807ad02e0d47123ace3f2ef89edc |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Give return stmts their own lines.
/external/python/cpython2/Lib/doctest.py
|
d40a92b3f09bcf755c86af59647ffb08c9082870 |
|
09-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Indent body of _EXAMPLE_RE for readability. _IS_BLANK_OR_COMMENT makes more sense as a callable.
/external/python/cpython2/Lib/doctest.py
|
78b58f38f183009853ca14e966afee34038f1503 |
|
09-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Changed Parser.get_examples() to return a list of Example objects, rather than a list of triples.
/external/python/cpython2/Lib/doctest.py
|
34fcb147680ec70997029c763402da1e84b3c014 |
|
09-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
- Split DocTestRunner's check_output and output_difference methods off into their own class, OutputChecker. - Added optional OutputChecker arguments to DocTestRunner, DocTestCase, DocTestSuite.
/external/python/cpython2/Lib/doctest.py
|
7c748469c7688092152ef9bc6b893ffcdfb2c328 |
|
09-Aug-2004 |
Edward Loper <edloper@gradient.cis.upenn.edu> |
Rewrote Parser, using regular expressions instead of walking though the string one line at a time. The resulting code is (in my opinion, anyway), much easier to read. In the process, I found and fixed a bug in the orginal parser's line numbering in error messages (it was inconsistant between 0-based and 1-based). Also, check for missing blank lines after the prompt on all prompt lines, not just PS1 lines (test added).
/external/python/cpython2/Lib/doctest.py
|
f3f57473ed97f7d0c4862639bbf29baef77de3a4 |
|
08-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Get rid of the ignore_imports argument to DocTestFinder.find(). This got slammed in when find() was fixed to stop grabbing doctests from modules imported *by* the module being tested. Such tests cannot be expected to succeed, since they'll be run with the current module's globals. Dozens of Zope3 doctests were failing because of that. It wasn't clear why ignore_imports got added then. Maybe it's because some existing tests failed when the change was made. Whatever, it's a Bad Idea so it's gone now. The only use of it was exceedingly obscure, in test_doctest's "Duplicate Removal" test. It was "needed" there because, as an artifact of running a doctest inside a doctest, the func_globals of functions compiled in the second-level doctest don't match the module globals, and so the test-finder believed these functions were from a foreign module and skipped them. But that took a long time to figure out, and I actually understand some of this stuff <0.9 wink>. That problem was resolved by moving the source code for the second-level doctest into an actual module (test/doctest_aliases.py). The only remaining difficulty was that the test for the deprecated Tester.rundict() then failed, because the test finder doesn't take module=None at face value, trying to guess which module the user really intended then. Its guess wasn't appropriate for what Tester.rundict needs when module=None is given to *it*, which is "no, there is no module here, and I mean it". So now passing module=False means exactly that. This is hokey, but ignore_imports=False was really a hack to worm around that there was no way to tell the test-finder that module=None *sometimes* means what it says. There was no use case for the combination of passing a real module with ignore_imports=False.
/external/python/cpython2/Lib/doctest.py
|
161c9632763ce3e50700b7e8f060e60a2e7f0aa8 |
|
08-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Type in docstring.
/external/python/cpython2/Lib/doctest.py
|
3ddd60a83b3ac1f129df011ecde3241bb31455df |
|
08-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Also deprecated the old Tester class, which is no longer used by anything except internal tests.
/external/python/cpython2/Lib/doctest.py
|
bafb1fed516a252eaeb1aa52a5287d838fe4603f |
|
08-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Deprecate the doctest.is_private() function.
/external/python/cpython2/Lib/doctest.py
|
f727c6c2c7e608368fd1514ab46b1ed87ba57baf |
|
08-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Deprecated testmod's useless & confusing isprivate gimmick. Ripped out the docs for the new DocTestFinder's namefilter argument, and renamed it to _namefilter; this only existed to support isprivate. Removed the new DocTestFinder's objfilter argument. No point adding more cruft to a broken filtering design.
/external/python/cpython2/Lib/doctest.py
|
d1b7827216f6b57b90fc6751e4b1c4d246e63631 |
|
07-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/doctest.py
|
19397e5ec549e5281b33aa5795b517006c00f64d |
|
07-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Merging from tim-doctest-branch, which is now closed. This primarily adds more powerful ways to work with unittest, including spiffy support for building suites out of doctests in non-Python "text files".
/external/python/cpython2/Lib/doctest.py
|
9b625d3037815a6753fca21ad19711a92bebec54 |
|
04-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Example.__init__: this cannot use assert, because that fails to trigger in a -O run, and so test_doctest was failing under -O. Simple cause, simple cure.
/external/python/cpython2/Lib/doctest.py
|
8485b562164304d068dfac4cee0f5108251eda55 |
|
04-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Edward Loper's cool and massive refactoring of doctest.py, merged from the tim-doctest-merge-24a2 tag on the the tim-doctest-branch branch. We did development on the branch in case it wouldn't land in time for 2.4a2, but the branch looked good: Edward's tests passed there, ditto Python's tests, and ditto the Zope3 tests. Together, those hit doctest heavily.
/external/python/cpython2/Lib/doctest.py
|
a643b658a7cd1d820fd561665402705f0f76b1d0 |
|
14-Jul-2004 |
Jim Fulton <jim@zope.com> |
Ported some features from zope: - Fixed the display of tests in verbose output - Allow setUp and tearDown functions to be provided for DocTestSuites.
/external/python/cpython2/Lib/doctest.py
|
4e0e1b6a540e664e89739456db4c706701bf062b |
|
07-Jul-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/doctest.py
|
92816de18e3456f8304a1aaa6f28b151858a6e5d |
|
31-May-2004 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #932930: suggest the use of rawstrings for backslashes.
/external/python/cpython2/Lib/doctest.py
|
70a6b49821a3226f55e9716f32d802d06640cb89 |
|
12-Feb-2004 |
Walter Dörwald <walter@livinglogic.de> |
Replace backticks with repr() or "%r" From SF patch #852334.
/external/python/cpython2/Lib/doctest.py
|
7a70ea41358e6a033807774a096c4fc99b2a5876 |
|
17-Sep-2003 |
Raymond Hettinger <python@rcn.com> |
SF patch #806246: use basestring where possible (Contributed by George Yoshida.)
/external/python/cpython2/Lib/doctest.py
|
5f8b0b1fd4801b4808223077643c24d41130b81e |
|
02-Sep-2003 |
Raymond Hettinger <python@rcn.com> |
SF 798269: bug fix for doctest (sf bug id: 798254 (Contributed by Alexander Belopolsky.) Doctest would crash when encountering unbound methods: class A: def f(self): pass class C(A): g = A.f
/external/python/cpython2/Lib/doctest.py
|
71adf7e9d8fb2aca563eeca806ea127409c82bb6 |
|
16-Jul-2003 |
Raymond Hettinger <python@rcn.com> |
Doctest now examines all docstrings by default. Previously, it would skip over functions with private names (as indicated by the underscore naming convention). The old default created too much of a risk that user tests were being skipped inadvertently. Note, this change could break code in the unlikely case that someone had intentionally put failing tests in the docstrings of private functions. The breakage is easily fixable by specifying the old behavior when calling testmod() or Tester(). The more likely case is that the silent failure was unintended and that the user needed to be informed so the test could be fixed.
/external/python/cpython2/Lib/doctest.py
|
cc39a13d6d661d297f937f35554b601f6b9efc04 |
|
12-Jul-2003 |
Raymond Hettinger <python@rcn.com> |
Expose the 'master' instance mentioned in the docs.
/external/python/cpython2/Lib/doctest.py
|
db3756dade0bba030946abcb8e50c914af84f31e |
|
29-Jun-2003 |
Tim Peters <tim.peters@gmail.com> |
Some nifty doctest extensions from Jim Fulton, currently used in Zope3. I won't have time to write real docs, but spent a lot of time adding comments to his code and fleshing out the exported functions' docstrings. There's probably opportunity to consolidate how docstrings get extracted too, and the new code for that is probably better than the old code for that (which strained mightily to recover from 2.2's new class/type gimmicks).
/external/python/cpython2/Lib/doctest.py
|
275abbd5257d8ff4c8883e41ee4a271e621bacae |
|
29-Jun-2003 |
Tim Peters <tim.peters@gmail.com> |
Missed a spot where the new optional optionflags argument needed to get passed on.
/external/python/cpython2/Lib/doctest.py
|
6ebe61fa807d250ccab419473abd8d746a932e75 |
|
27-Jun-2003 |
Tim Peters <tim.peters@gmail.com> |
A hack to ease compatibility with pre-2.3 Pythons: by default, doctest now accepts "True" when a test expects "1", and similarly for "False" versus "0". This is un-doctest-like, but on balance makes it much more pleasant to write doctests that pass under 2.2 and 2.3. I expect it to go away again, when 2.2 is forgotten. In the meantime, there's a new doctest module constant that can be passed to a new optional argument, if you want to turn this behavior off. Note that this substitution is very simple-minded: the expected and actual outputs have to consist of single tokens. No attempt is made, e.g., to accept [True, False] when a test expects [1, 0]. This is a simple hack for simple tests, and I intend to keep it that way.
/external/python/cpython2/Lib/doctest.py
|
4581cfa326cf7d8b9d7888d4c0e96ee88950bcfa |
|
22-Nov-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #486438: Make module argument to testmod optional.
/external/python/cpython2/Lib/doctest.py
|
54f0222547b1e92cd018ef132307a6f793dc9505 |
|
01-Jun-2002 |
Raymond Hettinger <python@rcn.com> |
SF 563203. Replaced 'has_key()' with 'in'.
/external/python/cpython2/Lib/doctest.py
|
77f6a65eb00f005939c6c7c5d6ac0f037a0ce1bd |
|
04-Apr-2002 |
Guido van Rossum <guido@python.org> |
Add the 'bool' type and its values 'False' and 'True', as described in PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
/external/python/cpython2/Lib/doctest.py
|
bcc2c125f832dce5ec7f29f3e363e3769673713d |
|
20-Mar-2002 |
Tim Peters <tim.peters@gmail.com> |
Change raw "except:" constructs to pass on KeyboardInterrupt. Bugfix candidate? Don't know -- never bothered me, but it's minor either way.
/external/python/cpython2/Lib/doctest.py
|
c77db34575f8ea73a5f53baf5a68fb0d39850573 |
|
23-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug [#473864] doctest expects spurios space. Repair unlikely surprise due to magical softspace attr and the use of print with a trailing comma in doctest examples. Bugfix candidate.
/external/python/cpython2/Lib/doctest.py
|
17111f3b242be06c7ae913f106093891b82d7fee |
|
03-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug [#467336] doctest failures w/ new-style classes. Taught doctest about static methods, class methods, and property docstrings in new-style classes. As for inspect.py/pydoc.py before it, the new stuff needed didn't really fit into the old architecture (but was less of a strain to force-fit here). New-style class docstrings still aren't found, but that's the subject of a different bug and I want to fix that right instead of hacking around it in doctest.
/external/python/cpython2/Lib/doctest.py
|
4a9ac4a83c5515df1b62e396a753ac17a931f997 |
|
03-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
SF patch [#466616] Exclude imported items from doctest. Another installment; the new functionality wasn't actually enabled in normal use, only in the strained use checked by the test case.
/external/python/cpython2/Lib/doctest.py
|
7402f791a4633689fea904b2bd9caea2b25de620 |
|
02-Oct-2001 |
Tim Peters <tim.peters@gmail.com> |
SF patch [#466616] Exclude imported items from doctest, from Tim Hochberg. Also mucho fiddling to change the way doctest determines whether a thing is a function, module or class. Under 2.2, this really requires the functions in inspect.py (e.g., types.ClassType is close to meaningless now, if not outright misleading).
/external/python/cpython2/Lib/doctest.py
|
4fd9e2fc134a8a95fa9ef29e39572f82f3b5240e |
|
18-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
Remove the horrid generators hack from doctest.py. This relies on a somewhat less horrid hack <wink>: if a module does from __future__ import X then the module dict D is left in a state such that (viewing X as a string) D[X] is getattr(__future__, X) So by examining D for all the names of future features, and making that test for each, we can make a darned good guess as to which future-features were imported by the module. The appropriate flags are then sucked out of the __future__ module, and passed on to compile()'s new optional arguments (PEP 264). Also gave doctest a meaningful __all__, removed the history of changes (CVS serves that purpose now), and removed the __version__ vrbl (similarly; before CVS, it was a reasonable clue, but not anymore).
/external/python/cpython2/Lib/doctest.py
|
03813399cc19b09cddd031b3c2924038423098f0 |
|
16-Jul-2001 |
Tim Peters <tim.peters@gmail.com> |
Document doctest's generator-future hack.
/external/python/cpython2/Lib/doctest.py
|
fe2127d3cbf34452a10b88c40e5ab06870936f94 |
|
16-Jul-2001 |
Tim Peters <tim.peters@gmail.com> |
Ugly. A pile of new xxxFlags() functions, to communicate to the parser that 'yield' is a keyword. This doesn't help test_generators at all! I don't know why not. These things do work now (and didn't before this patch): 1. "from __future__ import generators" now works in a native shell. 2. Similarly "python -i xxx.py" now has generators enabled in the shell if xxx.py had them enabled. 3. This program (which was my doctest proxy) works fine: from __future__ import generators source = """\ def f(): yield 1 """ exec compile(source, "", "single") in globals() print type(f())
/external/python/cpython2/Lib/doctest.py
|
fee69d0313afcbe38b4ac3803c70b7420f575f94 |
|
24-Jun-2001 |
Tim Peters <tim.peters@gmail.com> |
Changed some comments. Removed the caution about clearing globs, since clearing a shallow copy _run_examples() makes itself can't hurt anything.
/external/python/cpython2/Lib/doctest.py
|
d4ad59e1eb9623acb8af5555a58984fe6a252183 |
|
24-Jun-2001 |
Tim Peters <tim.peters@gmail.com> |
Clear the copy of the globs dict after running examples. This helps to break cycles, which are a special problem when running generator tests that provoke exceptions by invoking the .next() method of a named generator-iterator: then the iterator is named in globs, and the iterator's frame gets a tracekback object pointing back to globs, and gc doesn't chase these types so the cycle leaks. Also changed _run_examples() to make a copy of globs itself, so its callers (direct and indirect) don't have to (and changed the callers to stop making their own copies); *that* much is a change I've been meaning to make for a long time (it's more robust the new way). Here's a way to provoke the symptom without doctest; it leaks at a prodigious rate; if the last two "source" lines are replaced with g().next() the iterator isn't named and then there's no leak: source = """\ def g(): yield 1/0 k = g() k.next() """ code = compile(source, "<source>", "exec") def f(globs): try: exec code in globs except ZeroDivisionError: pass while 1: f(globals().copy()) After this change, running test_generators in an infinite loop still leaks, but reduced from a flood to a trickle.
/external/python/cpython2/Lib/doctest.py
|
77f2d504c3891ff7f75d1e50d12b4cdb30e89767 |
|
24-Jun-2001 |
Tim Peters <tim.peters@gmail.com> |
doctest systematically leaked memory when handling an exception in an example (an obvious trackback cycle). Repaired. Bugfix candidate.
/external/python/cpython2/Lib/doctest.py
|
08bba953eacd60a011224ff633189f11291427b4 |
|
24-Jun-2001 |
Tim Peters <tim.peters@gmail.com> |
doctest doesn't handle intentional SyntaxError exceptions gracefully, because it picks up the first line of traceback.format_exception_only() instead of the last line. Pick up the last line instead!
/external/python/cpython2/Lib/doctest.py
|
24a41911602bf98e853278ef4bb8b4fb41c0ac8c |
|
22-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
Changed doctest to run tests in alphabetic order of name. This makes verbose-mode output easier to dig thru, and removes an accidental dependence on the order of dict.items() (made visible by recent changes to dictobject.c).
/external/python/cpython2/Lib/doctest.py
|
261d91a3f914ee5bb42534428acbc3479f3ca6d1 |
|
18-Mar-2001 |
Guido van Rossum <guido@python.org> |
Make doctest's self-test succeed after the previous change.
/external/python/cpython2/Lib/doctest.py
|
af00a46599e2891c26026ec4bc6ada892f1b810f |
|
18-Mar-2001 |
Guido van Rossum <guido@python.org> |
Print a bunch of asterisks before the failure summary, to separate it from the last failure report.
/external/python/cpython2/Lib/doctest.py
|
f9bb4969af0b9cedeb837ac5260b03c011df9a7c |
|
14-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Miranda newlines: if anything at all was written to stdout, supply a newline at the end if there isn't one already. Expected output has no way to indicate that a trailing newline was not expected, and in the interpreter shell *Python* supplies the trailing newline before printing the next prompt.
/external/python/cpython2/Lib/doctest.py
|
60e23f4cfc306ae827bb0d00f13f2a51e244b235 |
|
14-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Change doctest exception example to one whose detail hasn't changed since 1.5.2.
/external/python/cpython2/Lib/doctest.py
|
ea4f931cb9c8c821c4f99011461f300caeffaad0 |
|
13-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Teach doctest about newer "(most recent call last)" traceback spelling.
/external/python/cpython2/Lib/doctest.py
|
ecb6fb95a2d34f33e6a52aae45eca920aa37e8c8 |
|
10-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Bump __version__ tuple.
/external/python/cpython2/Lib/doctest.py
|
630e69cd89b2b18a447666534c4df72df895bd6a |
|
09-Feb-2001 |
Eric S. Raymond <esr@thyrsus.com> |
String method conversion.
/external/python/cpython2/Lib/doctest.py
|
eccd02a40d0921fc2953213e71da8a3a79d00e17 |
|
21-Jan-2001 |
Skip Montanaro <skip@pobox.com> |
more __all__ updates
/external/python/cpython2/Lib/doctest.py
|
8a7d2d5cb1f9fea6a9a044c130567b410282942a |
|
16-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
doctest-- The Little Module That Could --finally makes it to the Big Show <wink>.
/external/python/cpython2/Lib/doctest.py
|