Author dino.viehland
Recipients dino.viehland
Date 2020-02-04.20:27:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580848069.21.0.869527016064.issue39551@roundup.psfhosted.org>
In-reply-to
Content
The fix for bpo-17636 added support for falling back to sys.modules when a module isn't directly present on the module.  But mock doesn't have the same behavior - it'll try the import, and then try to get the value off the object.  If it's not there it just errors out.

Instead it should also consult sys.modules to be consistent with import semantics.
History
Date User Action Args
2020-02-04 20:27:49dino.viehlandsetrecipients: + dino.viehland
2020-02-04 20:27:49dino.viehlandsetmessageid: <1580848069.21.0.869527016064.issue39551@roundup.psfhosted.org>
2020-02-04 20:27:49dino.viehlandlinkissue39551 messages
2020-02-04 20:27:49dino.viehlandcreate