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

Method pytest_warning_recorded

testing/test_warnings.py:270–271  ·  view source on GitHub ↗
(self, warning_message, when, nodeid, location)

Source from the content-addressed store, hash-verified

268
269 class WarningCollector:
270 def pytest_warning_recorded(self, warning_message, when, nodeid, location):
271 collected.append((str(warning_message.message), when, nodeid, location))
272
273 result = pytester.runpytest(plugins=[WarningCollector()])
274 result.stdout.fnmatch_lines(["*1 passed*"])

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected