On this page
unittest.removeHandler
Prev: unittest.registerResult | Up: unittest | Next: unittest.removeResult
Rel: unittest.addModuleCleanup, unittest.doModuleCleanups, unittest.enterModuleContext, unittest.expectedFailure
Ref: docs.python.org — unittest.removeHandler
Tags: #public #python3 #stdlib #unittest
Import
import unittest
from unittest import removeHandler
Signature & Overview
unittest.removeHandler(method=None)
unittest.removeHandler() function.
Usage
import unittest
unittest.installHandler()
unittest.removeHandler()
Gotchas
- Restores the previous
SIGINThandler: Useful in custom runners or tests that exerciseinstallHandler().
REPL Inspect
from unittest import removeHandler
help(removeHandler)
Linked from
Related notes
- tuts/python3/stdlib_module/unittest/registerResult Linked here; links to this page; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/removeResult Linked here; links to this page; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/unittest/addModuleCleanup Linked here; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/doModuleCleanups Linked here; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/enterModuleContext Linked here; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/expectedFailure Linked here; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/FunctionTestCase shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/installHandler shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/IsolatedAsyncioTestCase shared tags: #stdlib, #unittest