X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/test
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pyflakes
/
test
/
ðŸ“
..
📄
__init__.py
(0 B)
ðŸ“
__pycache__
📄
harness.py
(1004 B)
📄
test_api.py
(26.27 KB)
📄
test_builtin.py
(582 B)
📄
test_checker.py
(5.78 KB)
📄
test_code_segment.py
(4.39 KB)
📄
test_dict.py
(5.15 KB)
📄
test_doctests.py
(12.55 KB)
📄
test_imports.py
(32.91 KB)
📄
test_is_literal.py
(4.47 KB)
📄
test_match.py
(2.05 KB)
📄
test_other.py
(50.48 KB)
📄
test_type_annotations.py
(19.83 KB)
📄
test_undefined_names.py
(23.01 KB)
Editing: test_builtin.py
""" 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() ''')
Upload File
Create Folder