Antoine Pitrou <pit...@free.fr> added the comment: > What happens is that if self._fill_cache() is called, cache_module='pep3147' > and cache={'pep3147'}. Then 'cache_module in cache' is true and the function > returns: > > loader('pep3147', './pep3147/__init__.py') > > Otherwise, find_module() returns None, control is handed back to > find_module_path() ...
Ah, thanks. So the test needs to be fixed to call importlib.invalidate_caches() after creating the module. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14080> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com