Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 git_number.py""" | 6 """Unit tests for git_number.py""" |
| 7 | 7 |
| 8 import binascii | 8 import binascii |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 self.repo.run(self.gn.clear_caches, True) | 76 self.repo.run(self.gn.clear_caches, True) |
| 77 self.assertEqual( | 77 self.assertEqual( |
| 78 None, | 78 None, |
| 79 self.repo.run(self.gn.get_num, binascii.unhexlify(self.repo['A']))) | 79 self.repo.run(self.gn.get_num, binascii.unhexlify(self.repo['A']))) |
| 80 | 80 |
| 81 | 81 |
| 82 if __name__ == '__main__': | 82 if __name__ == '__main__': |
| 83 sys.exit(coverage_utils.covered_main( | 83 sys.exit(coverage_utils.covered_main( |
| 84 os.path.join(DEPOT_TOOLS_ROOT, 'git_number.py'), | 84 os.path.join(DEPOT_TOOLS_ROOT, 'git_number.py'), |
| 85 '3.7' | 85 '3.7' |
| 86 )) | 86 )) |
|
Adrian Kuegel
2015/05/20 14:28:35
Looks like there was no newline at the end of this
| |
| OLD | NEW |