Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Commit 3626f8e

Browse files
committed
Explicitly ignore docling garbage collection exception
Signed-off-by: Ben Browning <bbrownin@redhat.com>
1 parent 91319df commit 3626f8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_chunkers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def test_chunker_factory_empty_document_paths(tokenizer_model_name):
5757
)
5858

5959

60+
# Some versions of Docling throw an exception in garbage collection that would
61+
# normally be ignored entirely, but when running py3-unitcov tests this gets
62+
# logged and fails the test. So, explicitly ignore it here.
63+
@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning")
6064
def test_resolve_ocr_options_is_not_none():
6165
"""
6266
Test that resolve_ocr_options does not return None, which means it

0 commit comments

Comments
 (0)