This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: New doctest option: +SKIP
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: edloper, tim.peters
Priority: normal Keywords: patch

Created on 2006-04-24 02:13 by edloper, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
doctest_skip-45676.diff edloper, 2006-04-24 02:13 Patch to doctest.py, libdoctest.tex, and test_doctest.py vs svn revision 45676
Messages (2)
msg50101 - (view) Author: Edward Loper (edloper) * (Python triager) Date: 2006-04-24 02:13
Adds a new option & directive to doctest, SKIP, which 
can be used to selectively skip examples.

This can be useful in contexts where doctest examples 
serve as both documentation and test cases, and an 
example should be included for documentation 
purposes, but should not be checked.  E.g., the 
example's output might be random; or the example 
might depend on resources which would be unavailable 
to the test driver.  The SKIP flag can also be used 
for temporarily "commenting out" examples.

Patch includes updates to tests & documentation.
msg50102 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-04-25 03:32
Logged In: YES 
user_id=31435

Many thanks for the thorough patch, Edward!  This was
checked in to the trunk, as revision 45701.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43268
2006-04-24 02:13:16edlopercreate