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
a5e719e0
Commit
a5e719e0
authored
Jan 20, 2004
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test not the standard utf-8 codec but gb18030 which is the most complex
codec in multibytecodec consumers.
parent
13018927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/test/test_multibytecodec.py
Lib/test/test_multibytecodec.py
+4
-4
No files found.
Lib/test/test_multibytecodec.py
View file @
a5e719e0
...
...
@@ -62,12 +62,12 @@ class Test_StreamWriter(unittest.TestCase):
pass
def
test_nullcoding
(
self
):
self
.
assertEqual
(
''
.
decode
(
'
utf-8
'
),
u''
)
self
.
assertEqual
(
unicode
(
''
,
'
utf-8
'
),
u''
)
self
.
assertEqual
(
u''
.
encode
(
'
utf-8
'
),
''
)
self
.
assertEqual
(
''
.
decode
(
'
gb18030
'
),
u''
)
self
.
assertEqual
(
unicode
(
''
,
'
gb18030
'
),
u''
)
self
.
assertEqual
(
u''
.
encode
(
'
gb18030
'
),
''
)
def
test_str_decode
(
self
):
self
.
assertEqual
(
'abcd'
.
encode
(
'
utf-8
'
),
'abcd'
)
self
.
assertEqual
(
'abcd'
.
encode
(
'
gb18030
'
),
'abcd'
)
def
test_main
():
suite
=
unittest
.
TestSuite
()
...
...
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