diff --git a/test_unstructured/partition/pdf_image/test_ocr.py b/test_unstructured/partition/pdf_image/test_ocr.py index 4ab2ce173a..6f13d3dd10 100644 --- a/test_unstructured/partition/pdf_image/test_ocr.py +++ b/test_unstructured/partition/pdf_image/test_ocr.py @@ -142,7 +142,7 @@ def test_get_ocr_layout_from_image_tesseract_filters_predictions_below_confidenc }, ), ) - monkeypatch.setenv("TESSERACT_CONFIDENCE_THRESHOLD", confidence_threshold) + monkeypatch.setenv("TESSERACT_CONFIDENCE_THRESHOLD", str(confidence_threshold)) image = Image.new("RGB", (100, 100))