Commit b7503ff6 authored by Edward Loper's avatar Edward Loper

Updated __all__ to include every non-underscored class, function, and

constant defined by the module (except the test*() functions, which
should be integrated into test/test_doctest.py, anyway).
parent 3ba5bfc7
...@@ -170,19 +170,47 @@ executed. ...@@ -170,19 +170,47 @@ executed.
__docformat__ = 'reStructuredText en' __docformat__ = 'reStructuredText en'
__all__ = [ __all__ = [
# 0, Option Flags
'register_optionflag',
'DONT_ACCEPT_TRUE_FOR_1',
'DONT_ACCEPT_BLANKLINE',
'NORMALIZE_WHITESPACE',
'ELLIPSIS',
'UNIFIED_DIFF',
'CONTEXT_DIFF',
# 1. Utility Functions
'is_private', 'is_private',
# 2. Example & DocTest
'Example', 'Example',
'DocTest', 'DocTest',
# 3. Doctest Parser
'DocTestParser',
# 4. Doctest Finder
'DocTestFinder', 'DocTestFinder',
# 5. Doctest Runner
'DocTestRunner', 'DocTestRunner',
'OutputChecker',
'DocTestFailure',
'UnexpectedException',
'DebugRunner',
# 6. Test Functions
'testmod', 'testmod',
'run_docstring_examples', 'run_docstring_examples',
# 7. Tester
'Tester', 'Tester',
# 8. Unittest Support
'DocTestCase', 'DocTestCase',
'nooutput',
'DocTestSuite', 'DocTestSuite',
'DocFileCase',
'DocFileTest',
'DocFileSuite',
# 9. Debugging Support
'script_from_examples',
'testsource', 'testsource',
'debug_src',
'debug_script',
'debug', 'debug',
# 'master',
] ]
import __future__ import __future__
...@@ -526,7 +554,7 @@ class DocTest: ...@@ -526,7 +554,7 @@ class DocTest:
(other.name, other.filename, other.lineno, id(other))) (other.name, other.filename, other.lineno, id(other)))
###################################################################### ######################################################################
## 2. DocTestParser ## 3. DocTestParser
###################################################################### ######################################################################
class DocTestParser: class DocTestParser:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment