1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00

Capture stderr for tests

This commit is contained in:
Guillaume Ayoub 2020-12-12 00:42:09 +01:00
parent a994d32be3
commit b7217e034f

View File

@ -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