test: workaround for imaplib behaviour

an empty string appears after each literal string.

Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@gmx.fr>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Pierre-Louis Bonicoli 2015-03-23 17:48:43 +01:00 committed by Nicolas Sebrecht
parent ecc2af9f99
commit ff069e1d86

View File

@ -148,6 +148,8 @@ class OLITestLib():
assert res_t == 'OK'
dirs = []
for d in data:
if d == '':
continue
if isinstance(d, tuple):
# literal (unquoted)
folder = b'"%s"' % d[1].replace('"', '\\"')