Skip to content

Commit

Permalink
fix suppress error in conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed Jul 22, 2022
1 parent 2575402 commit 7c78336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mne/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ def _use_backend(backend_name, interactive):
try:
yield renderer
finally:
renderer.backend._close_all()
try: # remove when pyvista 0.35.2 patch is released
renderer.backend._close_all()
except Exception:
pass


def _check_skip_backend(name):
Expand Down
2 changes: 1 addition & 1 deletion mne/viz/backends/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def close_3d_figure(figure):

def close_all_3d_figures():
"""Close all the scenes of the current 3d backend."""
try:
try: # remove when pyvista 0.35.2 patch is released
backend._close_all()
except Exception:
pass
Expand Down

0 comments on commit 7c78336

Please sign in to comment.