From ef56e1d68447742e0035ef8d75634c51e955a59c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 18 Oct 2023 14:34:18 +0200 Subject: [fix] HTMLParser: undocumented not implemented method In python versions =py3.10) an error method is implemented which throws an AssertionError exception like the higher Python versions do [3]. [1] https://github.com/python/cpython/issues/76025 [2] https://bugs.python.org/issue31844 [3] https://github.com/python/cpython/pull/8562 Signed-off-by: Markus Heiser --- tests/unit/test_utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 2ad4593a1..6398e63f0 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -41,6 +41,7 @@ class TestUtils(SearxTestCase): self.assertIsInstance(utils.html_to_text(html_str), str) self.assertIsNotNone(utils.html_to_text(html_str)) self.assertEqual(utils.html_to_text(html_str), "Test text") + self.assertEqual(utils.html_to_text(r"regexp: (?