7659: SyntaxError with python3 on 'gramps.gen.db.test.grampsdbtestbase'

This commit is contained in:
Jérôme Rapinat 2014-05-13 18:02:42 +02:00
parent 3259255c38
commit 09244d037d

View File

@ -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):