From ceb58e9b8874905f343c734361a0367d04c9cb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 13 May 2014 18:04:39 +0200 Subject: [PATCH] 7659: SyntaxError with python3 on 'gramps.gen.db.test.grampsdbtestbase' --- gramps/gen/db/test/grampsdbtestbase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gen/db/test/grampsdbtestbase.py b/gramps/gen/db/test/grampsdbtestbase.py index 024cf90c3..68cbe0e15 100644 --- a/gramps/gen/db/test/grampsdbtestbase.py +++ b/gramps/gen/db/test/grampsdbtestbase.py @@ -31,6 +31,8 @@ from gramps.cli.clidbman import CLIDbManager from gramps.gen.lib import (Source, RepoRef, Citation, Repository, Person, Family, Event, Place, MediaObject) +from gramps.gen.constfunc import cuni + class GrampsDbBaseTest(unittest.TestCase): """Base class for unittest that need to be able to create test databases.""" @@ -42,7 +44,7 @@ class GrampsDbBaseTest(unittest.TestCase): self._db = DbBsddb() dbman = CLIDbManager(None) - self._filename, title = dbman.create_new_db_cli(title=u"Test") + self._filename, title = dbman.create_new_db_cli(title=cuni("Test")) self._db.load(self._filename, dummy_callback, "w") def tearDown(self):