From 77330b7e593c483a2a183fbb060685df92c4b8aa 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_ldap_authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ldap_authentication.py b/tests/test_ldap_authentication.py index 3d8c085458..36da612ec2 100644 --- a/tests/test_ldap_authentication.py +++ b/tests/test_ldap_authentication.py @@ -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)