Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
0ef404e2
Commit
0ef404e2
authored
Jul 17, 2019
by
Abseil Team
Committed by
Gennadiy Civil
Jul 17, 2019
Browse files
Googletest export
Internal change PiperOrigin-RevId: 258587862
parent
6077f444
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
googlemock/test/gmock_output_test.py
googlemock/test/gmock_output_test.py
+3
-1
No files found.
googlemock/test/gmock_output_test.py
View file @
0ef404e2
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment