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
563318063b
commit
77330b7e59
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user