cpnest: set MPLBACKEND when testing cpnest.plot import
@@ -37,9 +37,14 @@ test:
- cpnest.model
- cpnest.nest2pos
- cpnest.parameter
- - cpnest.plot
- cpnest.proposal
- cpnest.sampler
+ commands:
+ # cpnest.plot imports matplotlib.pyplot but doesn't force
+ # a non-interactive backend (which is fine | DMM)
+ - setx MPLBACKEND "Agg" # [win]
+ - export MPLBACKEND="Agg" # [unix]
+ - python -c "import cpnest.plot"
about:
home: "https://github.com/johnveitch/cpnest"
