mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-31 02:55:19 -04:00
Add a test for the windows lxml workaround
This commit is contained in:
@@ -165,6 +165,9 @@ class BuildTest(unittest.TestCase):
|
||||
self.assertEqual(etree.tostring(root), raw)
|
||||
from lxml import html
|
||||
html.fromstring('<p>\U0001f63a')
|
||||
from calibre.utils.xml_parse import safe_xml_fromstring
|
||||
bad = '\U0001f468' * 8192
|
||||
safe_xml_fromstring(f'<p x="\U0001f600">\U0001f63a😺{bad}</p>')
|
||||
|
||||
def test_certgen(self):
|
||||
from calibre.utils.certgen import create_key_pair
|
||||
|
||||
Reference in New Issue
Block a user