diff options
| author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-26 03:18:31 (GMT) |
|---|---|---|
| committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-26 03:18:31 (GMT) |
| commit | fa2f1cdcbb6cf2d31066605b0f71d8fe3ed337aa (patch) | |
| tree | b19cee2577faee50d49922b64252191f383c4ed7 /Lib/unittest/__init__.py | |
| parent | ee627883a7d57d783ccab1fb4ae1850f7c26d9b1 (diff) | |
| download | cpython-fa2f1cdcbb6cf2d31066605b0f71d8fe3ed337aa.zip cpython-fa2f1cdcbb6cf2d31066605b0f71d8fe3ed337aa.tar.gz cpython-fa2f1cdcbb6cf2d31066605b0f71d8fe3ed337aa.tar.bz2 | |
Addition of -c command line option to unittest, to handle ctrl-c during a test run more elegantly
Diffstat (limited to 'Lib/unittest/__init__.py')
| -rw-r--r-- | Lib/unittest/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py index 7153802..e84299e 100644 --- a/Lib/unittest/__init__.py +++ b/Lib/unittest/__init__.py @@ -47,7 +47,8 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. __all__ = ['TestResult', 'TestCase', 'TestSuite', 'TextTestRunner', 'TestLoader', 'FunctionTestCase', 'main', 'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless', - 'expectedFailure', 'TextTestResult'] + 'expectedFailure', 'TextTestResult', 'installHandler', + 'registerResult', 'removeResult'] # Expose obsolete functions for backwards compatibility __all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases']) @@ -62,6 +63,7 @@ from .loader import (TestLoader, defaultTestLoader, makeSuite, getTestCaseNames, findTestCases) from .main import TestProgram, main from .runner import TextTestRunner, TextTestResult +from .signals import installHandler, registerResult, removeResult # deprecated _TextTestResult = TextTestResult |
