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

Side by Side Diff: tests/fix_encoding_test.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 # coding=utf8 2 # coding=utf8
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Unit tests for fix_encoding.py.""" 7 """Unit tests for fix_encoding.py."""
8 8
9 import os 9 import os
10 import sys 10 import sys
11 import unittest 11 import unittest
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 self.assertEquals(sys.stderr.encoding, sys.getdefaultencoding()) 51 self.assertEquals(sys.stderr.encoding, sys.getdefaultencoding())
52 52
53 def test_multiple_calls(self): 53 def test_multiple_calls(self):
54 # Shouldn't do anything. 54 # Shouldn't do anything.
55 self.assertEquals(False, fix_encoding.fix_encoding()) 55 self.assertEquals(False, fix_encoding.fix_encoding())
56 56
57 57
58 if __name__ == '__main__': 58 if __name__ == '__main__':
59 assert fix_encoding.fix_encoding() 59 assert fix_encoding.fix_encoding()
60 unittest.main() 60 unittest.main()
OLDNEW
« no previous file with comments | « tests/filesystem_mock.py ('k') | tests/gcl_unittest.py » ('j') | tests/owners_unittest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698