mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Fix / improve recently merged patches + CI
This commit is contained in:
parent
f00d483ea5
commit
d4b0073167
7 changed files with 57 additions and 29 deletions
|
|
@ -1,4 +1,6 @@
|
|||
"""Integration tests for the main entrypoint of flake8."""
|
||||
import os
|
||||
|
||||
import mock
|
||||
|
||||
from flake8 import utils
|
||||
|
|
@ -69,10 +71,11 @@ def test_extend_exclude(tmpdir, capsys):
|
|||
application.Application().run(['--extend-exclude=vendor,legacy'])
|
||||
|
||||
out, err = capsys.readouterr()
|
||||
assert out == '''\
|
||||
expected_out = '''\
|
||||
./project/t.py:1:1: F401 'os' imported but unused
|
||||
./project/t.py:2:1: F401 'sys' imported but unused
|
||||
'''
|
||||
assert out == expected_out.replace('/', os.sep)
|
||||
assert err == ''
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue