PyDocs

Nav

Development Tools

CleanImport

  • CleanImport(*module_names)
A context manager to force import to return a new module reference. This is useful for testing module-level behaviors, such as the emission of a DeprecationWarning on import. Example usage:
0 Examples
No examples for test.support.import_helper/CleanImport.
See Also
No see-alsos for test.support.import_helper/CleanImport
0 Notes
No notes for CleanImport