Skip to content

Commit b7503ff

Browse files
author
Edward Loper
committed
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).
1 parent 3ba5bfc commit b7503ff

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

Lib/doctest.py

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,47 @@ def _test():
170170
__docformat__ = 'reStructuredText en'
171171

172172
__all__ = [
173+
# 0, Option Flags
174+
'register_optionflag',
175+
'DONT_ACCEPT_TRUE_FOR_1',
176+
'DONT_ACCEPT_BLANKLINE',
177+
'NORMALIZE_WHITESPACE',
178+
'ELLIPSIS',
179+
'UNIFIED_DIFF',
180+
'CONTEXT_DIFF',
181+
# 1. Utility Functions
173182
'is_private',
183+
# 2. Example & DocTest
174184
'Example',
175185
'DocTest',
186+
# 3. Doctest Parser
187+
'DocTestParser',
188+
# 4. Doctest Finder
176189
'DocTestFinder',
190+
# 5. Doctest Runner
177191
'DocTestRunner',
192+
'OutputChecker',
193+
'DocTestFailure',
194+
'UnexpectedException',
195+
'DebugRunner',
196+
# 6. Test Functions
178197
'testmod',
179198
'run_docstring_examples',
199+
# 7. Tester
180200
'Tester',
201+
# 8. Unittest Support
181202
'DocTestCase',
203+
'nooutput',
182204
'DocTestSuite',
205+
'DocFileCase',
206+
'DocFileTest',
207+
'DocFileSuite',
208+
# 9. Debugging Support
209+
'script_from_examples',
183210
'testsource',
211+
'debug_src',
212+
'debug_script',
184213
'debug',
185-
# 'master',
186214
]
187215

188216
import __future__
@@ -526,7 +554,7 @@ def __cmp__(self, other):
526554
(other.name, other.filename, other.lineno, id(other)))
527555

528556
######################################################################
529-
## 2. DocTestParser
557+
## 3. DocTestParser
530558
######################################################################
531559

532560
class DocTestParser:

0 commit comments

Comments
 (0)