summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecmaps_jp.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-23 18:06:59 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-23 18:06:59 (GMT)
commit005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84 (patch)
tree38f58257bbb75ad8659eda99f833fbc0c89b3250 /Lib/test/test_codecmaps_jp.py
parent4ca947183154a7cfc7a6ccbb2e5c856a16a5dce3 (diff)
downloadcpython-005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84.zip
cpython-005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84.tar.gz
cpython-005ebb1f7c40bdacd25fba8cae232ad2fb6c4c84.tar.bz2
Tweaks to make the codecmaps tests pass again.
(To run these, you need to pass -uurlfetch to regrtest.py or runtests.sh.)
Diffstat (limited to 'Lib/test/test_codecmaps_jp.py')
-rw-r--r--Lib/test/test_codecmaps_jp.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/test/test_codecmaps_jp.py b/Lib/test/test_codecmaps_jp.py
index 31b80eb..dec97fb 100644
--- a/Lib/test/test_codecmaps_jp.py
+++ b/Lib/test/test_codecmaps_jp.py
@@ -14,14 +14,14 @@ class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
'WINDOWS/CP932.TXT'
supmaps = [
- ('\x80', '\u0080'),
- ('\xa0', '\uf8f0'),
- ('\xfd', '\uf8f1'),
- ('\xfe', '\uf8f2'),
- ('\xff', '\uf8f3'),
+ (b'\x80', '\u0080'),
+ (b'\xa0', '\uf8f0'),
+ (b'\xfd', '\uf8f1'),
+ (b'\xfe', '\uf8f2'),
+ (b'\xff', '\uf8f3'),
]
for i in range(0xa1, 0xe0):
- supmaps.append((chr(i), chr(i+0xfec0)))
+ supmaps.append((bytes([i]), chr(i+0xfec0)))
class TestEUCJPCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
@@ -38,12 +38,12 @@ class TestSJISCOMPATMap(test_multibytecodec_support.TestBase_Mapping,
mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE' \
'/EASTASIA/JIS/SHIFTJIS.TXT'
pass_enctest = [
- ('\x81_', '\\'),
+ (b'\x81_', '\\'),
]
pass_dectest = [
- ('\\', '\xa5'),
- ('~', '\u203e'),
- ('\x81_', '\\'),
+ (b'\\', '\xa5'),
+ (b'~', '\u203e'),
+ (b'\x81_', '\\'),
]
class TestEUCJISX0213Map(test_multibytecodec_support.TestBase_Mapping,