From 09244d037dcdd727e7d8ba46c8beb1c68ca462b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 13 May 2014 18:02:42 +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 930b54cb8..5cfe0d743 100644 --- a/gramps/gen/db/test/grampsdbtestbase.py +++ b/gramps/gen/db/test/grampsdbtestbase.py @@ -29,6 +29,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.""" @@ -40,7 +42,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):