summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdoctest.tex
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* more markup chagesFred Drake2003-07-171-33/+38
|
* - remove mention of the isprivate flag, since that isn't directlyFred Drake2003-07-171-15/+12
| | | | | documented here, and according to Tim, should never have been there - misc. cleanups for consistency
* Minor corrections.Raymond Hettinger2003-07-171-1/+7
|
* Doctest now examines all docstrings by default. Previously, it wouldRaymond Hettinger2003-07-161-6/+7
| | | | | | | | | | | | 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.
* Document Jim Fulton's docttest extensions.Raymond Hettinger2003-07-111-8/+70
|
* fix markup nitsFred Drake2003-06-281-12/+12
|
* A hack to ease compatibility with pre-2.3 Pythons: by default, doctestTim Peters2003-06-271-0/+17
| | | | | | | | | | | | | | 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.
* Patch #486438: Make module argument to testmod optional.Martin v. Löwis2002-11-221-1/+5
|
* CVS patch [#466628] Doc changes for doctest patch (#466616), fromTim Peters2001-10-021-25/+2
| | | | Tim Hochberg. Doctest no longer searches imported objects.
* Fix recent changes so that this section will format again.Fred Drake2001-06-111-2/+3
|
* add warning about situation where code may be executed twice, once whenSkip Montanaro2001-06-081-0/+10
| | | | module is __main__ and once when module is imported.
* Change {\em ...} to \emph{...} for consistency with the rest of the PythonFred Drake2001-04-051-1/+1
| | | | documentation.
* Work around the broken formatting of sys.ps1 prompts in running text.Fred Drake2001-02-221-46/+48
| | | | | | | Move sample sessions to the left margin of the file for consistency; formatting can adjust the margin if needed. This closes SF bug #133213.
* Added missing \item. See also bug 133213, about damaged HTML generatedTim Peters2001-02-201-1/+2
| | | | for \code(">>>"); don't know how to fix that one.
* In the example showing the irrelevance of start columns, restore that theTim Peters2001-02-171-4/+4
| | | | start columns differ (editing had pushed them all into column 0).
* Make a variety of minor markup adjustments.Fred Drake2001-02-171-33/+37
| | | | Close some environments so that this will actually format.
* SF patch #103808: doctest.py docsTim Peters2001-02-171-0/+428
Checking in Moshe's patch after rewrapping some paragraphs (to consume fewer columns) and repairing that I/2.**J lost the I.