fix tests for Python 2.6

On 2.6, xml.etree.ElementTree.ParseError doesn't exist.