Explicitly set mode to 'w' when combining coverprofiles

This commit is contained in:
Dan Buch
2017-08-12 22:21:53 -04:00
parent d83210ca77
commit 463d4bada6

View File

@@ -149,7 +149,7 @@ def _go_version():
def _combine_coverprofiles(coverprofiles): def _combine_coverprofiles(coverprofiles):
tmp_args = dict(suffix='.coverprofile', delete=False) tmp_args = dict(suffix='.coverprofile', mode='w', delete=False)
if _PY3: if _PY3:
tmp_args['encoding'] = 'utf-8' tmp_args['encoding'] = 'utf-8'