Fix zero-indexed column numbering

We accidentally changed column numbering from one-indexed to
zero-indexed.
This commit is contained in:
Ian Cordasco 2016-07-26 19:15:08 -05:00
parent ec6165e9d8
commit 6eca38f2f2
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
5 changed files with 11 additions and 4 deletions

View file

@ -176,7 +176,7 @@ def test_handle_error_notifies_listeners(select_list, ignore_list, error_code):
formatter=formatter)
with mock.patch('linecache.getline', return_value=''):
guide.handle_error(error_code, 'stdin', 1, 1, 'error found')
guide.handle_error(error_code, 'stdin', 1, 0, 'error found')
error = style_guide.Error(error_code, 'stdin', 1, 1, 'error found',
None)
listener_trie.notify.assert_called_once_with(error_code, error)