mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 02:26:54 +00:00
Merge branch 'fix_linters' into 'master'
Fix linters See merge request pycqa/flake8!285
This commit is contained in:
commit
f38f274e76
2 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ def test_show_source_returns_nothing_when_not_showing_source():
|
|||
formatter = base.BaseFormatter(options(show_source=False))
|
||||
assert formatter.show_source(
|
||||
style_guide.Violation('A000', 'file.py', 1, 1, 'error text', 'line')
|
||||
) is ''
|
||||
) == ''
|
||||
|
||||
|
||||
def test_show_source_returns_nothing_when_there_is_source():
|
||||
|
|
@ -60,7 +60,7 @@ def test_show_source_returns_nothing_when_there_is_source():
|
|||
formatter = base.BaseFormatter(options(show_source=True))
|
||||
assert formatter.show_source(
|
||||
style_guide.Violation('A000', 'file.py', 1, 1, 'error text', None)
|
||||
) is ''
|
||||
) == ''
|
||||
|
||||
|
||||
@pytest.mark.parametrize('line, column', [
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ def test_next_logical_line_updates_the_previous_logical_line():
|
|||
file_processor.indent_level = 1
|
||||
file_processor.logical_line = 'a = 1'
|
||||
assert file_processor.previous_logical == ''
|
||||
assert file_processor.previous_indent_level is 0
|
||||
assert file_processor.previous_indent_level == 0
|
||||
|
||||
file_processor.next_logical_line()
|
||||
assert file_processor.previous_logical == 'a = 1'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue