summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_kolabd
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2022-08-12 09:56:45 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-08-12 09:57:00 +0200
commite02d1240e6586d2950a3f8ad760b2225af07d0ad (patch)
tree0e77fb69f00e4f31e08e84126a9ae6dc0a8c737e /tests/functional/test_kolabd
parent289cf24e653f3186fb8066b7f8c0e8822601af42 (diff)
downloadpykolab-e02d1240e6586d2950a3f8ad760b2225af07d0ad.tar.gz
[Python 3]exec to eval where exec(" var = ...")
Summary: All exec() with (var = ...) exec() with (import ... ) or with (self.var = ..) or just with (function()) should work out of the box. If not worked as expected, they could be grouped and put into other diff s. Reviewers: #pykolab_developers, sicherha Reviewed By: #pykolab_developers, sicherha Differential Revision: https://git.kolab.org/D3638
Diffstat (limited to 'tests/functional/test_kolabd')
-rw-r--r--tests/functional/test_kolabd/test_001_user_sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/test_kolabd/test_001_user_sync.py b/tests/functional/test_kolabd/test_001_user_sync.py
index cf8d443..0652d23 100644
--- a/tests/functional/test_kolabd/test_001_user_sync.py
+++ b/tests/functional/test_kolabd/test_001_user_sync.py
@@ -85,7 +85,7 @@ class TestKolabDaemon(unittest.TestCase):
imap.connect()
ac_folders = conf.get_raw('kolab', 'autocreate_folders')
- exec("ac_folders = %s" % (ac_folders))
+ ac_folders = eval("%s" % (ac_folders))
folders = imap.lm('user/%(local)s/*@%(domain)s' % (self.user))
@@ -96,7 +96,7 @@ class TestKolabDaemon(unittest.TestCase):
imap.connect()
ac_folders = conf.get_raw('kolab', 'autocreate_folders')
- exec("ac_folders = %s" % (ac_folders))
+ ac_folders = eval("%s" % (ac_folders))
folders = []
folders.extend(imap.lm('user/%(local)s@%(domain)s' % (self.user)))