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
509dab9e
Commit
509dab9e
authored
Jul 01, 2014
by
Zachary Ware
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18258: Fix test discovery for test_codecmaps_*.
parents
062bc1de
d9de794c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
22 deletions
+6
-22
Lib/test/multibytecodec_support.py
Lib/test/multibytecodec_support.py
+1
-2
Lib/test/test_codecmaps_cn.py
Lib/test/test_codecmaps_cn.py
+1
-4
Lib/test/test_codecmaps_hk.py
Lib/test/test_codecmaps_hk.py
+1
-4
Lib/test/test_codecmaps_jp.py
Lib/test/test_codecmaps_jp.py
+1
-4
Lib/test/test_codecmaps_kr.py
Lib/test/test_codecmaps_kr.py
+1
-4
Lib/test/test_codecmaps_tw.py
Lib/test/test_codecmaps_tw.py
+1
-4
No files found.
Lib/test/multibytecodec_support.py
View file @
509dab9e
...
...
@@ -277,8 +277,7 @@ class TestBase_Mapping(unittest.TestCase):
supmaps
=
[]
codectests
=
[]
def
__init__
(
self
,
*
args
,
**
kw
):
unittest
.
TestCase
.
__init__
(
self
,
*
args
,
**
kw
)
def
setUp
(
self
):
try
:
self
.
open_mapping_file
().
close
()
# test it to report the error early
except
(
OSError
,
HTTPException
):
...
...
Lib/test/test_codecmaps_cn.py
View file @
509dab9e
...
...
@@ -25,8 +25,5 @@ class TestGB18030Map(multibytecodec_support.TestBase_Mapping,
'trunk/charset/data/xml/gb-18030-2000.xml'
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Lib/test/test_codecmaps_hk.py
View file @
509dab9e
...
...
@@ -12,8 +12,5 @@ class TestBig5HKSCSMap(multibytecodec_support.TestBase_Mapping,
encoding
=
'big5hkscs'
mapfileurl
=
'http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT'
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Lib/test/test_codecmaps_jp.py
View file @
509dab9e
...
...
@@ -59,8 +59,5 @@ class TestSJISX0213Map(multibytecodec_support.TestBase_Mapping,
mapfileurl
=
'http://people.freebsd.org/~perky/i18n/SHIFT_JISX0213.TXT'
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Lib/test/test_codecmaps_kr.py
View file @
509dab9e
...
...
@@ -36,8 +36,5 @@ class TestJOHABMap(multibytecodec_support.TestBase_Mapping,
pass_enctest
=
[(
b'
\
\
'
,
'
\
u20a9
'
)]
pass_dectest
=
[(
b'
\
\
'
,
'
\
u20a9
'
)]
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Lib/test/test_codecmaps_tw.py
View file @
509dab9e
...
...
@@ -26,8 +26,5 @@ class TestCP950Map(multibytecodec_support.TestBase_Mapping,
(
b"
\
xFF
xy"
,
"replace"
,
"
\
ufffd
xy"
),
)
def
test_main
():
support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
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