| OLD | NEW |
| 1 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) | 1 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions | 4 # modification, are permitted provided that the following conditions |
| 5 # are met: | 5 # are met: |
| 6 # 1. Redistributions of source code must retain the above copyright | 6 # 1. Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # 2. Redistributions in binary form must reproduce the above copyright | 8 # 2. Redistributions in binary form must reproduce the above copyright |
| 9 # notice, this list of conditions and the following disclaimer in the | 9 # notice, this list of conditions and the following disclaimer in the |
| 10 # documentation and/or other materials provided with the distribution. | 10 # documentation and/or other materials provided with the distribution. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 errors.append(error) | 52 errors.append(error) |
| 53 | 53 |
| 54 current_dir = os.path.dirname(__file__) | 54 current_dir = os.path.dirname(__file__) |
| 55 file_path = os.path.join(current_dir, "python_unittest_input.py") | 55 file_path = os.path.join(current_dir, "python_unittest_input.py") |
| 56 | 56 |
| 57 checker = PythonChecker(file_path, _mock_handle_style_error) | 57 checker = PythonChecker(file_path, _mock_handle_style_error) |
| 58 checker.check(lines=[]) | 58 checker.check(lines=[]) |
| 59 | 59 |
| 60 self.assertEqual(errors, [ | 60 self.assertEqual(errors, [ |
| 61 (4, "pep8/W291", 5, "trailing whitespace"), | 61 (4, "pep8/W291", 5, "trailing whitespace"), |
| 62 (4, "pylint/E0602(undefined-variable)", 5, | 62 (4, "pylint/E1601(print-statement)", 5, "[] print statement used"), |
| 63 "[] Undefined variable 'error'"), | 63 (4, "pylint/E0602(undefined-variable)", 5, "[] Undefined variable 'e
rror'"), |
| 64 ]) | 64 ]) |
| OLD | NEW |