twisted.test.test_twisted.SetAsideModule(object)
class documentationtwisted.test.test_twisted
(View In Hierarchy)
Known subclasses: twisted.internet.test.modulehelpers.NoReactor
SetAsideModule
is a context manager for temporarily removing a module from
sys.modules
.
Instance Variable | name | The name of the module to remove. |
Method | __init__ | Undocumented |
Method | __enter__ | Undocumented |
Method | __exit__ | Undocumented |
Method | _unimport | Find the given module and all of its hierarchically inferior modules in
sys.modules , remove them from it, and return whatever was
found. |
Find the given module and all of its hierarchically inferior modules in
sys.modules
, remove them from it, and return whatever was
found.