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

Side by Side Diff: tests/trial_dir.py

Issue 6690034: Add more python 2.5 compatibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Don't force python 2.5 anymore (to be done in a separate change) Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2010 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
11 import tempfile 11 import tempfile
12 import unittest 12 import unittest
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 @property 78 @property
79 def root_dir(self): 79 def root_dir(self):
80 return self.trial.root_dir 80 return self.trial.root_dir
81 81
82 82
83 if '-l' in sys.argv: 83 if '-l' in sys.argv:
84 # See SHOULD_LEAK definition in TrialDir for its purpose. 84 # See SHOULD_LEAK definition in TrialDir for its purpose.
85 TrialDir.SHOULD_LEAK = True 85 TrialDir.SHOULD_LEAK = True
86 print 'Leaking!' 86 print 'Leaking!'
87 sys.argv.remove('-l') 87 sys.argv.remove('-l')
OLDNEW
« tests/owners_unittest.py ('K') | « tests/super_mox.py ('k') | tests/trychange_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698