From baf342a6aa31b54b544db87e30f518303a53f5b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Defferrard?= Date: Fri, 28 Dec 2018 19:37:56 +0100 Subject: [PATCH] test: use matplotlib agg backend Fix the RecursionError with Python 3.6 when creating many matplotlib figures. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ad14c09..d49ae68e 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,11 @@ clean: lint: flake8 --doctests --exclude=doc -test: export DISPLAY = :99 +# Matplotlib doesn't print to screen. Also faster. +export MPLBACKEND = agg +# Virtual framebuffer nonetheless needed for the pyqtgraph backend. +export DISPLAY = :99 + test: Xvfb $$DISPLAY -screen 0 800x600x24 & coverage run --branch --source pygsp setup.py test