Skip to content

Commit cb75ee2

Browse files
mroeschkephofl
authored andcommitted
CI: Catch EncodingWarnings only in pandas (pandas-dev#56093)
1 parent cc3cb3d commit cb75ee2

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)