Skip to content

Commit

Permalink
Reraise numba import errors for GMS5 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Jul 7, 2023
1 parent 3aa03fc commit f8f6dd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions satpy/tests/reader_tests/gms/test_gms5_vissr_l1b.py
Expand Up @@ -18,9 +18,10 @@
import satpy.readers.gms.gms5_vissr_format as fmt
import satpy.readers.gms.gms5_vissr_l1b as vissr
import satpy.readers.gms.gms5_vissr_navigation as nav
except ImportError:
except ImportError as err:
if skip_numba_unstable_if_missing():
pytest.skip("Numba is not compatible with unstable NumPy", allow_module_level=True)
pytest.skip(f"Numba is not compatible with unstable NumPy: {err!s}", allow_module_level=True)
raise

Check warning on line 24 in satpy/tests/reader_tests/gms/test_gms5_vissr_l1b.py

View check run for this annotation

Codecov / codecov/patch

satpy/tests/reader_tests/gms/test_gms5_vissr_l1b.py#L24

Added line #L24 was not covered by tests


@pytest.fixture(params=[False, True], autouse=True)
Expand Down
5 changes: 3 additions & 2 deletions satpy/tests/reader_tests/gms/test_gms5_vissr_navigation.py
Expand Up @@ -7,9 +7,10 @@

try:
import satpy.readers.gms.gms5_vissr_navigation as nav
except ImportError:
except ImportError as err:
if skip_numba_unstable_if_missing():
pytest.skip("Numba is not compatible with unstable NumPy", allow_module_level=True)
pytest.skip(f"Numba is not compatible with unstable NumPy: {err!s}", allow_module_level=True)
raise

Check warning on line 13 in satpy/tests/reader_tests/gms/test_gms5_vissr_navigation.py

View check run for this annotation

Codecov / codecov/patch

satpy/tests/reader_tests/gms/test_gms5_vissr_navigation.py#L13

Added line #L13 was not covered by tests

# Navigation references computed with JMA's Msial library (files
# VISSR_19960217_2331_IR1.A.IMG and VISSR_19960217_2331_VIS.A.IMG). The VIS
Expand Down

0 comments on commit f8f6dd6

Please sign in to comment.