Skip to content

Commit 971bad7

Browse files
authored
hide the decorator from the test traceback (#4900)
1 parent 6e4d667 commit 971bad7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xarray/testing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def ensure_warnings(func):
2727
# -> make sure that does not happen in the assert_* functions
2828
@functools.wraps(func)
2929
def wrapper(*args, **kwargs):
30+
__tracebackhide__ = True
31+
3032
with warnings.catch_warnings():
3133
warnings.simplefilter("always")
3234

0 commit comments

Comments
 (0)