Skip to content

Commit 8b3aaa9

Browse files
committed
FIX: Fix test
1 parent 4bf9d5c commit 8b3aaa9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nibabel/tests/test_viewers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
import numpy as np
1111
from collections import namedtuple as nt
1212

13+
try:
14+
import matplotlib
15+
matplotlib.use('agg')
16+
except Exception:
17+
pass
18+
1319
from ..optpkg import optional_package
1420
from ..viewers import OrthoSlicer3D
1521

0 commit comments

Comments
 (0)