Unverified Commit 4d9b5532 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

Merge: nixos test driver: drop wrong assertion (#431708)

parents 76e9d22f 6fe959f8
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -12,10 +12,7 @@ def perform_ocr_on_screenshot(screenshot_path: Path) -> str:
    Perform OCR on a screenshot that contains text.
    Returns a string with all words that could be found.
    """
    variants = perform_ocr_variants_on_screenshot(screenshot_path, False)[0]
    if len(variants) != 1:
        raise MachineError(f"Received wrong number of OCR results: {len(variants)}")
    return variants[0]
    return perform_ocr_variants_on_screenshot(screenshot_path, False)[0]


def perform_ocr_variants_on_screenshot(