Skip to content

Commit 9511c51

Browse files
committed
Use matplotlibrc file to force Agg backend in tests
This will avoid errors in tests that need a rendered plot. It might not be the best way to force the Agg backend, but seems like the obvious way to do it. I'd rather not keep the file in the root directory of the package because lots of times I plot from within that directory and it would lead to confusing issues.
1 parent c51ba78 commit 9511c51

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ export SHELL := /bin/bash
22

33
test:
44

5+
cp testing/matplotlibrc .
56
nosetests --with-doctest
67
python ipnbdoctest.py examples/*.ipynb
8+
rm matplotlibrc
79

810

911
coverage:
1012

13+
cp testing/matplotlibrc .
1114
nosetests --cover-erase --with-coverage --cover-html --cover-package seaborn
15+
rm matplotlibrc
1216

1317
lint:
1418

0 commit comments

Comments
 (0)