summaryrefslogtreecommitdiffstats
path: root/googletest/test/googletest-output-test.py
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2018-09-14 23:40:51 (GMT)
committerPeter Levine <plevine457@gmail.com>2018-09-14 23:40:51 (GMT)
commit149c0d24148da9a339d6c9d03e638a39c59731f6 (patch)
treed4d1991631be4474135690b7fa3ec15f014ffd8a /googletest/test/googletest-output-test.py
parentbc2d0935b74917be0821bfd834472ed9cc4a3b5b (diff)
downloadgoogletest-149c0d24148da9a339d6c9d03e638a39c59731f6.zip
googletest-149c0d24148da9a339d6c9d03e638a39c59731f6.tar.gz
googletest-149c0d24148da9a339d6c9d03e638a39c59731f6.tar.bz2
Fix Python3 support
Diffstat (limited to 'googletest/test/googletest-output-test.py')
-rwxr-xr-xgoogletest/test/googletest-output-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/test/googletest-output-test.py b/googletest/test/googletest-output-test.py
index 2d69e35..1a9ee6e 100755
--- a/googletest/test/googletest-output-test.py
+++ b/googletest/test/googletest-output-test.py
@@ -287,7 +287,7 @@ class GTestOutputTest(gtest_test_utils.TestCase):
# sequences when we read the golden file irrespective of an operating
# system used. Therefore, we need to strip those \r's from newlines
# unconditionally.
- golden = ToUnixLineEnding(golden_file.read())
+ golden = ToUnixLineEnding(golden_file.read().decode())
golden_file.close()
# We want the test to pass regardless of certain features being