From 3e4bac334db4d9511f433280b9526d70424240da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Nov 2019 00:24:49 +0100 Subject: [PATCH] Use string when setting config option in tests Since issue8840, ConfigParser is used and enforces to set only string values. --- tests/test_notification_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_notification_email.py b/tests/test_notification_email.py index b1d0ac4813..262bbd6d0b 100644 --- a/tests/test_notification_email.py +++ b/tests/test_notification_email.py @@ -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))