Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: swarm_client/tests/trace_inputs/tricky_filename.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # coding=utf-8
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import sys
8
9
10 def main():
11 """Creates a file name with whitespaces and comma in it."""
12 # We could test ?><:*|"' and chr(1 to 32) on linux.
13 # We could test ?<>*|"' on OSX.
14 # On Windows, skip the Chinese characters for now as the log parsing code is
15 # using the current code page to generate the log.
16 if sys.platform == 'win32':
17 filename = u'foo, bar, ~p#o,,ué^t%t .txt'
18 else:
19 filename = u'foo, bar, ~p#o,,ué^t%t 和平.txt'
20 with open(filename, 'w') as f:
21 f.write('Bingo!')
22 return 0
23
24
25 if __name__ == '__main__':
26 sys.exit(main())
OLDNEW
« no previous file with comments | « swarm_client/tests/trace_inputs/touch_only.py ('k') | swarm_client/tests/trace_inputs_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698