summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/__init__.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-03-26 03:18:31 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-03-26 03:18:31 (GMT)
commitfa2f1cdcbb6cf2d31066605b0f71d8fe3ed337aa (patch)
treeb19cee2577faee50d49922b64252191f383c4ed7 /Lib/unittest/__init__.py
parentee627883a7d57d783ccab1fb4ae1850f7c26d9b1 (diff)
downloadcpython-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__.py4
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