diff --git a/gramps/cli/test/cli_test.py b/gramps/cli/test/cli_test.py index 2f5c408e8..7b61f6b15 100644 --- a/gramps/cli/test/cli_test.py +++ b/gramps/cli/test/cli_test.py @@ -43,6 +43,13 @@ test_ged = """0 HEAD 0 TRLR """ +# see gramps.grampsapp.py +## hack to avoid mentioning 'utf8' encoding everywhere unicode or str is is used +if sys.version_info[0] < 3: + reload(sys) + sys.setdefaultencoding('utf8') +## + ddir = os.path.dirname(__file__) min1r = os.path.join(ddir, "min1r.ged") out_ged = os.path.join(ddir, "test_out.ged")