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: enable "python -m doctest FILE" to run tests in FILE
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, scoder
Priority: normal Keywords: patch

Created on 2007-02-19 08:33 by scoder, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
doctest.py-run-module.patch scoder, 2007-02-19 08:33 Patch against doctest.py in Python 2.5
libdoctest.tex-run-module.patch scoder, 2007-02-19 12:42 doc patch
Messages (4)
msg51897 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2007-02-19 08:33
This is a small patch that lets doctest.py support being called via "python -m" in a more useful way. Currently, it only runs a selftest. With the patch applied, you can pass one or more filenames, which will let it process these instead.
msg51898 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-02-19 12:08
Looks good and useful to me. A documentation patch would be needed though.
msg51899 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2007-02-19 12:42
fair enough
File Added: libdoctest.tex-run-module.patch
msg51900 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-06 13:38
Thanks for the patch, I extended it to allow testing modules and committed as 54164.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44594
2007-02-19 08:33:45scodercreate