| 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 """Unit tests for checkout.py.""" | 6 """Unit tests for checkout.py.""" |
| 7 | 7 |
| 8 from __future__ import with_statement | |
| 9 import logging | 8 import logging |
| 10 import os | 9 import os |
| 11 import shutil | 10 import shutil |
| 12 import sys | 11 import sys |
| 13 import unittest | 12 import unittest |
| 14 from xml.etree import ElementTree | 13 from xml.etree import ElementTree |
| 15 | 14 |
| 16 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 15 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 17 sys.path.insert(0, os.path.dirname(ROOT_DIR)) | 16 sys.path.insert(0, os.path.dirname(ROOT_DIR)) |
| 18 | 17 |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 if '-v' in sys.argv: | 577 if '-v' in sys.argv: |
| 579 DEBUGGING = True | 578 DEBUGGING = True |
| 580 logging.basicConfig( | 579 logging.basicConfig( |
| 581 level=logging.DEBUG, | 580 level=logging.DEBUG, |
| 582 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') | 581 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') |
| 583 else: | 582 else: |
| 584 logging.basicConfig( | 583 logging.basicConfig( |
| 585 level=logging.ERROR, | 584 level=logging.ERROR, |
| 586 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') | 585 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') |
| 587 unittest.main() | 586 unittest.main() |
| OLD | NEW |