Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: Lib/test/test_codecmaps_tw.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_codecencodings_tw.py ('k') | Lib/test/test_codecs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # 2 #
3 # test_codecmaps_tw.py 3 # test_codecmaps_tw.py
4 # Codec mapping tests for ROC encodings 4 # Codec mapping tests for ROC encodings
5 # 5 #
6 6
7 from test import support 7 from test import support
8 from test import test_multibytecodec_support 8 from test import test_multibytecodec_support
9 import unittest 9 import unittest
10 10
11 class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping, 11 class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping,
12 unittest.TestCase): 12 unittest.TestCase):
13 encoding = 'big5' 13 encoding = 'big5'
14 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' \ 14 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/' \
15 'EASTASIA/OTHER/BIG5.TXT' 15 'EASTASIA/OTHER/BIG5.TXT'
16 16
17 class TestCP950Map(test_multibytecodec_support.TestBase_Mapping, 17 class TestCP950Map(test_multibytecodec_support.TestBase_Mapping,
18 unittest.TestCase): 18 unittest.TestCase):
19 encoding = 'cp950' 19 encoding = 'cp950'
20 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \ 20 mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/' \
21 'WINDOWS/CP950.TXT' 21 'WINDOWS/CP950.TXT'
22 pass_enctest = [ 22 pass_enctest = [
23 (b'\xa2\xcc', '\u5341'), 23 (b'\xa2\xcc', '\u5341'),
24 (b'\xa2\xce', '\u5345'), 24 (b'\xa2\xce', '\u5345'),
25 ] 25 ]
26 codectests = (
27 (b"\xFFxy", "replace", "\ufffdxy"),
28 )
29 26
30 def test_main(): 27 def test_main():
31 support.run_unittest(__name__) 28 support.run_unittest(__name__)
32 29
33 if __name__ == "__main__": 30 if __name__ == "__main__":
34 test_main() 31 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_codecencodings_tw.py ('k') | Lib/test/test_codecs.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+