Test: send stderr to stderr, why don't we?

This commit is contained in:
James R. Barlow
2018-10-03 14:23:34 -07:00
parent 31ef2fe907
commit 9fa471e053
+2 -1
View File
@@ -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"