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

Side by Side Diff: tests/presubmit_unittest.py

Issue 2296723006: Shutdown multiprocess pool after running tests to avoid _finalizer spew on Windows (Closed)
Patch Set: mock something something Created 4 years, 3 months 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
« no previous file with comments | « presubmit_support.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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py."""
7 7
8 # pylint: disable=E1101,E1103 8 # pylint: disable=E1101,E1103
9 9
10 import StringIO 10 import StringIO
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 'DepotToLocalPath', 1246 'DepotToLocalPath',
1247 'FilterSourceFile', 1247 'FilterSourceFile',
1248 'LocalPaths', 1248 'LocalPaths',
1249 'LocalToDepotPath', 1249 'LocalToDepotPath',
1250 'Command', 1250 'Command',
1251 'RunTests', 1251 'RunTests',
1252 'PresubmitLocalPath', 1252 'PresubmitLocalPath',
1253 'ReadFile', 1253 'ReadFile',
1254 'RightHandSideLines', 1254 'RightHandSideLines',
1255 'ServerPaths', 1255 'ServerPaths',
1256 'ShutdownPool',
1256 'basename', 1257 'basename',
1257 'cPickle', 1258 'cPickle',
1258 'cpplint', 1259 'cpplint',
1259 'cStringIO', 1260 'cStringIO',
1260 'canned_checks', 1261 'canned_checks',
1261 'change', 1262 'change',
1262 'cpu_count', 1263 'cpu_count',
1263 'environ', 1264 'environ',
1264 'fnmatch', 1265 'fnmatch',
1265 'glob', 1266 'glob',
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 owners_check=False) 3098 owners_check=False)
3098 self.assertEqual(2, len(results)) 3099 self.assertEqual(2, len(results))
3099 self.assertEqual( 3100 self.assertEqual(
3100 'Found line ending with white spaces in:', results[0]._message) 3101 'Found line ending with white spaces in:', results[0]._message)
3101 self.checkstdout('') 3102 self.checkstdout('')
3102 3103
3103 3104
3104 if __name__ == '__main__': 3105 if __name__ == '__main__':
3105 import unittest 3106 import unittest
3106 unittest.main() 3107 unittest.main()
OLDNEW
« no previous file with comments | « presubmit_support.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698