diff --git a/tests/test_exporters.py b/tests/test_exporters.py index 070624830..00352f61e 100644 --- a/tests/test_exporters.py +++ b/tests/test_exporters.py @@ -261,13 +261,13 @@ class XmlItemExporterTest(BaseItemExporterTest): self.assertXmlEquivalent(fp.getvalue(), expected_value) def _check_output(self): - expected_value = u'\n22John\xa3' + expected_value = b'\n22John\xc2\xa3' self.assertXmlEquivalent(self.output.getvalue(), expected_value) def test_multivalued_fields(self): self.assertExportResult( TestItem(name=[u'John\xa3', u'Doe']), - u'\nJohn\xa3Doe' + b'\nJohn\xc2\xa3Doe' ) def test_nested_item(self): @@ -276,19 +276,19 @@ class XmlItemExporterTest(BaseItemExporterTest): i3 = TestItem(name=u'buz', age=i2) self.assertExportResult(i3, - u'\n' - u'' - u'' - u'' - u'' - u'22' - u'foo\xa3hoo' - u'' - u'bar' - u'' - u'buz' - u'' - u'' + b'\n' + b'' + b'' + b'' + b'' + b'22' + b'foo\xc2\xa3hoo' + b'' + b'bar' + b'' + b'buz' + b'' + b'' ) def test_nested_list_item(self): @@ -297,16 +297,16 @@ class XmlItemExporterTest(BaseItemExporterTest): i3 = TestItem(name=u'buz', age=[i1, i2]) self.assertExportResult(i3, - u'\n' - u'' - u'' - u'' - u'foo' - u'barspam' - u'' - u'buz' - u'' - u'' + b'\n' + b'' + b'' + b'' + b'foo' + b'barspam' + b'' + b'buz' + b'' + b'' )