Skip to content

Commit a83f731

Browse files
authored
properly ignore some warnings (#164)
* remove the ineffective filter * silence the warnings in pytest config
1 parent 8d870d6 commit a83f731

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,8 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
110110
[tool.pytest.ini_options]
111111
filterwarnings = [
112112
"error:::xdggs.*",
113+
# weird cython error, see https://github.com/Unidata/netcdf4-python/issues/1354
114+
"ignore:numpy.ndarray size changed",
115+
# traitlets deprecation
116+
"ignore:.*is deprecated in traitlets:DeprecationWarning",
113117
]

xdggs/tests/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import warnings
2-
31
import geoarrow.pyarrow as ga
42
import shapely
53

@@ -9,8 +7,6 @@
97
assert_exceptions_equal,
108
)
119

12-
warnings.filterwarnings("ignore", message="numpy.ndarray size changed")
13-
1410

1511
def geoarrow_to_shapely(arr):
1612
return shapely.from_wkb(ga.as_wkb(arr))

0 commit comments

Comments
 (0)