diff --git a/pyproject.toml b/pyproject.toml index 226c8469..9e92bbff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ namespaces = false 'regions' = [ 'CITATION.rst', ] -'regions.shape.tests' = [ +'regions.shapes.tests' = [ 'reference/*.txt', 'data/*.fits', ] @@ -105,7 +105,7 @@ norecursedirs = [ astropy_header = true doctest_plus = 'enabled' text_file_format = 'rst' -addopts = '--color=yes --doctest-rst' +addopts = '--color=yes --doctest-rst --arraydiff' xfail_strict = true remote_data_strict = true filterwarnings = [ diff --git a/regions/shapes/tests/test_masks.py b/regions/shapes/tests/test_masks.py index 16e00bd9..8c68a167 100644 --- a/regions/shapes/tests/test_masks.py +++ b/regions/shapes/tests/test_masks.py @@ -42,7 +42,7 @@ def label(value): for key, value in sorted(value.items())) -@pytest.mark.array_compare(fmt='text', write_kwargs={'fmt': '%12.8e'}) +@pytest.mark.array_compare(file_format='text', write_kwargs={'fmt': '%12.8e'}) @pytest.mark.parametrize(('region', 'mode'), itertools.product(REGIONS, MODES), ids=label) def test_to_mask(region, mode): @@ -51,3 +51,4 @@ def test_to_mask(region, mode): except NotImplementedError: pytest.xfail() assert isinstance(mask, RegionMask) + return mask.data.astype(float)