Skip to content

Commit

Permalink
TMP: update ignored warning lists in response to updates in cartopy
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 5, 2021
1 parent 56b32ea commit 43f6d75
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,8 @@ def pytest_configure(config):
)

if find_spec("cartopy") is not None:
# cartopy still triggers this numpy warning
# last checked with cartopy 0.19.0
config.addinivalue_line(
"filterwarnings",
(
"ignore:`np.float` is a deprecated alias for the builtin `float`. "
"To silence this warning, use `float` by itself. "
"Doing this will not modify any behavior and is safe. "
"If you specifically wanted the numpy scalar type, use `np.float64` here."
":DeprecationWarning: "
),
)
# this warning *still* shows up on cartopy 0.19 so we'll ignore it
# This can be removed when cartopy 0.21 is released
# see https://github.com/SciTools/cartopy/pull/1957
config.addinivalue_line(
"filterwarnings",
(
Expand Down

0 comments on commit 43f6d75

Please sign in to comment.