mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +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
|
|
@ -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