From 650d8a116fe554468fac2b9c811c7797e9e1943e Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 17 Jan 2023 10:59:05 +0000 Subject: [PATCH] [FIX] core: ignore urllib3 pyopenssl warning X-original-commit: 160c8acdf6e50659ec316bb36df9ea9c996ba16d Part-of: odoo/odoo#113354 --- odoo/netsvc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odoo/netsvc.py b/odoo/netsvc.py index 3db2319c971..9a4db8f6bf2 100644 --- a/odoo/netsvc.py +++ b/odoo/netsvc.py @@ -146,6 +146,8 @@ def init_logger(): # recordsets are both sequence and set so trigger warning despite no issue # Only applies to 3.9 as it was fixed in 3.10 see https://bugs.python.org/issue42470 warnings.filterwarnings('ignore', r'^Sampling from a set', category=DeprecationWarning, module='odoo') + # https://github.com/urllib3/urllib3/issues/2680 + warnings.filterwarnings('ignore', r'^\'urllib3.contrib.pyopenssl\' module is deprecated.+', category=DeprecationWarning) # ignore a bunch of warnings we can't really fix ourselves for module in [ 'babel.util', # deprecated parser module, no release yet