Commit 87f764e4 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Force XML serialization to unicode in profile generation tests

parent 01ca8b6ba1d5
......@@ -586,7 +586,8 @@ class SEDA2RNGExportTC(RelaxNGTestMixin, CubicWebTC):
profile = self.profile_etree(transfer)
mt = self.get_element(profile, 'MimeType')
self.assertEqual('\n'.join(etree.tostring(mt, pretty_print=True).splitlines()[1:-1]),
self.assertEqual('\n'.join(etree.tostring(mt, encoding=text_type,
pretty_print=True).splitlines()[1:-1]),
'''\
<rng:choice>
<rng:value type="token">application/msword</rng:value>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment