mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Fix read_lines_splits_lines test for CRLF endings
This commit is contained in:
parent
ec6165e9d8
commit
ca02a8c88d
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ def test_read_lines_splits_lines():
|
|||
file_processor = processor.FileProcessor(__file__, options_from())
|
||||
lines = file_processor.lines
|
||||
assert len(lines) > 5
|
||||
assert '"""Tests for the FileProcessor class."""\n' in lines
|
||||
assert any('"""Tests for the FileProcessor class."""' in line.rstrip()
|
||||
for line in lines)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('first_line', [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue