From 1f2d16a1fcc84b53811720cba7f6932ed6574357 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:36:19 -1000 Subject: [PATCH] Backport PR #56093: CI: Catch EncodingWarnings only in pandas --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b3b991010f9da..77b49d4474334 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -481,7 +481,9 @@ filterwarnings = [ "error::ResourceWarning", "error::pytest.PytestUnraisableExceptionWarning", # TODO(PY311-minimum): Specify EncodingWarning - "ignore:'encoding' argument not specified.::numpy", + # Ignore 3rd party EncodingWarning but raise on pandas' + "ignore:.*encoding.* argument not specified", + "error:.*encoding.* argument not specified::pandas", "ignore:.*ssl.SSLSocket:pytest.PytestUnraisableExceptionWarning", "ignore:.*ssl.SSLSocket:ResourceWarning", # GH 44844: Can remove once minimum matplotlib version >= 3.7