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

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

Issue 28128: Improve the warning message for invalid escape sequences
Left Patch Set: Created 3 years, 1 month ago
Right Patch Set: Created 3 years, 1 month 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 | « Include/unicodeobject.h ('k') | Lib/test/test_unicode.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
1 r"""Test correct treatment of various string literals by the parser. 1 r"""Test correct treatment of various string literals by the parser.
2 2
3 There are four types of string literals: 3 There are four types of string literals:
4 4
5 'abc' -- normal str 5 'abc' -- normal str
6 r'abc' -- raw str 6 r'abc' -- raw str
7 b'xyz' -- normal bytes 7 b'xyz' -- normal bytes
8 br'xyz' | rb'xyz' -- raw bytes 8 br'xyz' | rb'xyz' -- raw bytes
9 9
10 The difference between normal and raw strings is of course that in a 10 The difference between normal and raw strings is of course that in a
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 def test_file_latin_1(self): 221 def test_file_latin_1(self):
222 self.check_encoding("latin-1") 222 self.check_encoding("latin-1")
223 223
224 def test_file_latin9(self): 224 def test_file_latin9(self):
225 self.check_encoding("latin9") 225 self.check_encoding("latin9")
226 226
227 227
228 if __name__ == "__main__": 228 if __name__ == "__main__":
229 unittest.main() 229 unittest.main()
LEFTRIGHT

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