We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f12504 commit 9793270Copy full SHA for 9793270
coverage/debug.py
@@ -119,6 +119,11 @@ def should(self, option: str) -> bool:
119
"""Should we write debug messages? Never."""
120
return False
121
122
+ @contextlib.contextmanager
123
+ def without_callers(self) -> Iterator[None]:
124
+ """A dummy context manager to satisfy the api."""
125
+ yield
126
+
127
def write(self, msg: str, *, exc: BaseException | None = None) -> None:
128
"""This will never be called."""
129
raise AssertionError("NoDebugging.write should never be called.")
0 commit comments