Skip to content

Commit 2fd2491

Browse files
authored
Merge pull request numpy#28211 from hmaarrfk/patch-3
MAINT: Hide decorator from pytest traceback
2 parents ce3b4e5 + 2b6df4b commit 2fd2491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/_utils/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def _rename_parameter(old_names, new_names, dep_version=None):
6666
def decorator(fun):
6767
@functools.wraps(fun)
6868
def wrapper(*args, **kwargs):
69+
__tracebackhide__ = True # Hide traceback for py.test
6970
for old_name, new_name in zip(old_names, new_names):
7071
if old_name in kwargs:
7172
if dep_version:

0 commit comments

Comments
 (0)