15
0

- Add patch support-python314.patch:

* Don't use ast.Str to parse the version if it isn't available.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib?expand=0&rev=59
This commit is contained in:
2025-11-04 00:18:59 +00:00
committed by Git OBS Bridge
commit 24e2ba5196
9 changed files with 586 additions and 0 deletions

26
pytest74.patch Normal file
View File

@@ -0,0 +1,26 @@
Index: html5lib-1.1/html5lib/tests/tokenizer.py
===================================================================
--- html5lib-1.1.orig/html5lib/tests/tokenizer.py
+++ html5lib-1.1/html5lib/tests/tokenizer.py
@@ -246,7 +246,7 @@ class TokenizerTest(pytest.Item):
def repr_failure(self, excinfo):
traceback = excinfo.traceback
ntraceback = traceback.cut(path=__file__)
- excinfo.traceback = ntraceback.filter()
+ excinfo.traceback = ntraceback.filter(excinfo)
return excinfo.getrepr(funcargs=True,
showlocals=False,
Index: html5lib-1.1/html5lib/tests/tree_construction.py
===================================================================
--- html5lib-1.1.orig/html5lib/tests/tree_construction.py
+++ html5lib-1.1/html5lib/tests/tree_construction.py
@@ -135,7 +135,7 @@ class ParserTest(pytest.Item):
def repr_failure(self, excinfo):
traceback = excinfo.traceback
ntraceback = traceback.cut(path=__file__)
- excinfo.traceback = ntraceback.filter()
+ excinfo.traceback = ntraceback.filter(excinfo)
return excinfo.getrepr(funcargs=True,
showlocals=False,