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 563318063b
commit 77330b7e59
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ class LDAPAuthenticationTestCase(ModuleTestCase):
def setUp(self):
super(LDAPAuthenticationTestCase, self).setUp()
methods = config.get('session', 'authentications')
methods = config.get('session', 'authentications', default='')
config.set('session', 'authentications', 'ldap')
self.addCleanup(config.set, 'session', 'authentications', methods)
config.add_section(section)