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
f84cf8db
Commit
f84cf8db
authored
Jul 06, 2006
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a testcase for r47086 which fixed a bug in codec_getstreamcodec().
parent
a54f53cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Lib/test/test_multibytecodec.py
Lib/test/test_multibytecodec.py
+9
-1
No files found.
Lib/test/test_multibytecodec.py
View file @
f84cf8db
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
from
test
import
test_support
from
test
import
test_support
from
test
import
test_multibytecodec_support
from
test
import
test_multibytecodec_support
import
unittest
,
StringIO
,
codecs
,
sys
from
test.test_support
import
TESTFN
import
unittest
,
StringIO
,
codecs
,
sys
,
os
class
Test_MultibyteCodec
(
unittest
.
TestCase
):
class
Test_MultibyteCodec
(
unittest
.
TestCase
):
...
@@ -25,6 +26,13 @@ class Test_MultibyteCodec(unittest.TestCase):
...
@@ -25,6 +26,13 @@ class Test_MultibyteCodec(unittest.TestCase):
self
.
assertRaises
(
IndexError
,
dec
,
self
.
assertRaises
(
IndexError
,
dec
,
'apple
\
x92
ham
\
x93
spam'
,
'test.cjktest'
)
'apple
\
x92
ham
\
x93
spam'
,
'test.cjktest'
)
def
test_codingspec
(
self
):
print
>>
open
(
TESTFN
,
'w'
),
'# coding: euc-kr'
try
:
exec
open
(
TESTFN
)
finally
:
os
.
unlink
(
TESTFN
)
class
Test_IncrementalEncoder
(
unittest
.
TestCase
):
class
Test_IncrementalEncoder
(
unittest
.
TestCase
):
def
test_stateless
(
self
):
def
test_stateless
(
self
):
...
...
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