python (3.12.0)
Αe7 d Z ddlmZmZ ddlZddlZddlZddlZddlZddl Z ddl
mZmZm
Z
mZ ddlmZ dddd d
ddZ G d
d Z G d de Z G d de Z G d de Z G d de Z G d de Z G d de Zy)zfTesting `tabnanny` module.
Glossary:
* errored : Whitespace related problems present in file.
)TestCasemockN)captured_stderrcaptured_stdout
script_helperfindfile)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_expressionwrong_indentednannynag_errored
error_freetab_space_errored_1tab_space_errored_2c $ e Zd ZdZddZd Zd Zy)TemporaryPyFilez+Create a temporary python source code file.Nc || _ || _ y N)source_codedir)selfr directorys F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_tabnanny.py__init__zTemporaryPyFile.__init__B s & c t j d| j dd 5 }|j | j d d d j
| _ | j S # 1 sw Y &xY w)Nwz.pyF)moder suffixdelete)tempfileNamedTemporaryFiler writer name file_path)r fs r __enter__zTemporaryPyFile.__enter__F s^
(
($((5
&
GGD$$% & ~~ &