[issue14080] Sporadic test_imp failure
Antoine Pitrou
report at bugs.python.org
Sat Feb 25 19:48:48 CET 2012
Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue14080>
_______________________________________
More information about the Python-bugs-list
mailing list