Skip to content

Commit

Permalink
test: use matplotlib agg backend
Browse files Browse the repository at this point in the history
Fix the RecursionError with Python 3.6 when creating many matplotlib
figures.
  • Loading branch information
mdeff committed Dec 29, 2018
1 parent 3714d53 commit baf342a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baf342a

Please sign in to comment.