Use string when setting config option in tests

Since issue8840, ConfigParser is used and enforces to set only string values.
This commit is contained in:
Cédric Krier committed 2019-11-22 00:24:49 +01:00
1 parent 90914d3e79
commit 3e4bac334d
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ class NotificationEmailTestCase(ModuleTestCase):
def setUp(self):
super(NotificationEmailTestCase, self).setUp()
reset_from = config.get('email', 'from')
reset_from = config.get('email', 'from', default='')
config.set('email', 'from', FROM)
self.addCleanup(lambda: config.set('email', 'from', reset_from))