test.support.import_module()

test.support.import_module(name, deprecated=False)

This function imports and returns the named module. Unlike a normal import, this function raises unittest.SkipTest if the module cannot be imported.

Module and package deprecation messages are suppressed during this import if deprecated is True.

New in version 3.1.

doc_python
2016-10-07 17:44:24
Comments
Leave a Comment

Please login to continue.