Skip to content

Commit 1f2d16a

Browse files
mroeschkemeeseeksmachine
authored andcommitted
Backport PR pandas-dev#56093: CI: Catch EncodingWarnings only in pandas
1 parent 3db1b22 commit 1f2d16a

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
@@ -481,7 +481,9 @@ filterwarnings = [
481481
"error::ResourceWarning",
482482
"error::pytest.PytestUnraisableExceptionWarning",
483483
# TODO(PY311-minimum): Specify EncodingWarning
484-
"ignore:'encoding' argument not specified.::numpy",
484+
# Ignore 3rd party EncodingWarning but raise on pandas'
485+
"ignore:.*encoding.* argument not specified",
486+
"error:.*encoding.* argument not specified::pandas",
485487
"ignore:.*ssl.SSLSocket:pytest.PytestUnraisableExceptionWarning",
486488
"ignore:.*ssl.SSLSocket:ResourceWarning",
487489
# GH 44844: Can remove once minimum matplotlib version >= 3.7

0 commit comments

Comments
 (0)