Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF Patch #1093896: miscellaneous doc typos | Raymond Hettinger | 2005-01-01 | 1 | -1/+1 |
| | |||||
* | add __file__ to the globals available for tests loaded via DocFileSuite; | Fred Drake | 2004-12-21 | 1 | -0/+4 |
| | | | | | this is useful for locating supporting data files, just as it is in Python modules | ||||
* | The docs claimed a test would pass that actually wouldn't pass. Repaired | Tim Peters | 2004-10-04 | 1 | -1/+2 |
| | | | | the example so it does pass. | ||||
* | Added 2 notes about the complexities of testing SyntaxErrors. | Edward Loper | 2004-09-30 | 1 | -0/+31 |
| | |||||
* | Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter's | Edward Loper | 2004-09-28 | 1 | -19/+1 |
| | | | | | | | | 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.) | ||||
* | Added a new NORMALIZE_NUMBERS option, which causes number literals in | Edward Loper | 2004-09-28 | 1 | -1/+19 |
| | | | | | the expected output to match corresponding number literals in the actual output if their values are equal (to ten digits of precision). | ||||
* | - Added a "parser" option to testfile() and DocFileTest(). | Edward Loper | 2004-09-27 | 1 | -1/+10 |
| | |||||
* | - Fixed typo in multi-line exception example | Edward Loper | 2004-09-27 | 1 | -6/+6 |
| | | | | - Fixed indentation for a verbatim block | ||||
* | Give a saner example for script_from_examples(); also mention an intended | Tim Peters | 2004-09-26 | 1 | -11/+25 |
| | | | | but not entirely obvious use case. | ||||
* | Made most module references "clickable". | Tim Peters | 2004-09-26 | 1 | -71/+70 |
| | |||||
* | Docs for run_docstring_examples(). | Tim Peters | 2004-09-26 | 1 | -0/+30 |
| | |||||
* | Added a lot of new stuff to the debugging section. | Tim Peters | 2004-09-26 | 1 | -29/+159 |
| | |||||
* | register_optionflag(): Moved from the Debugging section to the section | Tim Peters | 2004-09-26 | 1 | -12/+19 |
| | | | | on option flags; added a versionadded decoration. | ||||
* | Document set_unittest_reportflags(). | Tim Peters | 2004-09-26 | 1 | -2/+59 |
| | |||||
* | Fix double word error. | Raymond Hettinger | 2004-09-25 | 1 | -1/+1 |
| | |||||
* | Assorted minor changes, plus a lot more soap. | Tim Peters | 2004-09-25 | 1 | -33/+39 |
| | |||||
* | Explain the motivation for the unittest functions, and beef up the | Tim Peters | 2004-09-25 | 1 | -51/+49 |
| | | | | example. Squash repeated argument descriptions. Minor rewordings. | ||||
* | Repaired mistakes in the descriptions of testmod()/testfile(), and | Tim Peters | 2004-09-25 | 1 | -45/+16 |
| | | | | squashed massive duplication of common argument descriptions. | ||||
* | Since the doctest warnings section was reduced to one bullet point, | Tim Peters | 2004-09-25 | 1 | -10/+6 |
| | | | | get rid of the itemize structure. | ||||
* | In the "doctest warnings" section, removed obsolete info, and noted that | Tim Peters | 2004-09-25 | 1 | -32/+16 |
| | | | | ELLIPSIS can be used to deal with examples that embed object addresses. | ||||
* | Beef up the section on testfile(), giving a complete example in | Tim Peters | 2004-09-25 | 1 | -22/+48 |
| | | | | | | reStructuredText format. Remove words describing the return value of testmod() and testfile() in the intro sections, since it's never useful in such simple cases. | ||||
* | Typo. | Tim Peters | 2004-09-25 | 1 | -1/+1 |
| | |||||
* | Since the LaTeX isn't doctest'ed, examples are always wrong <wink>. | Tim Peters | 2004-09-25 | 1 | -17/+21 |
| | |||||
* | - Updated docs to reflect changes in 2.4. | Edward Loper | 2004-09-21 | 1 | -245/+1001 |
| | | | | | | | | | | | | - Reorganized the documentation - Shifted focus a little more towards "literate testing" - Documented new functions and classes: - testfile() - Example, DocTest - DocTestParser, DocTestFinder, DocTestRunner, OutputChecker - DocFileSuite - DebugRunner, DocTestFailure, UnexpectedException - register_optionflag() | ||||
* | - Updated example output to match actual output | Edward Loper | 2004-09-19 | 1 | -18/+47 |
| | | | | | | | - Minor wording changes - Changed the docs to reflect the fact that multiple option directives can be specified on a single line (and updated the directive production list, as well). | ||||
* | Document testmod's new exclude_empty argument. | Tim Peters | 2004-09-13 | 1 | -3/+11 |
| | |||||
* | Added IGNORE_EXCEPTION_DETAIL comparison option. The need is explained | Tim Peters | 2004-09-04 | 1 | -0/+32 |
| | | | | | | | | 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. | ||||
* | The distinction between comparison flags and reporting flags isn't unique | Tim Peters | 2004-08-30 | 1 | -1/+10 |
| | | | | | | | | | | | 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. | ||||
* | Fine tune a word. | Tim Peters | 2004-08-26 | 1 | -1/+1 |
| | |||||
* | Thinko repair. | Tim Peters | 2004-08-26 | 1 | -1/+1 |
| | |||||
* | Reorg of exception section. Now that there are fewer details needing | Tim Peters | 2004-08-26 | 1 | -22/+45 |
| | | | | | explanation, it's easier to push the remaining insufferably anal details into a "fine print" section at the bottom. | ||||
* | Added REPORT_ONLY_FIRST_FAILURE flag, which supresses output after the | Edward Loper | 2004-08-26 | 1 | -2/+13 |
| | | | | first failing example in each test. | ||||
* | Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; and | Edward Loper | 2004-08-26 | 1 | -5/+5 |
| | | | | | | | 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). | ||||
* | Restored half of a \versionadded only half of which should have been | Tim Peters | 2004-08-26 | 1 | -0/+3 |
| | | | | deleted. | ||||
* | Only recognize the expected output as an exception if it *starts* with | Edward Loper | 2004-08-25 | 1 | -39/+34 |
| | | | | | | | | 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. | ||||
* | Removed redundant versionadded{} for NDIFF_DIFF. Virtually everything | Tim Peters | 2004-08-23 | 1 | -1/+0 |
| | | | | | | in this section is new in 2.4, and that's all mentioned already in versionadded{} thingies at the end of the section. It hurts readability to have them after every line <wink>. | ||||
* | Add version info | Neal Norwitz | 2004-08-22 | 1 | -0/+1 |
| | |||||
* | Added NDIFF_DIFF option. | Tim Peters | 2004-08-22 | 1 | -1/+11 |
| | |||||
* | Quote # as \# to make lib compile again. | Johannes Gijsbers | 2004-08-20 | 1 | -1/+1 |
| | |||||
* | Now that they've settled down, document doctest directives. | Tim Peters | 2004-08-19 | 1 | -8/+66 |
| | |||||
* | Another microburst of snail-like progress. | Tim Peters | 2004-08-13 | 1 | -106/+94 |
| | |||||
* | Doctest has new traceback gimmicks in 2.4. While trying to document | Tim Peters | 2004-08-13 | 1 | -18/+80 |
| | | | | | | 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. | ||||
* | Markup fiddling. | Tim Peters | 2004-08-13 | 1 | -7/+7 |
| | |||||
* | Excruciatingly slow progress on the docs. Option flags / directive names | Tim Peters | 2004-08-12 | 1 | -54/+77 |
| | | | | are documented now, and ripped out a bunch of "private name" convolutions. | ||||
* | minor changes to make this format again | Fred Drake | 2004-08-10 | 1 | -2/+2 |
| | |||||
* | Start rewriting doctest's LaTeX docs. Damn, this is slow going! | Tim Peters | 2004-08-10 | 1 | -28/+147 |
| | |||||
* | A few trivial edits. | Tim Peters | 2004-07-23 | 1 | -4/+4 |
| | |||||
* | Patch #932930: suggest the use of rawstrings for backslashes. | Martin v. Löwis | 2004-05-31 | 1 | -9/+20 |
| | |||||
* | Patch #849350: Update to document bool return values. Backported to 2.3. | Martin v. Löwis | 2003-11-27 | 1 | -1/+1 |
| | |||||
* | SF patch#786531 'the the' typo. Contributed by George Yoshida | Raymond Hettinger | 2003-08-12 | 1 | -1/+1 |
| |