From 433308e0f40ef07b92cceba6d46a47c725f8f227 Mon Sep 17 00:00:00 2001 From: JBC Date: Wed, 4 Dec 2024 11:36:28 -0300 Subject: [PATCH] force matplotlib agg backend on testing --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 92ad159..476c820 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,8 @@ import numpy as np +import matplotlib + import pytest # ============================================================================= @@ -74,6 +76,8 @@ def make(*, distribution="normal", **kwargs): # CONFIGURATIONS # ============================================================================= +matplotlib.use("agg") + def pytest_configure(): pytest.DISTRIBUTIONS = DISTRIBUTIONS