From d4e9833279327ae98092674a470db19bfde33456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 12:34:50 +0200 Subject: [PATCH] Removed extra characters this patch removes extra \, (). --- test/OLItest/TestRunner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/OLItest/TestRunner.py b/test/OLItest/TestRunner.py index 8d5ca5b..5af5078 100644 --- a/test/OLItest/TestRunner.py +++ b/test/OLItest/TestRunner.py @@ -26,7 +26,7 @@ from . import default_conf random.seed() -class OLITestLib(): +class OLITestLib: cred_file = None testdir = None """Absolute path of the current temporary test directory""" @@ -114,8 +114,8 @@ class OLITestLib(): "-c%s" % os.path.join(cls.testdir, 'offlineimap.conf')], shell=False) except subprocess.CalledProcessError as e: - return (e.returncode, e.output.decode('utf-8')) - return (0, output.decode('utf-8')) + return e.returncode, e.output.decode('utf-8') + return 0, output.decode('utf-8') @classmethod def delete_remote_testfolders(cls, reponame=None): @@ -126,7 +126,7 @@ class OLITestLib(): if reponame: sections = ['Repository {0}'.format(reponame)] else: - sections = [r for r in config.sections() \ + sections = [r for r in config.sections() if r.startswith('Repository')] sections = [s for s in sections if config.get(s, 'Type').lower() == 'imap'] for sec in sections: