mirror of https://github.com/python/cpython
Explicitly define public symbols via __all__: see discussion with Raymond
Hettinger in comments for issue 804115 https://sourceforge.net/tracker/?func=detail&atid=105470&aid=804115&group_id=5470
This commit is contained in:
parent
d55111f791
commit
d75e7e4342
|
@ -55,6 +55,16 @@ import string
|
|||
import os
|
||||
import types
|
||||
|
||||
##############################################################################
|
||||
# Exported classes and functions
|
||||
##############################################################################
|
||||
__all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner',
|
||||
'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader']
|
||||
|
||||
# Expose obsolete functions for backwards compatability
|
||||
__all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Test framework core
|
||||
##############################################################################
|
||||
|
|
Loading…
Reference in New Issue