[issue39551] mock patch should match behavior of import from when module isn't present in sys.modules
Dino Viehland
report at bugs.python.org
Tue Feb 4 16:31:16 EST 2020
Dino Viehland <dinoviehland at gmail.com> added the comment:
It's related to bpo-39336. If you have an immutable package which doesn't allow it's children to be published on it when following the chain of packages it ends up not arriving at the final module.
But you can also hit it if you end up doing the patch during a relative import, although that seems much less likely. But it generally seems matching the behavior of imports would be good to me.
----------
stage: patch review -> needs patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39551>
_______________________________________
More information about the Python-bugs-list
mailing list