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

Function _strip_resource_warnings

testing/test_runner.py:576–583  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

574
575
576def _strip_resource_warnings(lines):
577 # Assert no output on stderr, except for unreliable ResourceWarnings.
578 # (https://github.com/pytest-dev/pytest/issues/5088)
579 return [
580 x
581 for x in lines
582 if not x.startswith(("Exception ignored in:", "ResourceWarning"))
583 ]
584
585
586def test_pytest_exit_returncode(pytester: Pytester) -> None:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected