[issue21476] Inconsitent behaviour between BytesParser.parse and Parser.parse

Serhiy Storchaka report at bugs.python.org
Sat May 31 14:16:24 CEST 2014


Serhiy Storchaka added the comment:

Could you please add a test with parse() raising an exception?

Yet one nitpick. Instead of

        fp = openfile('msg_02.txt', 'rb')
        self.addCleanup(fp.close)
        ...

you can write

        with openfile('msg_02.txt', 'rb') as fp:
            ...

as in other tests.

----------

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


More information about the Python-bugs-list mailing list