class documentation
class SetAsideModule: (source)
Known subclasses: twisted.internet.test.modulehelpers.NoReactor
SetAsideModule
is a context manager for temporarily removing a module from sys.modules.
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | modules |
Undocumented |
Instance Variable | name |
The name of the module to remove. |
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. |