Skip to content

Commit

Permalink
fix filterwarnings regex
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Jul 18, 2024
1 parent 5aa72ab commit 5a4d6a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_cslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
)


pytestmark = pytest.mark.filterwarnings(
# h5py: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0.
# Please use `prod` instead.:DeprecationWarning:h5py/_hl/dataset.py
"ignore:.*product.*:DeprecationWarning",
"ignore:.*invalid value encountered.*:RuntimeWarning",
)


def test_file_regex():
filename = (
"OPERA_L2_CSLC-S1_T113-241377-IW2_20240716T105712Z_20240717T073255Z_S1A_VV_v1.1"
Expand Down Expand Up @@ -66,14 +74,6 @@ def test_file_regex():
assert result == expected


pytestmark = pytest.mark.filterwarnings(
# h5py: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0.
# Please use `prod` instead.:DeprecationWarning:h5py/_hl/dataset.py
"ignore:.*product.*:DeprecationWarning",
"ignore:invalid value encountered in intersection:RuntimeWarning",
)


def test_get_radar_wavelength():
wvl = get_radar_wavelength(TEST_FILE)
assert wvl == 0.05546576
Expand Down

0 comments on commit 5a4d6a7

Please sign in to comment.