Tests fail under python 2.7, simple fix
Created originally on Bitbucket by codeape (Bernt R. Brenna)
In tests/helper.py: {{{ #!python def get_xml(xml_node): io = StringIO() ElementTree(xml_node).write(file=io, encoding="...") }}}
The {{{file}}} argument to ElementTree.write() has changed named to {{{filename_or_file}}} in the 2.7 stdlib, so I get a {{{TypeError: write() got an unexpected keyword argument 'file'}}} under Python 2.7.
Changing to {{{.write(io, encoding="...")}}} fixes the issue.