Skip to content

Commit

Permalink
Merge pull request #515 from larrybradley/array-cmp
Browse files Browse the repository at this point in the history
Remove unused array_compare tests
  • Loading branch information
larrybradley authored Nov 16, 2023
2 parents a793ed0 + fa7dddd commit a40a3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespaces = false
'regions' = [
'CITATION.rst',
]
'regions.shape.tests' = [
'regions.shapes.tests' = [
'reference/*.txt',
'data/*.fits',
]
Expand All @@ -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 = [
Expand Down
3 changes: 2 additions & 1 deletion regions/shapes/tests/test_masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -51,3 +51,4 @@ def test_to_mask(region, mode):
except NotImplementedError:
pytest.xfail()
assert isinstance(mask, RegionMask)
return mask.data.astype(float)

0 comments on commit a40a3ed

Please sign in to comment.