From 8fc505afdb1a51ccedc9fda2d9df0651f020c12f Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 12 Dec 2020 22:54:57 +0100 Subject: [PATCH] Try to always read input in blocks --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 226e348a..cac0ca75 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -25,7 +25,7 @@ def document_write_png(self, target=None, resolution=96, antialiasing=1): command = [ 'gs', '-q', '-dNOPAUSE', '-dSAFER', f'-dTextAlphaBits={antialiasing}', f'-dGraphicsAlphaBits={antialiasing}', '-sDEVICE=png16m', - f'-r{resolution}', '-sOutputFile=-', '-'] + f'-r{resolution}', '-sOutputFile=-', '-_'] pngs = run(command, input=self.write_pdf(), stdout=PIPE).stdout assert pngs.startswith(MAGIC_NUMBER), (