File: 0004-Ignore-ResourceWarning-with-Python-3.14.patch

package info (click to toggle)
html5lib 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,484 kB
  • sloc: python: 13,014; sh: 10; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Mon, 22 Dec 2025 11:21:12 +0100
Subject: Ignore ResourceWarning with Python 3.14

---
 html5lib/tests/tokenizer.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/html5lib/tests/tokenizer.py b/html5lib/tests/tokenizer.py
index d2605a1..dc19941 100644
--- a/html5lib/tests/tokenizer.py
+++ b/html5lib/tests/tokenizer.py
@@ -224,6 +224,7 @@ class TokenizerTest(pytest.Item):
     def runtest(self):
         warnings.resetwarnings()
         warnings.simplefilter("error")
+        warnings.simplefilter("ignore", category=ResourceWarning)
 
         expected = self.test['output']
         if 'lastStartTag' not in self.test: