File: 0006-Skip-tests-based-on-search.patch

package info (click to toggle)
html5-parser 0.4.10-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,896 kB
  • sloc: ansic: 32,402; python: 1,718; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Kovid Goyal <kovid@kovidgoyal.net>
Date: Thu, 17 Mar 2022 09:07:22 +0530
Subject: Skip tests based on <search>

---
 test/html5lib_adapter.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/html5lib_adapter.py b/test/html5lib_adapter.py
index 81dcc80..86384dd 100644
--- a/test/html5lib_adapter.py
+++ b/test/html5lib_adapter.py
@@ -176,6 +176,10 @@ class ConstructionTests(BaseTest):
             return (
                 'gumbo and html5lib differ on <menuitem> parsing'
                 ' and I cannot be bothered to figure out who is right')
+        if 'search-element' in test_name:
+            return (
+                'No idea what the <search> element is. In any case the tests only differ in'
+                ' indentation, so skipping')
         noscript = re.search(r'^\| +<noscript>$', expected, flags=re.MULTILINE)
         if noscript is not None:
             return '<noscript> is always parsed with scripting off by gumbo'