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
3321fb8e
Commit
3321fb8e
authored
Oct 18, 2013
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16129: this should appease the buildbots
parent
8acc3c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Lib/test/test_capi.py
Lib/test/test_capi.py
+7
-8
No files found.
Lib/test/test_capi.py
View file @
3321fb8e
...
...
@@ -260,7 +260,6 @@ class EmbeddingTests(unittest.TestCase):
print
(
out
)
print
(
err
)
@
unittest
.
skip
def
test_forced_io_encoding
(
self
):
# Checks forced configuration of embedded interpreter IO streams
out
,
err
=
self
.
run_embedded_interpreter
(
"forced_io_encoding"
)
...
...
@@ -272,15 +271,15 @@ class EmbeddingTests(unittest.TestCase):
--- Use defaults ---
Expected encoding: default
Expected errors: default
stdin: {0.
stdin
.encoding}:strict
stdout: {0.
stdout
.encoding}:strict
stderr: {0.
stderr
.encoding}:backslashreplace
stdin: {0.
__stdin__
.encoding}:strict
stdout: {0.
__stdout__
.encoding}:strict
stderr: {0.
__stderr__
.encoding}:backslashreplace
--- Set errors only ---
Expected encoding: default
Expected errors: surrogateescape
stdin: {0.
stdin
.encoding}:surrogateescape
stdout: {0.
stdout
.encoding}:surrogateescape
stderr: {0.
stderr
.encoding}:backslashreplace
stdin: {0.
__stdin__
.encoding}:surrogateescape
stdout: {0.
__stdout__
.encoding}:surrogateescape
stderr: {0.
__stderr__
.encoding}:backslashreplace
--- Set encoding only ---
Expected encoding: latin-1
Expected errors: default
...
...
@@ -293,7 +292,7 @@ class EmbeddingTests(unittest.TestCase):
stdin: latin-1:surrogateescape
stdout: latin-1:surrogateescape
stderr: latin-1:backslashreplace"""
).
format
(
sys
)
#
Looks like this overspecifies the output :(
#
This is useful if we ever trip over odd platform behaviour
self
.
maxDiff
=
None
self
.
assertEqual
(
out
.
strip
(),
expected_output
)
...
...
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