Skip to content

Commit

Permalink
Skip test for Matplotlib <1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed May 23, 2016
1 parent 6e94e8c commit 3757f89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion glue/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def make_skipper(module, label=None, version=None):
label='Astropy >= 0.4',
version='0.4')

MATPLOTLIB_GE_14_INSTALLED, requires_matplotlib_ge_14 = make_skipper('matplotlib',
label='Matplotlib >= 1.4',
version='1.4')

ASTRODENDRO_INSTALLED, requires_astrodendro = make_skipper('astrodendro')

SCIPY_INSTALLED, requires_scipy = make_skipper('scipy',
Expand Down Expand Up @@ -90,4 +94,4 @@ def make_file(contents, suffix, decompress=False):
try:
os.unlink(fname)
except WindowsError: # on Windows the unlink can fail
pass
pass
2 changes: 2 additions & 0 deletions glue/viewers/image/qt/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
from glue.core import Data
from glue.viewers.image.qt import ImageWidget
from glue.core.tests.util import simple_session
from glue.tests.helpers import requires_matplotlib_ge_14


@requires_matplotlib_ge_14
@pytest.mark.mpl_image_compare(tolerance=1, savefig_kwargs={'dpi': 50})
def test_resample_on_zoom():

Expand Down

0 comments on commit 3757f89

Please sign in to comment.