Message269127
Add mock_import method.
A helper function to mask ``ImportError``s on a scoped code, using the ``with`` statement, or in method a method used as a decorator.
Failed imports will be ignored, unless specified by the *do_not_mock* argument.
The *do_not_mock* argument is a package or module name, or package or module names list. When specified, and imported in the scoped mocked code, importing them must succeed. If ``None`` (the default) then no import must succeed. |
|
Date |
User |
Action |
Args |
2016-06-23 17:12:17 | Eyal Posener | set | recipients:
+ Eyal Posener |
2016-06-23 17:12:17 | Eyal Posener | set | messageid: <1466701937.33.0.949904358819.issue27376@psf.upfronthosting.co.za> |
2016-06-23 17:12:17 | Eyal Posener | link | issue27376 messages |
2016-06-23 17:12:17 | Eyal Posener | create | |
|