Skip to content

Commit

Permalink
add xfail to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joleroi committed Mar 25, 2016
1 parent ae9e624 commit f9883a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions regions/io/tests/test_ds9_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit f9883a3

Please sign in to comment.