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: tests/scm_unittest.py

Issue 10165007: Remove python 2.5 compatibility code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 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_test.py ('k') | trychange.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/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 """Unit tests for scm.py.""" 6 """Unit tests for scm.py."""
7 7
8 from __future__ import with_statement
9 import logging 8 import logging
10 import os 9 import os
11 import sys 10 import sys
12 import unittest 11 import unittest
13 12
14 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 13 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
15 14
16 from testing_support import fake_repos 15 from testing_support import fake_repos
17 from testing_support.super_mox import SuperMoxTestBase 16 from testing_support.super_mox import SuperMoxTestBase
18 17
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 # Asserting the tree is not sufficient, svn status must come out clear too. 455 # Asserting the tree is not sufficient, svn status must come out clear too.
457 self.assertEquals('', self._capture(['status'])) 456 self.assertEquals('', self._capture(['status']))
458 457
459 458
460 if __name__ == '__main__': 459 if __name__ == '__main__':
461 if '-v' in sys.argv: 460 if '-v' in sys.argv:
462 logging.basicConfig(level=logging.DEBUG) 461 logging.basicConfig(level=logging.DEBUG)
463 unittest.main() 462 unittest.main()
464 463
465 # vim: ts=2:sw=2:tw=80:et: 464 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « tests/gclient_test.py ('k') | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698