diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 4e600bc3..1ebdeed6 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -12,13 +12,13 @@ from ocrmypdf import ExitCode from .conftest import run_ocrmypdf_api -@pytest.mark.skipif(True, reason="--use-threads is currently default") @pytest.mark.skipif(os.name == 'nt', reason="Windows doesn't have SIGKILL") def test_simulate_oom_killer(multipage, no_outpdf): exitcode = run_ocrmypdf_api( multipage, no_outpdf, '--force-ocr', + '--no-use-threads', '--plugin', 'tests/plugins/tesseract_simulate_oom_killer.py', ) diff --git a/tests/test_tesseract.py b/tests/test_tesseract.py index 69d18202..ceaf8d35 100644 --- a/tests/test_tesseract.py +++ b/tests/test_tesseract.py @@ -59,7 +59,7 @@ def test_content_preservation(resources, outpdf): @pytest.mark.skipif( - tesseract.version() > tesseract.TesseractVersion('5'), reason="doesn't fool Tess 5" + tesseract.version() >= tesseract.TesseractVersion('5'), reason="doesn't fool Tess 5" ) def test_no_languages(tmp_path, monkeypatch): (tmp_path / 'tessdata').mkdir()