Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

PR 3834 provide possible solution of this issue.

Initially import errors were silenced for solving issue15715. An import error 
raised when import was blocked by setting None in sys.modules was not silenced 
because it has different error message. I don't know whether this was 
intentional. In issue15767 (5fdb8c897023) the error message test was replaced 
by the type test, and that exception become silenced (I suppose it was not 
intentional).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to