Skip to content

Commit

Permalink
Attempting to switch matplotlib backend to 'agg' for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Feb 28, 2015
1 parent a2217fd commit 2b52af2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import os, sys

# Standardize backend due to random inconsistencies
from matplotlib import pyplot
pyplot.switch_backend('agg')

cwd = os.path.abspath(os.path.split(__file__)[0])
sys.path.insert(0, os.path.join(cwd, '..'))

0 comments on commit 2b52af2

Please sign in to comment.