cedadev / cis

Home of the Community Intercomparison Suite.
www.cistools.net
GNU Lesser General Public License v3.0
46 stars 18 forks source link

Ensure unit tests don't require a display #2

Closed zak-k closed 8 years ago

zak-k commented 9 years ago

On many installations the default matplotlib backend is something like TkAgg, which will produce an error if no display is available, even if you never try to show anything on it.

This patch forces the use of the headless "Agg" backend for the tests, which ensures that they will run without a display (i.e. on X11 systems, if $DISPLAY is unset).