Skip to content

Commit

Permalink
Merge pull request pytest-dev#1525 from The-Compiler/traceback-item
Browse files Browse the repository at this point in the history
Fix TracebackItem documentation in pytest.code
  • Loading branch information
RonnyPfannschmidt committed Apr 20, 2016
2 parents 6a3c943 + c24e8e0 commit a986b8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _pytest/_code/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ def __getitem__(self, key):
def filter(self, fn=lambda x: not x.ishidden()):
""" return a Traceback instance with certain items removed
fn is a function that gets a single argument, a TracebackItem
fn is a function that gets a single argument, a TracebackEntry
instance, and should return True when the item should be added
to the Traceback, False when not
by default this removes all the TracebackItems which are hidden
by default this removes all the TracebackEntries which are hidden
(see ishidden() above)
"""
return Traceback(filter(fn, self))
Expand All @@ -314,7 +314,7 @@ def getcrashentry(self):
return self[-1]

def recursionindex(self):
""" return the index of the frame/TracebackItem where recursion
""" return the index of the frame/TracebackEntry where recursion
originates if appropriate, None if no recursion occurred
"""
cache = {}
Expand Down

0 comments on commit a986b8f

Please sign in to comment.