Switch some remaining encoding-related bits in test runner
This commit is contained in:
parent
463d4bada6
commit
3164173947
4
runtests
4
runtests
@ -154,13 +154,13 @@ def _combine_coverprofiles(coverprofiles):
|
|||||||
tmp_args['encoding'] = 'utf-8'
|
tmp_args['encoding'] = 'utf-8'
|
||||||
|
|
||||||
combined = tempfile.NamedTemporaryFile(**tmp_args)
|
combined = tempfile.NamedTemporaryFile(**tmp_args)
|
||||||
combined.write(b'mode: set\n')
|
combined.write('mode: set\n')
|
||||||
|
|
||||||
for coverprofile in coverprofiles:
|
for coverprofile in coverprofiles:
|
||||||
with codecs.open(coverprofile, 'r', 'utf-8') as infile:
|
with codecs.open(coverprofile, 'r', 'utf-8') as infile:
|
||||||
for line in infile.readlines():
|
for line in infile.readlines():
|
||||||
if not line.startswith('mode: '):
|
if not line.startswith('mode: '):
|
||||||
combined.write(line.encode('utf-8'))
|
combined.write(line)
|
||||||
|
|
||||||
combined.flush()
|
combined.flush()
|
||||||
name = combined.name
|
name = combined.name
|
||||||
|
Loading…
Reference in New Issue
Block a user