From 69ff7d3e26a38c6a1d6efb0bb1a529a5ea43a684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 13 May 2014 18:26:20 +0200 Subject: [PATCH] 7657: 7648: SyntaxError with python3 on 'gramps.cli.test.cli_test' --- gramps/cli/test/cli_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/cli/test/cli_test.py b/gramps/cli/test/cli_test.py index a77b1482c..c24a67085 100644 --- a/gramps/cli/test/cli_test.py +++ b/gramps/cli/test/cli_test.py @@ -28,6 +28,8 @@ import re import io import sys +from gramps.gen.constfunc import cuni + test_ged = """0 HEAD 1 SOUR min1r.ged min 1-rec 1 SUBM @SUBM1@ @@ -114,8 +116,8 @@ class UnicodeTest(unittest.TestCase): from gramps.gen.config import set as setconfig from gramps.gen.dbstate import DbState self.newpath = os.path.join(os.path.dirname(__file__), - u'\u0393\u03c1\u03b1\u03bc\u03c3\u03c0') - self.newtitle = u'Gr\u00e4mps T\u00e9st' + cuni('\u0393\u03c1\u03b1\u03bc\u03c3\u03c0')) + self.newtitle = cuni('Gr\u00e4mps T\u00e9st') os.makedirs(self.newpath) setconfig('behavior.database-path', self.newpath) self.cli = CLIDbManager(DbState())