Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
0ef404e2
Commit
0ef404e2
authored
Jul 17, 2019
by
Abseil Team
Committed by
Gennadiy Civil
Jul 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Internal change PiperOrigin-RevId: 258587862
parent
6077f444
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
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
...
@@ -39,6 +39,7 @@ gmock_output_test.py
"""
"""
from
io
import
open
# pylint: disable=redefined-builtin, g-importing-member
import
os
import
os
import
re
import
re
import
sys
import
sys
...
@@ -152,10 +153,11 @@ def GetNormalizedCommandOutputAndLeakyTests(cmd):
...
@@ -152,10 +153,11 @@ def GetNormalizedCommandOutputAndLeakyTests(cmd):
class
GMockOutputTest
(
gmock_test_utils
.
TestCase
):
class
GMockOutputTest
(
gmock_test_utils
.
TestCase
):
def
testOutput
(
self
):
def
testOutput
(
self
):
(
output
,
leaky_tests
)
=
GetNormalizedCommandOutputAndLeakyTests
(
COMMAND
)
(
output
,
leaky_tests
)
=
GetNormalizedCommandOutputAndLeakyTests
(
COMMAND
)
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden
=
golden_file
.
read
()
golden
=
golden_file
.
read
()
.
decode
(
'utf-8'
)
golden_file
.
close
()
golden_file
.
close
()
# The normalized output should match the golden file.
# 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