From 9fa471e05373e7d50ea9f76a5d0c522fedd4ba0b Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 3 Oct 2018 14:23:34 -0700 Subject: [PATCH] Test: send stderr to stderr, why don't we? --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"