From f9883a35ae37826cc3311851af6456ab65258c23 Mon Sep 17 00:00:00 2001 From: Johannes King Date: Fri, 25 Mar 2016 19:14:39 +0100 Subject: [PATCH] add xfail to tests --- regions/io/tests/test_ds9_language.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/regions/io/tests/test_ds9_language.py b/regions/io/tests/test_ds9_language.py index f8ac2c67..587b2e16 100644 --- a/regions/io/tests/test_ds9_language.py +++ b/regions/io/tests/test_ds9_language.py @@ -4,7 +4,14 @@ from ..write_ds9 import objects_to_ds9_string from astropy.utils.data import get_pkg_data_filename, get_pkg_data_filenames from astropy.tests.helper import pytest +import distutils.version as v +import astropy.version as astrov +_ASTROPY_MINVERSION = v.StrictVersion('1.1') +_ASTROPY_VERSION = v.StrictVersion(astrov.version) + +@pytest.mark.xfail(_ASTROPY_VERSION < _ASTROPY_MINVERSION, + reason='Some coordinates systems not available in older version of astropy') def test_read(): #Check that all test files including reference files are readable files = get_pkg_data_filenames('data')