Skip to content

Commit f7fc1e2

Browse files
committed
Implement the test changes from html5lib#570
1 parent 917c062 commit f7fc1e2

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)