pytest.skip() - remove kwarg entirely, to avoid breaking older pytest and not getting warns from newer pytest

This commit is contained in:
James R. Barlow
2022-04-14 20:15:00 -07:00
parent e6aa3a4299
commit b00fe3dc5d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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))
+2 -2
View File
@@ -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',