Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,9 @@ def reset_warnings(gallery_conf, fname):
'Enum value .* is marked as deprecated',
# matplotlib PDF output
'The py23 module has been deprecated',
# pkg_resources
'Implementing implicit namespace packages',
'Deprecated call to `pkg_resources',
):
warnings.filterwarnings( # deal with other modules having bad imports
'ignore', message=".*%s.*" % key, category=DeprecationWarning)
Expand Down
3 changes: 3 additions & 0 deletions mne/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def pytest_configure(config):
# PySide6
ignore:Enum value .* is marked as deprecated:DeprecationWarning
ignore:Function.*is marked as deprecated, please check the documentation.*:DeprecationWarning
# pkg_resources usage bug
ignore:Implementing implicit namespace packages.*:DeprecationWarning
ignore:Deprecated call to `pkg_resources.*:DeprecationWarning
""".format(first_kind) # noqa: E501
for warning_line in warning_lines.split('\n'):
warning_line = warning_line.strip()
Expand Down
5 changes: 4 additions & 1 deletion mne/viz/_brain/tests/test_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,10 @@ def _create_testing_brain(hemi, surf='inflated', src='surface',
return brain_data


def test_foci_mapping(tmp_path, renderer_interactive_pyvistaqt):
# TODO: allow_unclosed for macOS here as the conda build shows some
# windows stay open afterward
def test_foci_mapping(tmp_path, renderer_interactive_pyvistaqt,
allow_unclosed):
"""Test mapping foci to the surface."""
tiny_brain, _ = tiny(tmp_path)
foci_coords = tiny_brain.geo['lh'].coords[:2] + 0.01
Expand Down