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:
1 parent
90914d3e79
commit
3e4bac334d
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user