7648: [Unit test] database dir and environment; https://gramps-project.org/bugs/view.php?id=7648#c36301 ; works on jralls' config, not yet on mine

This commit is contained in:
Jérôme Rapinat 2014-05-17 15:22:24 +02:00
parent a055aaba8a
commit 41cb84a7cc

View File

@ -43,6 +43,13 @@ test_ged = """0 HEAD
0 TRLR 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__) ddir = os.path.dirname(__file__)
min1r = os.path.join(ddir, "min1r.ged") min1r = os.path.join(ddir, "min1r.ged")
out_ged = os.path.join(ddir, "test_out.ged") out_ged = os.path.join(ddir, "test_out.ged")