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

Side by Side Diff: Lib/test/test_codecencodings_hk.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_cn.py ('k') | Lib/test/test_codecencodings_jp.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_codecencodings_hk.py 3 # test_codecencodings_hk.py
4 # Codec encoding tests for HongKong encodings. 4 # Codec encoding tests for HongKong 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 Test_Big5HKSCS(test_multibytecodec_support.TestBase, unittest.TestCase): 11 class Test_Big5HKSCS(test_multibytecodec_support.TestBase, unittest.TestCase):
12 encoding = 'big5hkscs' 12 encoding = 'big5hkscs'
13 tstring = test_multibytecodec_support.load_teststring('big5hkscs') 13 tstring = test_multibytecodec_support.load_teststring('big5hkscs')
14 codectests = ( 14 codectests = (
15 # invalid bytes 15 # invalid bytes
16 (b"abc\x80\x80\xc1\xc4", "strict", None), 16 (b"abc\x80\x80\xc1\xc4", "strict", None),
17 (b"abc\xc8", "strict", None), 17 (b"abc\xc8", "strict", None),
18 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u8b10"), 18 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\u8b10"),
19 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u8b10\ufffd"), 19 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\u8b10\ufffd"),
20 (b"abc\x80\x80\xc1\xc4", "ignore", "abc\u8b10"), 20 (b"abc\x80\x80\xc1\xc4", "ignore", "abc\u8b10"),
21 ) 21 )
22 22
23 def test_main(): 23 def test_main():
24 support.run_unittest(__name__) 24 support.run_unittest(__name__)
25 25
26 if __name__ == "__main__": 26 if __name__ == "__main__":
27 test_main() 27 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_codecencodings_cn.py ('k') | Lib/test/test_codecencodings_jp.py » ('j') | no next file with comments »

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