Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa275c6

Browse files
committed
TST: add test of tkagg backend import
Check that we can correctly import tkagg on travis and appveyor.
1 parent de99a76 commit aa275c6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ script:
123123
# Travis VM to run out of memory (since so many copies of inkscape and
124124
# ghostscript are running at the same time).
125125
- |
126+
echo Testing import of tkagg backend
127+
MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())'
126128
echo Testing using $NPROC processes
127129
echo The following args are passed to nose $NOSE_ARGS
128130
if [[ $BUILD_DOCS == false ]]; then

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ install:
8787
test_script:
8888
# Now build the thing..
8989
- '%CMD_IN_ENV% python setup.py develop'
90+
# Test import of tkagg backend
91+
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
9092
# tests
9193
- python tests.py
9294
# remove to get around libpng issue?

0 commit comments

Comments
 (0)