Skip to content

Commit 4cd0b4f

Browse files
committed
Use __traceback__ hide in pytest helper functions.
1 parent 3bee676 commit 4cd0b4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

domdf_python_tools/testing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ def check_file_regression(
511511
.. versionadded:: 1.5.0
512512
"""
513513

514+
__tracebackhide__ = True
515+
514516
if isinstance(data, StringList):
515517
data = str(data)
516518

@@ -540,6 +542,8 @@ def check_file_output(
540542
.. versionchanged:: 1.7.1 Changed the default for ``newline`` to ``'\n'``.
541543
"""
542544

545+
__tracebackhide__ = True
546+
543547
filename = PathPlus(filename)
544548

545549
data = filename.read_text(encoding="UTF-8")

0 commit comments

Comments
 (0)