[New-bugs-announce] [issue6551] test_codecs fails when ran after test_zipimport and test_mailbox.

Alexandre Vassalotti report at bugs.python.org
Thu Jul 23 05:04:33 CEST 2009


New submission from Alexandre Vassalotti <alexandre at peadrop.com>:

For some yet unknown reason, test_codecs fails when it is run after
test_zipimport and subsequently test_mailbox:

./python Lib/test/regrtest.py -w test_zipimport test_mailbox test_codecs
[SNIP]
======================================================================
ERROR: test_basics (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/alex/src/python.org/py3k/Lib/test/test_codecs.py", line
1360, in test_basics
    encodedresult += encoder.encode(c)
  File "/home/alex/src/python.org/py3k/Lib/encodings/ascii.py", line 22,
in encode
    return codecs.ascii_encode(input, self.errors)[0]
AttributeError: 'NoneType' object has no attribute 'ascii_encode'

======================================================================
ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/alex/src/python.org/py3k/Lib/test/test_codecs.py", line
1445, in test_decoder_state
    self.check_state_handling_decode(encoding, u, u.encode(encoding))
  File "/home/alex/src/python.org/py3k/Lib/test/test_codecs.py", line
30, in check_state_handling_decode
    part1 = d.decode(s[:i])
  File "/home/alex/src/python.org/py3k/Lib/encodings/ascii.py", line 26,
in decode
    return codecs.ascii_decode(input, self.errors)[0]
AttributeError: 'NoneType' object has no attribute 'ascii_decode'

----------------------------------------------------------------------
Ran 121 tests in 0.204s

FAILED (errors=2)
test test_codecs failed -- errors occurred; run in verbose mode for details

----------
components: Tests
messages: 90837
nosy: alexandre.vassalotti
priority: normal
severity: normal
stage: needs patch
status: open
title: test_codecs fails when ran after test_zipimport and test_mailbox.
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list