[issue27376] Add mock_import method to mock module
Israel Fruchter
report at bugs.python.org
Thu Sep 1 12:55:45 EDT 2016
Israel Fruchter added the comment:
Some real use cases is needed, like testing a code that behave differently on case of package availability.
I think something like patch for modules can be useful here, so you could have some control on what would be returned.
----------
nosy: +fruch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27376>
_______________________________________
More information about the Python-bugs-list
mailing list