From b7217e034f14517dd1dfed8a57291f736729f939 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 12 Dec 2020 00:42:09 +0100 Subject: [PATCH] Capture stderr for tests --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9000a3c3..f1f4087b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -30,7 +30,7 @@ def document_write_png(self, target=None, resolution=96, antialiasing=1): f'-dTextAlphaBits={antialiasing}', f'-dGraphicsAlphaBits={antialiasing}', '-sDEVICE=png16m', f'-r{resolution}', '-sOutputFile=-', '-'] - result = run(command, input=pdf, stdout=PIPE) + result = run(command, input=pdf, stdout=PIPE, stderr=PIPE) pngs = result.stdout # TODO: use a different way to find PNG files in stream