
    yIfF                     >    d Z ddlmZ ddlmZ  G d de          ZdS )z/
Tests for detecting redefinition of builtins.
    )messages)TestCasec                       e Zd Zd Zd ZdS )TestBuiltinsc                 F    |                      dt          j                   d S )Nz
        def foo():
            a = range(1, 10)
            range = a
            return range

        foo()

        print(range)
        )flakesmUndefinedLocalselfs    N/var/www/piapp/venv/lib/python3.11/site-packages/pyflakes/test/test_builtin.pytest_builtin_unbound_localz'TestBuiltins.test_builtin_unbound_local
   s/     	 		 		 		 		 		    c                 0    |                      d           d S )Nzr
        def f():
            global range
            range = None
            print(range)

        f()
        )r   r   s    r   test_global_shadowing_builtinz*TestBuiltins.test_global_shadowing_builtin   s'      	 	 	 	 	r   N)__name__
__module____qualname__r   r    r   r   r   r      s2        
 
 
    r   r   N)__doc__pyflakesr   r	   pyflakes.test.harnessr   r   r   r   r   <module>r      si     # " " " " " * * * * * *    8     r   