Accepting request 1101011 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1101011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-html5lib?expand=0&rev=26
This commit is contained in:
Ana Guerrero 2023-07-27 14:50:40 +00:00 committed by Git OBS Bridge
commit e9bf3e1bab
3 changed files with 33 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,

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 27 07:50:37 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Add pytest74.patch to fix tests with pytest 7.4+
-------------------------------------------------------------------
Fri Apr 21 12:26:16 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -29,6 +29,8 @@ Source: https://files.pythonhosted.org/packages/source/h/html5lib/html5l
Patch0: pytest6.patch
# https://github.com/html5lib/html5lib-python/issues/541
Patch1: python-html5lib-no-mock.patch
# PATCH-FIX-UPSTREAM https://github.com/html5lib/html5lib-python/pull/570 adapt testsuite to changes in pytest 7.4
Patch2: pytest74.patch
BuildRequires: %{python_module Genshi}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest >= 4.0}