|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��g�5 � @ s� d Z ddlmZmZ ddlmZ ddlZddlZddlZddlZddlZddl Z ddl
mZmZm
Z
mZmZ 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�mock)r N)�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 �1/opt/cppython/lib/python3.8/test/test_tabnanny.py�__init__B s zTemporaryPyFile.__init__c C s: t jd| jddd��}|�| j� W 5 Q R X |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'