MCPcopy
hub / github.com/mne-tools/mne-python / warn_wrap

Function warn_wrap

mne/utils/tests/test_logging.py:203–204  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

warnFunction · 0.90

Tested by

no test coverage detected