[issue4686] Exceptions in ConfigParser don't set .args

Łukasz Langa report at bugs.python.org
Sat Jul 24 03:00:45 CEST 2010


Łukasz Langa <lukasz at langa.pl> added the comment:

Sound argument. I've prepared a patch for Py3k that adds `args` for all exceptions. Unit tests were modified as to check whether the `args` are set correctly (which helped finding a couple of flaky assertions in the tests themselves :)).

Brett, the code change is trivial. Tests aren't complicated as well. Should this change also be ported to py27-maint?

----------
keywords: +patch
nosy: +brett.cannon, lukasz.langa
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file18167/issue4686_py3k.diff

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


More information about the Python-bugs-list mailing list