Skip to content

Commit 1e1f53c

Browse files
authored
CI: Catch EncodingWarnings only in pandas (#56093)
1 parent 6a8370e commit 1e1f53c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ filterwarnings = [
487487
"error::ResourceWarning",
488488
"error::pytest.PytestUnraisableExceptionWarning",
489489
# TODO(PY311-minimum): Specify EncodingWarning
490-
"ignore:'encoding' argument not specified.::numpy",
490+
# Ignore 3rd party EncodingWarning but raise on pandas'
491+
"ignore:.*encoding.* argument not specified",
492+
"error:.*encoding.* argument not specified::pandas",
491493
"ignore:.*ssl.SSLSocket:pytest.PytestUnraisableExceptionWarning",
492494
"ignore:.*ssl.SSLSocket:ResourceWarning",
493495
# GH 44844: Can remove once minimum matplotlib version >= 3.7

0 commit comments

Comments
 (0)