OLD | NEW |
1 #!/usr/bin/env 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 | 6 |
7 import atexit | 7 import atexit |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 def tearDown(self): | 88 def tearDown(self): |
89 TrialDirMixIn.tearDown(self) | 89 TrialDirMixIn.tearDown(self) |
90 unittest.TestCase.tearDown(self) | 90 unittest.TestCase.tearDown(self) |
91 | 91 |
92 | 92 |
93 if '-l' in sys.argv: | 93 if '-l' in sys.argv: |
94 # See SHOULD_LEAK definition in TrialDir for its purpose. | 94 # See SHOULD_LEAK definition in TrialDir for its purpose. |
95 TrialDir.SHOULD_LEAK = True | 95 TrialDir.SHOULD_LEAK = True |
96 print 'Leaking!' | 96 print 'Leaking!' |
97 sys.argv.remove('-l') | 97 sys.argv.remove('-l') |
OLD | NEW |