python3: mark bytestring as needed

This commit is contained in:
Eli Schwartz 2019-03-26 01:04:19 -04:00
parent 7196fa0773
commit b6d4442b23
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -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 = '<a/>'
raw = b'<a/>'
root = etree.fromstring(raw)
self.assertEqual(etree.tostring(root), raw)