From 906d77b389f76c9600c2f03c6a224bc913a7ec08 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 7 Apr 2021 02:25:10 -0700 Subject: [PATCH] tests: remove obsolete running_in_travis() --- tests/conftest.py | 4 ---- tests/test_main.py | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index bae8f5be..9a059c83 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -36,10 +36,6 @@ def running_in_docker(): return Path('/.dockerenv').exists() or Path('/.dockerinit').exists() -def running_in_travis(): - return os.environ.get('TRAVIS') == 'true' - - def have_unpaper(): try: unpaper.version() diff --git a/tests/test_main.py b/tests/test_main.py index 4f5aedcf..0d827fa3 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -32,7 +32,6 @@ from .conftest import ( run_ocrmypdf, run_ocrmypdf_api, running_in_docker, - running_in_travis, ) # pylint: disable=redefined-outer-name @@ -214,8 +213,8 @@ def test_force_ocr_on_pdf_with_no_images(resources, no_outpdf): @pytest.mark.skipif( - is_macos() and running_in_travis(), - reason="takes too long to install language packs in Travis macOS homebrew", + is_macos(), + reason="takes too long to install language packs in macOS homebrew", ) def test_german(resources, outdir): # Produce a sidecar too - implicit test that system locale is set up