[FIX] core: ignore urllib3 pyopenssl warning

X-original-commit: 160c8acdf6e50659ec316bb36df9ea9c996ba16d
Part-of: odoo/odoo#113354
This commit is contained in:
Christophe Monniez
2023-02-22 12:43:00 +01:00
parent bcf9ba01dc
commit 650d8a116f
+2
View File
@@ -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