Description: fix warnings for BeautifulSoup with patameter "lxml"
 This patch fix the warnings for BeautifulSoup with patameter "lxml" which
 uses the HTML parser mode of the lxml library, not the XML parser. 
 This is fine for parsing HTML documents, but when trying to parse an XML document,
 the parser may not handle certain XML-specific features properly,
 leading to the XMLParsedAsHTMLWarning.
Author: Rong Fu <rong.fu.cn@windriver.com>
Origin:
Bug:
Reviewed-by:
Last-Update: 2025-04-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: hyperkitty-1.3.12/hyperkitty/tests/test_feeds.py
===================================================================
--- hyperkitty-1.3.12.orig/hyperkitty/tests/test_feeds.py
+++ hyperkitty-1.3.12/hyperkitty/tests/test_feeds.py
@@ -50,7 +50,7 @@ class TestMailingListFeed(TestCase):
         url = reverse('hk_list_feed', args=('list@example.com', ))
         response = self.client.get(url)
         self.assertEqual(response.status_code, 200)
-        soup = BeautifulSoup(response.content, "lxml")
+        soup = BeautifulSoup(response.content, "lxml-xml")
         self.assertEqual(len(soup.find_all("title",
                                            string="First Subject")), 1)
 
@@ -65,7 +65,7 @@ class TestMailingListFeed(TestCase):
         url = reverse('hk_list_feed', args=('list@example.com', ))
         response = self.client.get(url)
         self.assertEqual(response.status_code, 200)
-        soup = BeautifulSoup(response.content, "lxml")
+        soup = BeautifulSoup(response.content, "lxml-xml")
         self.assertEqual(len(soup.find_all("title",
                                            string="First&#1; Subject")), 1)
 
