Merely importing the library and running under pytest
from doctr.io import DocumentFile
from doctr.models import ocr_predictor
gives
DeprecationWarning: defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead.
from . import cElementTree
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
From https://pypi.org/project/defusedxml/
NOTE defusedxml.cElementTree is deprecated and will be removed in a future release. Import from defusedxml.ElementTree instead.
Merely importing the library and running under pytest
gives
From
https://pypi.org/project/defusedxml/