From 408c591ca1430cd46f9d639ef64ee856e6b5a3d6 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Thu, 5 Mar 2026 12:56:33 +0100 Subject: [PATCH] Remove from tests Newest parser in libxml2 is stricker and does not allow embed tags to have closing tags. Fixes: https://github.com/fedora-python/lxml_html_clean/issues/29 --- tests/test_clean_embed.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_clean_embed.txt b/tests/test_clean_embed.txt index f9d4a4e..3142254 100644 --- a/tests/test_clean_embed.txt +++ b/tests/test_clean_embed.txt @@ -13,15 +13,15 @@ THIS FAILS IN libxml2 2.6.29 AND 2.6.30 !! ... return s >>> doc_embed = '''
-... -... +... +... ... ... ...
''' >>> print(tostring(fromstring(doc_embed)))
- - + +
@@ -30,10 +30,10 @@ THIS FAILS IN libxml2 2.6.29 AND 2.6.30 !! >>> print(Cleaner(host_whitelist=['www.youtube.com']).clean_html(doc_embed))
- +
>>> print(Cleaner(host_whitelist=['www.youtube.com'], whitelist_tags=None).clean_html(doc_embed))
- +