Skip to content

Commit e2f626c

Browse files
committed
TEST: hide must_warn from tracebacks
1 parent 34bc39f commit e2f626c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

larray/tests/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def meta():
150150

151151
@contextmanager
152152
def must_warn(warn_cls=None, msg=None, match=None, check_file=True, num_expected=1):
153+
# makes this function not appear in pytest tracebacks
154+
__tracebackhide__ = True
155+
153156
if num_expected == 0:
154157
yield []
155158
else:

0 commit comments

Comments
 (0)