diff --git a/nireports/tests/test_reportlets.py b/nireports/tests/test_reportlets.py index d1a32640..8095c612 100644 --- a/nireports/tests/test_reportlets.py +++ b/nireports/tests/test_reportlets.py @@ -27,6 +27,7 @@ from itertools import permutations from pathlib import Path +import matplotlib.pyplot as plt import nibabel as nb import numpy as np import pandas as pd @@ -127,6 +128,8 @@ def test_carpetplot(tr, sorting, outdir): sort_rows=sorting, ) + plt.close() + @pytest.mark.parametrize( "input_files",