tests: check generated PDF using bytes (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 23:36:20 +01:00
parent 5793e5c509
commit dabe208677
1 changed files with 1 additions and 1 deletions

View File

@ -2898,7 +2898,7 @@ def test_transform_to_pdf():
instream = open(os.path.join(os.path.dirname(__file__), 'template.odt'), 'rb')
outstream = transform_to_pdf(instream)
assert outstream is not False
assert outstream.read(10).startswith('%PDF-')
assert outstream.read(10).startswith(b'%PDF-')
def test_export_to_model_image(pub):
formdef = FormDef()