MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _strip_resource_warnings

Function _strip_resource_warnings

testing/test_stepwise.py:80–87  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

78
79
80def _strip_resource_warnings(lines):
81 # Strip unreliable ResourceWarnings, so no-output assertions on stderr can work.
82 # (https://github.com/pytest-dev/pytest/issues/5088)
83 return [
84 x
85 for x in lines
86 if not x.startswith(("Exception ignored in:", "ResourceWarning"))
87 ]
88
89
90def test_run_without_stepwise(stepwise_pytester: Pytester) -> None:

Callers 4

test_fail_on_errorsFunction · 0.70
test_change_testfileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected