test: fix python 3.8.4 related regression in T210-raw

It seems (at least in 3.8.4~rc1-1 on Debian) that set_content requires
at least one line.
This commit is contained in:
David Bremner 2020-07-03 07:23:32 -03:00
parent 4539d68e3b
commit e9f8ffd882

View file

@ -40,7 +40,7 @@ for pow in range(10,21):
msg['To'] = msg['From'] msg['To'] = msg['From']
msg['Message-Id'] = 'size-{:07d}@notmuch-test-suite'.format(size) msg['Message-Id'] = 'size-{:07d}@notmuch-test-suite'.format(size)
content = "" content = ""
msg.set_content("") msg.set_content("\n")
padding = size - len(bytes(msg)) padding = size - len(bytes(msg))
lines = [] lines = []
while padding > 0: while padding > 0: