mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 18:46:52 +00:00
Merge branch 'read_lines_crlf' into 'master'
Fix read_lines_splits_lines test for CRLF endings This change makes the test pass for when files are saved with CRLF Windows-style line endings since those are included in various `.readlines()` methods by default. See merge request !96
This commit is contained in:
commit
beee924f16
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