diff --git a/tests/conftest.py b/tests/conftest.py index fc974d6c..2b5a90f7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -134,7 +134,8 @@ def check_ocrmypdf(input_file, output_file, *args, env=None): "Run ocrmypdf and confirmed that a valid file was created" p, out, err = run_ocrmypdf(input_file, output_file, *args, env=env) - print(err) # ensure py.test collects the output, use -s to view + # ensure py.test collects the output, use -s to view + print(err, file=sys.stderr) assert p.returncode == 0 assert os.path.exists(str(output_file)), "Output file not created" assert os.stat(str(output_file)).st_size > 100, "PDF too small or empty"