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

Delta Between Two Patch Sets: Lib/test/test_source_encoding.py

Issue 23670: Modifications to support iOS as a development platform
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_socketserver.py ('k') | Lib/test/test_subprocess.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 # -*- coding: koi8-r -*- 1 # -*- coding: koi8-r -*-
2 2
3 import unittest 3 import unittest
4 from test.support import TESTFN, unlink, unload, rmtree 4 from test.support import TESTFN, unlink, unload, rmtree
5 import importlib 5 import importlib
6 import os 6 import os
7 import sys 7 import sys
8 import subprocess 8 import subprocess
9 9
10 class SourceEncodingTest(unittest.TestCase): 10 class SourceEncodingTest(unittest.TestCase):
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 with self.assertRaises(SyntaxError) as c: 138 with self.assertRaises(SyntaxError) as c:
139 compile(input, "<string>", "exec") 139 compile(input, "<string>", "exec")
140 expected = "'ascii' codec can't decode byte 0xe2 in position 16: " \ 140 expected = "'ascii' codec can't decode byte 0xe2 in position 16: " \
141 "ordinal not in range(128)" 141 "ordinal not in range(128)"
142 self.assertTrue(c.exception.args[0].startswith(expected), 142 self.assertTrue(c.exception.args[0].startswith(expected),
143 msg=c.exception.args[0]) 143 msg=c.exception.args[0])
144 144
145 145
146 if __name__ == "__main__": 146 if __name__ == "__main__":
147 unittest.main() 147 unittest.main()
LEFTRIGHT

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