Skip to content

Commit

Permalink
Add more test skips when numba is involved
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jun 28, 2024
1 parent 9070f29 commit 6875ebb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions satpy/tests/scene_tests/test_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
from dask import array as da

from satpy import Scene
from satpy.tests.reader_tests.utils import skip_numba_unstable_if_missing

# NOTE:
# The following fixtures are not defined in this file, but are used and injected by Pytest:
# - include_test_etc

skip_unstable_numba = pytest.mark.skipif(skip_numba_unstable_if_missing(),
reason="Numba is not compatible with unstable NumPy: {err!s}")


@pytest.mark.usefixtures("include_test_etc")
class TestSceneSerialization:
Expand Down Expand Up @@ -83,6 +87,7 @@ def test_geoviews_basic_with_swath(self):
# we assume that if we got something back, geoviews can use it
assert gv_obj is not None

@skip_unstable_numba
def test_hvplot_basic_with_area(self):
"""Test converting a Scene to hvplot with a AreaDefinition."""
from pyresample.geometry import AreaDefinition
Expand All @@ -97,6 +102,7 @@ def test_hvplot_basic_with_area(self):
# we assume that if we got something back, hvplot can use it
assert hv_obj is not None

@skip_unstable_numba
def test_hvplot_rgb_with_area(self):
"""Test converting a Scene to hvplot with a AreaDefinition."""
from pyresample.geometry import AreaDefinition
Expand All @@ -117,6 +123,7 @@ def test_hvplot_rgb_with_area(self):
# we assume that if we got something back, hvplot can use it
assert hv_obj is not None

@skip_unstable_numba
def test_hvplot_basic_with_swath(self):
"""Test converting a Scene to hvplot with a SwathDefinition."""
from pyresample.geometry import SwathDefinition
Expand Down

0 comments on commit 6875ebb

Please sign in to comment.