diff options
author | Steve Purcell <steve@pythonconsulting.com> | 2003-09-15 11:01:21 (GMT) |
---|---|---|
committer | Steve Purcell <steve@pythonconsulting.com> | 2003-09-15 11:01:21 (GMT) |
commit | d75e7e43420273dc774bb39caa636c5c866fe935 (patch) | |
tree | 96095576151ccaa1a4d27b5842fb3cfc31c77971 /Lib/unittest.py | |
parent | d55111f791c278e65f5500cd727cfdfcdb8baf5d (diff) | |
download | cpython-d75e7e43420273dc774bb39caa636c5c866fe935.zip cpython-d75e7e43420273dc774bb39caa636c5c866fe935.tar.gz cpython-d75e7e43420273dc774bb39caa636c5c866fe935.tar.bz2 |
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
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r-- | Lib/unittest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py index d033936..043b9a8 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -56,6 +56,16 @@ 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 ############################################################################## |