(self, warning_message, when, nodeid, location)
| 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*"]) |