[issue14080] Sporadic test_imp failure

Stefan Krah report at bugs.python.org
Sun Feb 26 15:37:14 CET 2012


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

> So the test needs to be fixed to call importlib.invalidate_caches()
> after creating the module.

That works. With issue14080.diff I can run the failing combination
without problems:

$ ./python -m test test_sqlite test_imp
[1/2] test_sqlite
test_sqlite skipped -- No module named '_sqlite3'
[2/2] test_imp
1 test OK.
1 test skipped:
    test_sqlite
Those skips are all expected on linux.
[111339 refs]



Is invalidate_caches() a transitional measure until importlib
is fully integrated?

----------
keywords: +patch
Added file: http://bugs.python.org/file24646/issue14080.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14080>
_______________________________________


More information about the Python-bugs-list mailing list