fix tests on py3

This commit is contained in:
Alan Hamlett 2015-09-07 20:48:18 -07:00
parent dc5dcf0cb1
commit df893be3fc

View file

@ -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