googletest-env-var-test.py: fix python 2.xism in last commit

This commit is contained in:
Dan Kegel 2020-02-25 08:43:16 -08:00
parent ea847bfccb
commit c6ff8ac57a

View File

@ -82,7 +82,7 @@ def TestFlagfileEnv(flag, test_val, default_val):
file_path = os.path.join(gtest_test_utils.GetTempDir(),
'flagfile.tmp')
with open(file_path, 'wb') as f:
with open(file_path, 'w') as f:
f.write('--gtest_%s=%s\n' % (flag, test_val))
env_var = 'GTEST_FLAGFILE'
SetEnvVar(env_var, file_path)