diff --git a/bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testProxyField.py b/bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testProxyField.py index 073485a0b5183e228b38c7e303f4a7d5cdb784d9..b7d4fd9539ea30e31134659f2efc2b56d56f911d 100644 --- a/bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testProxyField.py +++ b/bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testProxyField.py @@ -333,7 +333,7 @@ return printed # Test xml serialisation of form. xml_string = formToXML(form) - xml_tree = etree.fromstring(xml_string) + xml_tree = etree.fromstring(xml_string.encode()) field_node = xml_tree.find('groups/group/fields/field') self.assertEqual(field_node.find('type').text, 'ProxyField') self.assertTrue(field_node.find('delegated_list/title') is not None)