Antoine Pitrou added the comment: Here is an updated patch with a test. ---------- Added file: http://bugs.python.org/file36833/expat_traceback.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22462> _______________________________________