[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules

Dino Viehland report at bugs.python.org
Mon Feb 10 14:28:27 EST 2020


Dino Viehland <dinoviehland at gmail.com> added the comment:

I like that idea, let me see if I can find a way to do that.  This is a little bit different in that it's implicitly trying to find a module, and supports dotting through non-packages as well, but maybe there's a way to leverage importlib and still keep the existing behavior.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39551>
_______________________________________


More information about the Python-bugs-list mailing list