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

Side by Side Diff: build/scan_sources_test.py

Issue 8667008: Fix python scripts in src/build/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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
« build/android/lighttpd_server.py ('K') | « build/scan_sources.py ('k') | no next file » | 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/python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import scan_sources 7 import scan_sources
8 import unittest 8 import unittest
9 9
10 10
11 class MockSimplePath(object): 11 class MockSimplePath(object):
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 flat = set([item for item in [sublist for sublist in filelists]]) 83 flat = set([item for item in [sublist for sublist in filelists]])
84 flat = [item for item in flat] 84 flat = [item for item in flat]
85 85
86 flat = sorted(flat) 86 flat = sorted(flat)
87 result = sorted(flat) 87 result = sorted(flat)
88 self.assertEqual(flat, result) 88 self.assertEqual(flat, result)
89 89
90 if __name__ == '__main__': 90 if __name__ == '__main__':
91 unittest.main() 91 unittest.main()
92
OLDNEW
« build/android/lighttpd_server.py ('K') | « build/scan_sources.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698