diff --git a/xarray/testing.py b/xarray/testing.py index e8b5f04ef85..2129b1e1aa4 100644 --- a/xarray/testing.py +++ b/xarray/testing.py @@ -27,6 +27,8 @@ def ensure_warnings(func): # -> make sure that does not happen in the assert_* functions @functools.wraps(func) def wrapper(*args, **kwargs): + __tracebackhide__ = True + with warnings.catch_warnings(): warnings.simplefilter("always")