diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py index 17259fecd0..45c85d1bf8 100644 --- a/src/calibre/test_build.py +++ b/src/calibre/test_build.py @@ -99,7 +99,7 @@ class BuildTest(unittest.TestCase): from calibre.utils.cleantext import test_clean_xml_chars test_clean_xml_chars() from lxml import etree - raw = '' + raw = b'' root = etree.fromstring(raw) self.assertEqual(etree.tostring(root), raw)