/opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/test
NameSizeModeActions
__pycache__/-0755rm
harness.py10040644editdlrm
test_api.py269040644editdlrm
test_builtin.py5820644editdlrm
test_checker.py59200644editdlrm
test_code_segment.py44960644editdlrm
test_dict.py52710644editdlrm
test_doctests.py128560644editdlrm
test_imports.py337030644editdlrm
test_is_literal.py45730644editdlrm
test_match.py20970644editdlrm
test_other.py516900644editdlrm
test_type_annotations.py203010644editdlrm
test_undefined_names.py235650644editdlrm
__init__.py00644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/test/test_builtin.py (582B)
""" Tests for detecting redefinition of builtins. """ from pyflakes import messages as m from pyflakes.test.harness import TestCase class TestBuiltins(TestCase): def test_builtin_unbound_local(self): self.flakes(''' def foo(): a = range(1, 10) range = a return range foo() print(range) ''', m.UndefinedLocal) def test_global_shadowing_builtin(self): self.flakes(''' def f(): global range range = None print(range) f() ''')