File: //usr/local/lib/python3.10/test/__pycache__/test_tabnanny.cpython-310.opt-1.pyc
o
�i�5 � @ s� d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl
mZmZm
Z
mZ ddlmZ dddd d
dd�ZG d
d� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )zfTesting `tabnanny` module.
Glossary:
* errored : Whitespace related problems present in file.
� )�TestCase�mockN)�captured_stderr�captured_stdout�
script_helper�findfile)�unlinkzCfruits = [
"Apple",
"Orange",
"Banana",
print(fruits)
zLif True:
print("hello")
print("world")
else:
print("else called")
zIif True:
print("hello")
print("world")
else:
print("else called")
zNif True:
print("hello")
print("world")
else:
print("else called")
zGdef my_func():
print("hello world")
if True:
print("If called")zLdef my_func():
print("Hello world")
if True:
print("If called"))�incomplete_expression�wrong_indented�nannynag_errored�
error_free�tab_space_errored_1�tab_space_errored_2c @ s* e Zd ZdZd
dd�Zdd� Zdd � ZdS )�TemporaryPyFilez+Create a temporary python source code file.� Nc C s || _ || _d S �N)�source_code�dir)�selfr � directory� r �//usr/local/lib/python3.10/test/test_tabnanny.py�__init__B s
zTemporaryPyFile.__init__c C sN t jd| jddd��}|�| j� W d � n1 sw Y |j| _| jS )N�wz.pyF)�moder �suffix�delete)�tempfile�NamedTemporaryFiler �writer �name� file_path)r �fr r r � __enter__F s
��zTemporaryPyFile.__enter__c C s t | j� d S r )r r! )r �exc_type� exc_value�
exc_tracebackr r r �__exit__N s zTemporaryPyFile.__exit__)r N)�__name__�
__module__�__qualname__�__doc__r r# r'