Skip to content

Commit

Permalink
Really print a lot of things when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Dec 6, 2020
1 parent b4e0619 commit 5c91212
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion weasyprint/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ def document_write_png(self, target=None, resolution=96, antialiasing=1):

# TODO: use a different way to find PNG files in stream
magic_numbers = pngs.count(MAGIC_NUMBER)
assert magic_numbers >= 1, (result, result.stderr, pdf, ' '.join(command))
if magic_numbers < 1:
print(result)
print(result.stderr)
print(pdf)
print(' '.join(command))
print(run(['gs', '-version']))
assert False
if magic_numbers == 1:
if target is None:
return pngs
Expand Down

0 comments on commit 5c91212

Please sign in to comment.