From b928dc0808e580674faf9e58ddfe7d4459812f8b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 16 Oct 2023 00:41:25 -0700 Subject: [PATCH] Skip fewer tests --- tests/test_concurrency.py | 2 +- tests/test_tesseract.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()