fix tests on py3
This commit is contained in:
parent
dc5dcf0cb1
commit
df893be3fc
1 changed files with 2 additions and 2 deletions
|
@ -104,8 +104,8 @@ class LanguagesTestCase(utils.TestCase):
|
||||||
now = u(int(time.time()))
|
now = u(int(time.time()))
|
||||||
entity = 'tests/samples/projects/project_map/emptyfile.txt'
|
entity = 'tests/samples/projects/project_map/emptyfile.txt'
|
||||||
|
|
||||||
fh.write(open('tests/samples/project_map.cfg').read())
|
fh.write(open('tests/samples/project_map.cfg').read().encode('utf-8'))
|
||||||
fh.write('{0} = proj-map'.format(os.path.realpath(os.path.dirname(entity))))
|
fh.write('{0} = proj-map'.format(os.path.realpath(os.path.dirname(entity))).encode('utf-8'))
|
||||||
fh.flush()
|
fh.flush()
|
||||||
|
|
||||||
config = fh.name
|
config = fh.name
|
||||||
|
|
Loading…
Reference in a new issue