changeset 372:ac3e3cd6faae

FIX: 4ff02a4f401a made a somewhat wrong fix for Python 2.7: now the real fix takes into account that all text types are supposed to be Unicode in Python 2
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 11 Jul 2021 16:43:14 +0200
parents 873b9d2ecb0b
children 0c65aac81807
files tests/test.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test.py	Sun Jul 11 16:39:19 2021 +0200
+++ b/tests/test.py	Sun Jul 11 16:43:14 2021 +0200
@@ -460,7 +460,7 @@
     def test17_getintvar_s_with_default(self):
         cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml"))
         self.assertFalse(cfg.getboolvar_s("non.existing.key",
-                                          default=False))
+                                          default=u('false')))
 
     def test18_getfirstvar_nonexisting(self):
         cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml"))