summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecencodings_iso2022.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-07-03 20:01:57 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-07-03 20:01:57 (GMT)
commitc51a8e907227591f74015eaeed5ddb37e7883a66 (patch)
tree40bf31e0853d1f63102959fe30f64f530453fd46 /Lib/test/test_codecencodings_iso2022.py
parentd7955b8196578306e9d86f6c61c9cb3ee72edab0 (diff)
downloadcpython-c51a8e907227591f74015eaeed5ddb37e7883a66.zip
cpython-c51a8e907227591f74015eaeed5ddb37e7883a66.tar.gz
cpython-c51a8e907227591f74015eaeed5ddb37e7883a66.tar.bz2
[2.7] Rename test_ file that is really a support file to remove test_ prefix. (#2548)
I thought I had run the full test suite before the last checkin, but obviously I didn't. test_multibytecodec_support.py isn't really a test file, it is a support file that contains a base test class. Rename it to multibytecodec_support so that regrtest test discovery doesn't think it is a test file that should be run.. (cherry picked from commit 75d9aca97ad3c3d823d2f2211f579454b3216f51)
Diffstat (limited to 'Lib/test/test_codecencodings_iso2022.py')
-rw-r--r--Lib/test/test_codecencodings_iso2022.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_codecencodings_iso2022.py b/Lib/test/test_codecencodings_iso2022.py
index 9f23628..75f4cfc 100644
--- a/Lib/test/test_codecencodings_iso2022.py
+++ b/Lib/test/test_codecencodings_iso2022.py
@@ -1,7 +1,7 @@
# Codec encoding tests for ISO 2022 encodings.
from test import test_support
-from test import test_multibytecodec_support
+from test import multibytecodec_support
import unittest
COMMON_CODEC_TESTS = (
@@ -11,23 +11,23 @@ COMMON_CODEC_TESTS = (
(b'ab\x1B$def', 'replace', u'ab\uFFFD'),
)
-class Test_ISO2022_JP(test_multibytecodec_support.TestBase, unittest.TestCase):
+class Test_ISO2022_JP(multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'iso2022_jp'
- tstring = test_multibytecodec_support.load_teststring('iso2022_jp')
+ tstring = multibytecodec_support.load_teststring('iso2022_jp')
codectests = COMMON_CODEC_TESTS + (
(b'ab\x1BNdef', 'replace', u'ab\x1BNdef'),
)
-class Test_ISO2022_JP2(test_multibytecodec_support.TestBase, unittest.TestCase):
+class Test_ISO2022_JP2(multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'iso2022_jp_2'
- tstring = test_multibytecodec_support.load_teststring('iso2022_jp')
+ tstring = multibytecodec_support.load_teststring('iso2022_jp')
codectests = COMMON_CODEC_TESTS + (
(b'ab\x1BNdef', 'replace', u'abdef'),
)
-class Test_ISO2022_KR(test_multibytecodec_support.TestBase, unittest.TestCase):
+class Test_ISO2022_KR(multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'iso2022_kr'
- tstring = test_multibytecodec_support.load_teststring('iso2022_kr')
+ tstring = multibytecodec_support.load_teststring('iso2022_kr')
codectests = COMMON_CODEC_TESTS + (
(b'ab\x1BNdef', 'replace', u'ab\x1BNdef'),
)