summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJames R. Barlow <james@purplerock.ca>2022-04-14 20:15:00 -0700
committerJames R. Barlow <james@purplerock.ca>2022-04-14 20:15:00 -0700
commitb00fe3dc5d1e17b1aea9ae8130f1d32f22cbee74 (patch)
tree64c527e65079b6c1965ee93392d54f89a919693e
parente6aa3a42990d3b3c8f7d1610b471d7b5b61c99c2 (diff)
downloadocrmypdf-b00fe3dc5d1e17b1aea9ae8130f1d32f22cbee74.tar.gz
pytest.skip() - remove kwarg entirely, to avoid breaking older pytest and not getting warns from newer pytest
-rw-r--r--tests/test_metadata.py2
-rw-r--r--tests/test_stdio.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py
index e9cdf21d..cde1e60c 100644
--- a/tests/test_metadata.py
+++ b/tests/test_metadata.py
@@ -188,7 +188,7 @@ def test_xml_metadata_preserved(test_file, output_type, resources, outpdf):
try:
from libxmp.utils import file_to_dict # pylint: disable=import-outside-toplevel
except Exception: # pylint: disable=broad-except
- pytest.skip(reason="libxmp not available or libexempi3 not installed")
+ pytest.skip("libxmp not available or libexempi3 not installed")
before = file_to_dict(str(input_file))
diff --git a/tests/test_stdio.py b/tests/test_stdio.py
index 367dc6f4..a57c713a 100644
--- a/tests/test_stdio.py
+++ b/tests/test_stdio.py
@@ -35,7 +35,7 @@ def test_stdin(ocrmypdf_exec, resources, outpdf):
def test_stdout(ocrmypdf_exec, resources, outpdf):
if 'COV_CORE_DATAFILE' in os.environ:
- pytest.skip(reason="Coverage uses stdout")
+ pytest.skip("Coverage uses stdout")
input_file = str(resources / 'francais.pdf')
output_file = str(outpdf)
@@ -72,7 +72,7 @@ def test_bad_locale(monkeypatch):
)
def test_dev_null(resources):
if 'COV_CORE_DATAFILE' in os.environ:
- pytest.skip(reason="Coverage uses stdout")
+ pytest.skip("Coverage uses stdout")
p = run_ocrmypdf(
resources / 'trivial.pdf',