cpython: 27feb652d3ad (original) (raw)

Mercurial > cpython

changeset 91515:27feb652d3ad 3.4

Issue #18258: Fix test discovery for test_codecmaps_*. [#18258]

Zachary Ware zachary.ware@gmail.com
date Tue, 01 Jul 2014 19:55:04 -0500
parents b836a0cd68f7
children b08921c7d1ec 78fc2465f114
files Lib/test/multibytecodec_support.py Lib/test/test_codecmaps_cn.py Lib/test/test_codecmaps_hk.py Lib/test/test_codecmaps_jp.py Lib/test/test_codecmaps_kr.py Lib/test/test_codecmaps_tw.py
diffstat 6 files changed, 6 insertions(+), 22 deletions(-)[+] [-] Lib/test/multibytecodec_support.py 3 Lib/test/test_codecmaps_cn.py 5 Lib/test/test_codecmaps_hk.py 5 Lib/test/test_codecmaps_jp.py 5 Lib/test/test_codecmaps_kr.py 5 Lib/test/test_codecmaps_tw.py 5

line wrap: on

line diff

--- a/Lib/test/multibytecodec_support.py +++ b/Lib/test/multibytecodec_support.py @@ -277,8 +277,7 @@ class TestBase_Mapping(unittest.TestCase supmaps = [] codectests = []

--- a/Lib/test/test_codecmaps_cn.py +++ b/Lib/test/test_codecmaps_cn.py @@ -25,8 +25,5 @@ class TestGB18030Map(multibytecodec_supp 'trunk/charset/data/xml/gb-18030-2000.xml' -def test_main():

- if name == "main":

--- a/Lib/test/test_codecmaps_hk.py +++ b/Lib/test/test_codecmaps_hk.py @@ -12,8 +12,5 @@ class TestBig5HKSCSMap(multibytecodec_su encoding = 'big5hkscs' mapfileurl = 'http://people.freebsd.org/~perky/i18n/BIG5HKSCS-2004.TXT'[](#l3.5) -def test_main():

- if name == "main":

--- a/Lib/test/test_codecmaps_jp.py +++ b/Lib/test/test_codecmaps_jp.py @@ -59,8 +59,5 @@ class TestSJISX0213Map(multibytecodec_su mapfileurl = 'http://people.freebsd.org/~perky/i18n/SHIFT_JISX0213.TXT'[](#l4.4) -def test_main():

- if name == "main":

--- a/Lib/test/test_codecmaps_kr.py +++ b/Lib/test/test_codecmaps_kr.py @@ -36,8 +36,5 @@ class TestJOHABMap(multibytecodec_suppor pass_enctest = [(b'\', '\u20a9')] pass_dectest = [(b'\', '\u20a9')] -def test_main():

- if name == "main":

--- a/Lib/test/test_codecmaps_tw.py +++ b/Lib/test/test_codecmaps_tw.py @@ -26,8 +26,5 @@ class TestCP950Map(multibytecodec_suppor (b"\xFFxy", "replace", "\ufffdxy"), ) -def test_main():

- if name == "main":