mirror of
https://github.com/google/googletest.git
synced 2026-07-30 16:26:24 +08:00
Merge pull request #5025 from K-S-Manikandan:fix/output-test-python3
PiperOrigin-RevId: 948328634 Change-Id: I9d2c42a63138095b88cc0cff16f69e8220ee1dfd
This commit is contained in:
commit
b973ccb9ab
@ -349,14 +349,16 @@ class GTestOutputTest(gtest_test_utils.TestCase):
|
|||||||
gtest_test_utils.GetSourceDir(),
|
gtest_test_utils.GetSourceDir(),
|
||||||
'_googletest-output-test_normalized_actual.txt',
|
'_googletest-output-test_normalized_actual.txt',
|
||||||
),
|
),
|
||||||
'wb',
|
'w',
|
||||||
|
encoding='utf-8',
|
||||||
).write(normalized_actual)
|
).write(normalized_actual)
|
||||||
open(
|
open(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
gtest_test_utils.GetSourceDir(),
|
gtest_test_utils.GetSourceDir(),
|
||||||
'_googletest-output-test_normalized_golden.txt',
|
'_googletest-output-test_normalized_golden.txt',
|
||||||
),
|
),
|
||||||
'wb',
|
'w',
|
||||||
|
encoding='utf-8',
|
||||||
).write(normalized_golden)
|
).write(normalized_golden)
|
||||||
|
|
||||||
self.assertEqual(normalized_golden, normalized_actual)
|
self.assertEqual(normalized_golden, normalized_actual)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user