(msg)
| 201 | assert "test_logging.py" in ws[0].filename # this file (it's in tests/) |
| 202 | |
| 203 | def warn_wrap(msg): |
| 204 | warn(msg, ignore_namespaces=()) |
| 205 | |
| 206 | monkeypatch.setattr(check, "warn", warn_wrap) |
| 207 | with pytest.warns(RuntimeWarning, match="filename") as ws: |