diff options
author | Abseil Team <absl-team@google.com> | 2019-07-17 16:56:41 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-07-17 17:38:25 (GMT) |
commit | 0ef404e2e7ae9b6adea1c80b37182f49a25b6523 (patch) | |
tree | 3e5f2156c905c0b7fa5cf5be882cd48baeaf6a5a /googlemock/test | |
parent | 6077f444da944d96d311d358d761164261f1cdd0 (diff) | |
download | googletest-0ef404e2e7ae9b6adea1c80b37182f49a25b6523.zip googletest-0ef404e2e7ae9b6adea1c80b37182f49a25b6523.tar.gz googletest-0ef404e2e7ae9b6adea1c80b37182f49a25b6523.tar.bz2 |
Googletest export
Internal change
PiperOrigin-RevId: 258587862
Diffstat (limited to 'googlemock/test')
-rwxr-xr-x | googlemock/test/gmock_output_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/googlemock/test/gmock_output_test.py b/googlemock/test/gmock_output_test.py index 0527bd9..25f99f2 100755 --- a/googlemock/test/gmock_output_test.py +++ b/googlemock/test/gmock_output_test.py @@ -39,6 +39,7 @@ gmock_output_test.py """ +from io import open # pylint: disable=redefined-builtin, g-importing-member import os import re import sys @@ -152,10 +153,11 @@ def GetNormalizedCommandOutputAndLeakyTests(cmd): class GMockOutputTest(gmock_test_utils.TestCase): + def testOutput(self): (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND) golden_file = open(GOLDEN_PATH, 'rb') - golden = golden_file.read() + golden = golden_file.read().decode('utf-8') golden_file.close() # The normalized output should match the golden file. |