diff --git a/Lib/unittest.py b/Lib/unittest.py index d033936d2d0..043b9a848a4 100644 --- a/Lib/unittest.py +++ b/Lib/unittest.py @@ -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 ##############################################################################