fix tests on py3

This commit is contained in:
Alan Hamlett 2015-09-07 20:48:18 -07:00
parent dc5dcf0cb1
commit df893be3fc
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ class LanguagesTestCase(utils.TestCase):
now = u(int(time.time()))
entity = 'tests/samples/projects/project_map/emptyfile.txt'
fh.write(open('tests/samples/project_map.cfg').read())
fh.write('{0} = proj-map'.format(os.path.realpath(os.path.dirname(entity))))
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))).encode('utf-8'))
fh.flush()
config = fh.name