summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdoctest.tex
Commit message (Collapse)AuthorAgeFilesLines
* SF Patch #1093896: miscellaneous doc typosRaymond Hettinger2005-01-011-1/+1
|
* add __file__ to the globals available for tests loaded via DocFileSuite;Fred Drake2004-12-211-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. RepairedTim Peters2004-10-041-1/+2
| | | | the example so it does pass.
* Added 2 notes about the complexities of testing SyntaxErrors.Edward Loper2004-09-301-0/+31
|
* Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter'sEdward Loper2004-09-281-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 inEdward Loper2004-09-281-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 Loper2004-09-271-1/+10
|
* - Fixed typo in multi-line exception exampleEdward Loper2004-09-271-6/+6
| | | | - Fixed indentation for a verbatim block
* Give a saner example for script_from_examples(); also mention an intendedTim Peters2004-09-261-11/+25
| | | | but not entirely obvious use case.
* Made most module references "clickable".Tim Peters2004-09-261-71/+70
|
* Docs for run_docstring_examples().Tim Peters2004-09-261-0/+30
|
* Added a lot of new stuff to the debugging section.Tim Peters2004-09-261-29/+159
|
* register_optionflag(): Moved from the Debugging section to the sectionTim Peters2004-09-261-12/+19
| | | | on option flags; added a versionadded decoration.
* Document set_unittest_reportflags().Tim Peters2004-09-261-2/+59
|
* Fix double word error.Raymond Hettinger2004-09-251-1/+1
|
* Assorted minor changes, plus a lot more soap.Tim Peters2004-09-251-33/+39
|
* Explain the motivation for the unittest functions, and beef up theTim Peters2004-09-251-51/+49
| | | | example. Squash repeated argument descriptions. Minor rewordings.
* Repaired mistakes in the descriptions of testmod()/testfile(), andTim Peters2004-09-251-45/+16
| | | | squashed massive duplication of common argument descriptions.
* Since the doctest warnings section was reduced to one bullet point,Tim Peters2004-09-251-10/+6
| | | | get rid of the itemize structure.
* In the "doctest warnings" section, removed obsolete info, and noted thatTim Peters2004-09-251-32/+16
| | | | ELLIPSIS can be used to deal with examples that embed object addresses.
* Beef up the section on testfile(), giving a complete example inTim Peters2004-09-251-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 Peters2004-09-251-1/+1
|
* Since the LaTeX isn't doctest'ed, examples are always wrong <wink>.Tim Peters2004-09-251-17/+21
|
* - Updated docs to reflect changes in 2.4.Edward Loper2004-09-211-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 outputEdward Loper2004-09-191-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 Peters2004-09-131-3/+11
|
* Added IGNORE_EXCEPTION_DETAIL comparison option. The need is explainedTim Peters2004-09-041-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 uniqueTim Peters2004-08-301-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 Peters2004-08-261-1/+1
|
* Thinko repair.Tim Peters2004-08-261-1/+1
|
* Reorg of exception section. Now that there are fewer details needingTim Peters2004-08-261-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 theEdward Loper2004-08-261-2/+13
| | | | first failing example in each test.
* Renamed UNIFIED_DIFF->REPORT_UDIFF; CONTEXT_DIFF->REPORT_CDIFF; andEdward Loper2004-08-261-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 beenTim Peters2004-08-261-0/+3
| | | | deleted.
* Only recognize the expected output as an exception if it *starts* withEdward Loper2004-08-251-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 everythingTim Peters2004-08-231-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 infoNeal Norwitz2004-08-221-0/+1
|
* Added NDIFF_DIFF option.Tim Peters2004-08-221-1/+11
|
* Quote # as \# to make lib compile again.Johannes Gijsbers2004-08-201-1/+1
|
* Now that they've settled down, document doctest directives.Tim Peters2004-08-191-8/+66
|
* Another microburst of snail-like progress.Tim Peters2004-08-131-106/+94
|
* Doctest has new traceback gimmicks in 2.4. While trying to documentTim Peters2004-08-131-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 Peters2004-08-131-7/+7
|
* Excruciatingly slow progress on the docs. Option flags / directive namesTim Peters2004-08-121-54/+77
| | | | are documented now, and ripped out a bunch of "private name" convolutions.
* minor changes to make this format againFred Drake2004-08-101-2/+2
|
* Start rewriting doctest's LaTeX docs. Damn, this is slow going!Tim Peters2004-08-101-28/+147
|
* A few trivial edits.Tim Peters2004-07-231-4/+4
|
* Patch #932930: suggest the use of rawstrings for backslashes.Martin v. Löwis2004-05-311-9/+20
|
* Patch #849350: Update to document bool return values. Backported to 2.3.Martin v. Löwis2003-11-271-1/+1
|
* SF patch#786531 'the the' typo. Contributed by George YoshidaRaymond Hettinger2003-08-121-1/+1
|