Skip to content

Commit 51cd4b9

Browse files
committed
adapt testsuite to changes in pytest 7.4
1 parent 3e500bb commit 51cd4b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

html5lib/tests/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def runtest(self):
246246
def repr_failure(self, excinfo):
247247
traceback = excinfo.traceback
248248
ntraceback = traceback.cut(path=__file__)
249-
excinfo.traceback = ntraceback.filter()
249+
excinfo.traceback = ntraceback.filter(excinfo)
250250

251251
return excinfo.getrepr(funcargs=True,
252252
showlocals=False,

html5lib/tests/tree_construction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def runtest(self):
135135
def repr_failure(self, excinfo):
136136
traceback = excinfo.traceback
137137
ntraceback = traceback.cut(path=__file__)
138-
excinfo.traceback = ntraceback.filter()
138+
excinfo.traceback = ntraceback.filter(excinfo)
139139

140140
return excinfo.getrepr(funcargs=True,
141141
showlocals=False,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy