Skip to content

Commit

Permalink
Remove irrelevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Oct 22, 2024
1 parent 3c07255 commit 2bef729
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pyresample/test/test_resample_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ def setup_method(self):
(-2717181.7304994687, -5571048.14031214,
1378818.2695005313, -1475048.1403121399))

def test_resample_blocks_advises_on_using_mapblocks_when_source_and_destination_areas_are_the_same(self):
"""Test resample_blocks advises on using map_blocks when the source and destination areas are the same."""
from pyresample.resampler import resample_blocks

def fun(data):
return data

some_array = da.random.random(self.src_area.shape)
with pytest.raises(ValueError) as excinfo:
resample_blocks(fun, self.src_area, [some_array], self.src_area)
assert "map_blocks" in str(excinfo.value)

def test_resample_blocks_returns_array_with_destination_area_shape(self):
"""Test resample_blocks returns array with the shape of the destination area."""
from pyresample.resampler import resample_blocks
Expand Down

0 comments on commit 2bef729

Please sign in to comment.