Skip to content

Commit

Permalink
try fix suggested by Eric
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed May 19, 2024
1 parent a3703fb commit 91326a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clean-e:
clean: clean-build clean-pyc clean-so clean-ctags clean-cache clean-e

inplace:
@python -m pip install -e .[dev]
@python -m pip install -e ".[dev]"

test:
@echo "Running tests"
Expand Down
10 changes: 10 additions & 0 deletions mne_bids/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,13 @@ def monkeypatch_mne():
"mne",
"mne_bids",
)


@pytest.fixture(autouse=True)
def close_all():
"""Close all matplotlib plots, regardless of test status."""
# This adds < 1 µS in local testing, and we have ~2500 tests, so ~2 ms max
import matplotlib.pyplot as plt

yield
plt.close("all")

0 comments on commit 91326a6

Please sign in to comment.