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

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

Issue 16510: Using appropriate checks in tests
Left Patch Set: Created 7 years ago
Right Patch Set: Created 5 years, 10 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_types.py ('k') | Lib/test/test_uuid.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 # Test some Unicode file name semantics 1 # Test some Unicode file name semantics
2 # We dont test many operations on files other than 2 # We dont test many operations on files other than
3 # that their names can be used with Unicode characters. 3 # that their names can be used with Unicode characters.
4 import os, glob, time, shutil 4 import os, glob, time, shutil
5 import unicodedata 5 import unicodedata
6 6
7 import unittest 7 import unittest
8 from test.support import (run_unittest, rmtree, 8 from test.support import (run_unittest, rmtree,
9 TESTFN_ENCODING, TESTFN_UNICODE, TESTFN_UNENCODABLE, create_empty_file) 9 TESTFN_ENCODING, TESTFN_UNICODE, TESTFN_UNENCODABLE, create_empty_file)
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 # Our directory name that can't use a non-unicode name. 135 # Our directory name that can't use a non-unicode name.
136 if TESTFN_UNENCODABLE is not None: 136 if TESTFN_UNENCODABLE is not None:
137 self._do_directory(TESTFN_UNENCODABLE+ext, 137 self._do_directory(TESTFN_UNENCODABLE+ext,
138 TESTFN_UNENCODABLE+ext) 138 TESTFN_UNENCODABLE+ext)
139 139
140 def test_main(): 140 def test_main():
141 run_unittest(__name__) 141 run_unittest(__name__)
142 142
143 if __name__ == "__main__": 143 if __name__ == "__main__":
144 test_main() 144 test_main()
LEFTRIGHT

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