From e5e76964586891e634ffc4c0b536e76df9ed7929 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Thu, 11 Feb 2010 14:12:07 +0000 Subject: [PATCH] Adding TextTestResult to unittest.__all__ --- Lib/unittest/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py index c12e669790f..4a308fa1c46 100644 --- a/Lib/unittest/__init__.py +++ b/Lib/unittest/__init__.py @@ -47,10 +47,11 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. __all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner', 'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless', - 'expectedFailure'] + 'expectedFailure', 'TextTestResult'] # Expose obsolete functions for backwards compatibility __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases']) +__all__.append('_TextTestResult') from .result import TestResult