Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
86e9deb5
Commit
86e9deb5
authored
Nov 01, 2014
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#22731 test_capi test fails because of mismatched newlines
parent
1be0c618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/test/test_capi.py
Lib/test/test_capi.py
+4
-3
No files found.
Lib/test/test_capi.py
View file @
86e9deb5
...
...
@@ -304,12 +304,13 @@ class EmbeddingTests(unittest.TestCase):
cmd
.
extend
(
args
)
p
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stderr
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
(
out
,
err
)
=
p
.
communicate
()
self
.
assertEqual
(
p
.
returncode
,
0
,
"bad returncode %d, stderr is %r"
%
(
p
.
returncode
,
err
))
return
out
.
decode
(
"latin1"
),
err
.
decode
(
"latin1"
)
return
out
,
err
def
test_subinterps
(
self
):
# This is just a "don't crash" test
...
...
@@ -339,7 +340,7 @@ class EmbeddingTests(unittest.TestCase):
expected_errors
=
sys
.
__stdout__
.
errors
expected_stdin_encoding
=
sys
.
__stdin__
.
encoding
expected_pipe_encoding
=
self
.
_get_default_pipe_encoding
()
expected_output
=
os
.
linesep
.
join
([
expected_output
=
'
\
n
'
.
join
([
"--- Use defaults ---"
,
"Expected encoding: default"
,
"Expected errors: default"
,
...
...
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