Skip to content

Commit a986b8f

Browse files
Merge pull request #1525 from The-Compiler/traceback-item
Fix TracebackItem documentation in pytest.code
2 parents 6a3c943 + c24e8e0 commit a986b8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_pytest/_code/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ def __getitem__(self, key):
294294
def filter(self, fn=lambda x: not x.ishidden()):
295295
""" return a Traceback instance with certain items removed
296296
297-
fn is a function that gets a single argument, a TracebackItem
297+
fn is a function that gets a single argument, a TracebackEntry
298298
instance, and should return True when the item should be added
299299
to the Traceback, False when not
300300
301-
by default this removes all the TracebackItems which are hidden
301+
by default this removes all the TracebackEntries which are hidden
302302
(see ishidden() above)
303303
"""
304304
return Traceback(filter(fn, self))
@@ -314,7 +314,7 @@ def getcrashentry(self):
314314
return self[-1]
315315

316316
def recursionindex(self):
317-
""" return the index of the frame/TracebackItem where recursion
317+
""" return the index of the frame/TracebackEntry where recursion
318318
originates if appropriate, None if no recursion occurred
319319
"""
320320
cache = {}

0 commit comments

Comments
 (0)