diff options
author | Florian Bruhin <git@the-compiler.org> | 2016-04-20 08:35:17 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-04-20 08:35:17 +0200 |
commit | c24e8e01b4014abec7364f6e913e9f0d033dc701 (patch) | |
tree | 6089de8fb1a605b7ab3d8d01f85c0f62e7ef6a3a /_pytest/_code/code.py | |
parent | 6a3c943ce26de52737eac083fb692610bf1fce35 (diff) | |
download | pytest-c24e8e01b4014abec7364f6e913e9f0d033dc701.tar.gz |
Fix TracebackItem documentation in pytest.code
The TracebackItem class does not exist, but it seems the docstrings refer to
TracebackEntry.
Diffstat (limited to '_pytest/_code/code.py')
-rw-r--r-- | _pytest/_code/code.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py index 31a3eda2d..8995cc1f7 100644 --- a/_pytest/_code/code.py +++ b/_pytest/_code/code.py @@ -294,11 +294,11 @@ class Traceback(list): 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)) @@ -314,7 +314,7 @@ class Traceback(list): 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 = {} |