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

This commit is contained in:
Jérôme Rapinat 2014-05-13 18:04:39 +02:00
parent b198082790
commit ceb58e9b88

View File

@ -31,6 +31,8 @@ from gramps.cli.clidbman import CLIDbManager
from gramps.gen.lib import (Source, RepoRef, Citation, Repository, Person, from gramps.gen.lib import (Source, RepoRef, Citation, Repository, Person,
Family, Event, Place, MediaObject) Family, Event, Place, MediaObject)
from gramps.gen.constfunc import cuni
class GrampsDbBaseTest(unittest.TestCase): class GrampsDbBaseTest(unittest.TestCase):
"""Base class for unittest that need to be able to create """Base class for unittest that need to be able to create
test databases.""" test databases."""
@ -42,7 +44,7 @@ class GrampsDbBaseTest(unittest.TestCase):
self._db = DbBsddb() self._db = DbBsddb()
dbman = CLIDbManager(None) 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") self._db.load(self._filename, dummy_callback, "w")
def tearDown(self): def tearDown(self):