From acad43fa05202c8d0ec33e50bcca7825c04d1dd8 Mon Sep 17 00:00:00 2001 From: Josh Carmichael Date: Tue, 1 Oct 2024 15:19:14 -0400 Subject: [PATCH 1/2] Resolve matplotlib warning. --- tests/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index c7617d28a8..040f427758 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -397,6 +397,11 @@ def matplotlib_no_gui(): with warnings.catch_warnings(): warnings.filterwarnings("ignore", r"Matplotlib is currently using agg.*") + # Ignore the specific UserWarning about non-interactive FigureCanvasAgg + warnings.filterwarnings( + "ignore", r"FigureCanvasAgg is non-interactive, and thus cannot be shown" + ) + yield # Explicitly close all figures before making backend changes. From b7ca523d3b9566d3ce05a82871adf12bb608cdca Mon Sep 17 00:00:00 2001 From: Josh Carmichael Date: Tue, 1 Oct 2024 15:20:39 -0400 Subject: [PATCH 2/2] Increase FLE test tolerance to 30% --- tests/test_FLEbasis2D.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_FLEbasis2D.py b/tests/test_FLEbasis2D.py index 160f95e1b7..94ea9c4316 100644 --- a/tests/test_FLEbasis2D.py +++ b/tests/test_FLEbasis2D.py @@ -76,7 +76,7 @@ class TestFLEBasis2D(UniversalBasisMixin): if backend_available("cufinufft"): test_eps = 1.15 elif platform.system() == "Darwin": - test_eps = 1.20 + test_eps = 1.30 # check closeness guarantees for fast vs dense matrix method def testFastVDense_T(self, basis):