7657: 7648: SyntaxError with python3 on 'gramps.cli.test.cli_test'
This commit is contained in:
parent
09244d037d
commit
a58b0f601c
@ -26,6 +26,8 @@ import re
|
|||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from gramps.gen.constfunc import cuni
|
||||||
|
|
||||||
test_ged = """0 HEAD
|
test_ged = """0 HEAD
|
||||||
1 SOUR min1r.ged min 1-rec
|
1 SOUR min1r.ged min 1-rec
|
||||||
1 SUBM @SUBM1@
|
1 SUBM @SUBM1@
|
||||||
@ -112,8 +114,8 @@ class UnicodeTest(unittest.TestCase):
|
|||||||
from gramps.gen.config import set as setconfig
|
from gramps.gen.config import set as setconfig
|
||||||
from gramps.gen.dbstate import DbState
|
from gramps.gen.dbstate import DbState
|
||||||
self.newpath = os.path.join(os.path.dirname(__file__),
|
self.newpath = os.path.join(os.path.dirname(__file__),
|
||||||
u'\u0393\u03c1\u03b1\u03bc\u03c3\u03c0')
|
cuni('\u0393\u03c1\u03b1\u03bc\u03c3\u03c0'))
|
||||||
self.newtitle = u'Gr\u00e4mps T\u00e9st'
|
self.newtitle = cuni('Gr\u00e4mps T\u00e9st')
|
||||||
os.makedirs(self.newpath)
|
os.makedirs(self.newpath)
|
||||||
setconfig('behavior.database-path', self.newpath)
|
setconfig('behavior.database-path', self.newpath)
|
||||||
self.cli = CLIDbManager(DbState())
|
self.cli = CLIDbManager(DbState())
|
||||||
|
Loading…
Reference in New Issue
Block a user