[issue38766] AttributeError: 'xml.etree.ElementTree.ParseError' has no attribute 'filename'

2019-11-11 Thread mlj
mlj added the comment: Bleh. Sorry. I've crucially forgottn that this is an issue when running unit-tests under `nose` and isn't exclusively a core problem. Let me do some more debugging and then decide who the correct people to annoy are. -- resolution: -> works

[issue38766] AttributeError: 'xml.etree.ElementTree.ParseError' has no attribute 'filename'

2019-11-11 Thread mlj
New submission from mlj : traceback.py and how it handles 'SyntaxError's, which includes a bunch of assumptions about attributes that a SyntaxError should have defined: https://github.com/python/cpython/blob/master/Lib/traceback.py#L516 Definition of xml.etree.ElementTree.ParseErro