Coverage for adhoc-cicd-odoo-odoo / odoo / _monkeypatches / bs4.py: 86%
5 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-09 18:05 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-09 18:05 +0000
1import bs4
2import warnings
5def patch_module():
6 if hasattr(bs4, 'XMLParsedAsHTMLWarning'): 6 ↛ exitline 6 didn't return from function 'patch_module' because the condition on line 6 was always true
7 # ofxparse use an html parser to parse ofx xml files and triggers a
8 # warning since bs4 4.11.0 https://github.com/jseutter/ofxparse/issues/170
9 warnings.filterwarnings('ignore', category=bs4.XMLParsedAsHTMLWarning)