summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/__init__.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-04-25 19:02:46 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-04-25 19:02:46 (GMT)
commit5c322ece9601da2a4113f489d44762abffe6b8cd (patch)
tree2718070eecc6d3101673bf5bd673f3a3d2ec382c /Lib/unittest/__init__.py
parentadbcf1f4a804b1a1497fd33ee2c4c28d264197aa (diff)
downloadcpython-5c322ece9601da2a4113f489d44762abffe6b8cd.zip
cpython-5c322ece9601da2a4113f489d44762abffe6b8cd.tar.gz
cpython-5c322ece9601da2a4113f489d44762abffe6b8cd.tar.bz2
Adding unittest.removeHandler function / decorator for removing the signal.SIGINT signal handler. With tests and docs.
Diffstat (limited to 'Lib/unittest/__init__.py')
-rw-r--r--Lib/unittest/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/__init__.py b/Lib/unittest/__init__.py
index e84299e..201a3f0 100644
--- a/Lib/unittest/__init__.py
+++ b/Lib/unittest/__init__.py
@@ -48,7 +48,7 @@ __all__ = ['TestResult', 'TestCase', 'TestSuite',
'TextTestRunner', 'TestLoader', 'FunctionTestCase', 'main',
'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless',
'expectedFailure', 'TextTestResult', 'installHandler',
- 'registerResult', 'removeResult']
+ 'registerResult', 'removeResult', 'removeHandler']
# Expose obsolete functions for backwards compatibility
__all__.extend(['getTestCaseNames', 'makeSuite', 'findTestCases'])
@@ -63,7 +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
+from .signals import installHandler, registerResult, removeResult, removeHandler
# deprecated
_TextTestResult = TextTestResult