On this page
unittest.removeResult
Prev: unittest.removeHandler | Up: unittest | Next: unittest.skip
Rel: unittest.addModuleCleanup, unittest.doModuleCleanups, unittest.enterModuleContext, unittest.expectedFailure
Ref: docs.python.org — unittest.removeResult
Tags: #public #python3 #stdlib #unittest
Import
import unittest
from unittest import removeResult
Signature & Overview
unittest.removeResult(result)
unittest.removeResult() function.
Usage
import unittest
res = unittest.TestResult()
unittest.registerResult(res)
assert unittest.removeResult(res) is True
assert unittest.removeResult(res) is False
Gotchas
- Returns
Trueif removed,Falseif not registered: Uses weak references internally.
REPL Inspect
from unittest import removeResult
help(removeResult)
Linked from
Related notes
- tuts/python3/stdlib_module/unittest/removeHandler Linked here; links to this page; shared tags: #stdlib, #unittest
- tuts/python3/stdlib_module/unittest/skip 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