Issue 772091: doctest.DocTestSuite does not support test (original) (raw)
Issue772091
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/38859
classification
Title: | doctest.DocTestSuite does not support __test__ | ||
---|---|---|---|
Type: | Stage: | ||
Components: | Library (Lib) | Versions: | Python 2.4 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | tim.peters | Nosy List: | rhettinger, tim.peters |
Priority: | low | Keywords: |
Created on 2003-07-16 05:04 by rhettinger, last changed 2022-04-10 16:09 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg17069 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2003-07-16 05:04 |
The DocTestSuite tool ignores a module level dictionary named __test__. This limits its usefulness for the current python testsuite. | ||
msg17070 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2004-08-06 23:44 |
Logged In: YES user_id=80475 Perhaps this can be incorporated in your updates. | ||
msg17071 - (view) | Author: Tim Peters (tim.peters) * ![]() |
Date: 2004-08-07 05:42 |
Logged In: YES user_id=31435 Thanks for pointing it out! This got fixed by magic as part of the refactoring -- doctest's unittest support used to have its own code for finding things to test, entirely distinct from the test-finding code used by the rest of doctest. Everything uses a new common DocTestFinder class now, so there should be no more differences in what the various wrappers find to test. I added a test to ensure that DocTestSuite does indeed make tests from a __test__ dict (if present). |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:09:59 | admin | set | github: 38859 |
2003-07-16 05:04:47 | rhettinger | create |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements