[issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.
R. David Murray
report at bugs.python.org
Thu Jul 23 15:35:55 CEST 2009
R. David Murray <rdmurray at bitdance.com> added the comment:
When the zipimport test is run, encodings.ascii is imported. Then it is
removed from sys.modules by the test cleanup. When the mailbox test is
run, it is reimported. However, when the codecs test tries to use it,
the encodings.ascii module has been finalized (as if during interpreter
shutdown) by having all its globals set to None. Thus the test failure.
I haven't figured out why this is happening yet, but it seems likely
that the issue is either with zipimport or with the zipimport test
cleanup. I'm guessing that anything that triggers encodings.ascii to be
loaded before test_codecs tries to use it will trigger the bug, but I
haven't tested that theory yet.
versions: +Python 3.1
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list