From 585efea8c8d44f181f05e67634531e1ca663fa49 Mon Sep 17 00:00:00 2001 From: sagar Date: Thu, 12 Mar 2026 01:30:07 +0530 Subject: [PATCH] tests: suppress RequestsDependencyWarning from requests/chardet requests <= 2.32.5 emits RequestsDependencyWarning when chardet >= 6 is installed. The upstream fix is not released yet, so the chardet < 6 pin remains. Suppress the warning in pytest configuration to avoid noisy test output. fix: #9433 --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b8355601a6..878552f1fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -150,6 +150,12 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" [tool.pytest.ini_options] markers = [] +filterwarnings = [ + # requests <= 2.32.5 emits RequestsDependencyWarning when chardet >= 6 is installed. + # Keep the chardet < 6 pin in requirements.d/development.txt until the upstream fix + # in requests is released; suppress the noisy warning during tests in the meantime. + "ignore::requests.exceptions.RequestsDependencyWarning", +] [tool.mypy] python_version = "3.10"