mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
upgrade pyflakes to 3.0.0
This commit is contained in:
parent
8c06197cd5
commit
489be4d30a
4 changed files with 6 additions and 17 deletions
|
|
@ -685,7 +685,7 @@ def test_load_plugin_ok():
|
|||
assert loaded == finder.LoadedPlugin(
|
||||
plugin,
|
||||
FlakesChecker,
|
||||
{"tree": True, "file_tokens": True, "filename": True},
|
||||
{"tree": True, "filename": True},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ def f():
|
|||
sys = sys
|
||||
"""
|
||||
tree = ast.parse(src)
|
||||
checker = pyflakes_shim.FlakesChecker(tree, [], "t.py")
|
||||
checker = pyflakes_shim.FlakesChecker(tree, "t.py")
|
||||
message_texts = [s for _, _, s, _ in checker.run()]
|
||||
assert message_texts == [
|
||||
"F823 local variable 'sys' defined in enclosing scope on line 1 referenced before assignment", # noqa: E501
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue