mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-04 07:57:52 +03:00
Capture stderr for tests
This commit is contained in:
parent
a994d32be3
commit
b7217e034f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user