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

Side by Side Diff: tests/owners_unittest.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
« no previous file with comments | « tests/gclient_utils_test.py ('k') | tests/presubmit_unittest.py » ('j') | 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 """Unit tests for owners.py.""" 6 """Unit tests for owners.py."""
7 7
8 import os
9 import sys
8 import unittest 10 import unittest
9 11
12 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
Dirk Pranke 2011/03/31 20:33:01 I'm still not fond of this. Can you add a TODO som
13
10 import owners 14 import owners
11 from tests import filesystem_mock 15 from tests import filesystem_mock
12 16
13 ben = 'ben@example.com' 17 ben = 'ben@example.com'
14 brett = 'brett@example.com' 18 brett = 'brett@example.com'
15 darin = 'darin@example.com' 19 darin = 'darin@example.com'
16 john = 'john@example.com' 20 john = 'john@example.com'
17 ken = 'ken@example.com' 21 ken = 'ken@example.com'
18 peter = 'peter@example.com' 22 peter = 'peter@example.com'
19 23
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 170
167 def test_syntax_error__unknown_set(self): 171 def test_syntax_error__unknown_set(self):
168 self.assert_syntax_error('set myfatherisbillgates\n') 172 self.assert_syntax_error('set myfatherisbillgates\n')
169 173
170 def test_syntax_error__bad_email(self): 174 def test_syntax_error__bad_email(self):
171 self.assert_syntax_error('ben\n') 175 self.assert_syntax_error('ben\n')
172 176
173 177
174 if __name__ == '__main__': 178 if __name__ == '__main__':
175 unittest.main() 179 unittest.main()
OLDNEW
« no previous file with comments | « tests/gclient_utils_test.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698