Sindbad~EG File Manager
�
SԚgi# � �� � d Z edk r ed� � �ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZ ddlmZ n
# e$ r dZY nw xY wg d�ZdZdZd Zd
Zej � ej � e� � � � Zej � e� � Zej � e� � Zej � e� � Z G d� de� � Z G d
� de� � Z G d� de � � Z! G d� de� � Z" G d� de
j# � � Z$d� Z%d� Z&d� Z'dZ(dZ)da*da+dZ,dZ-da.d� Z/d� Z0d� Z1d� Z2d� Z3d�d�Z4d � Z5d!� Z6d"� Z7d#� Z8d�d$�Z9dddd%�d&�Z:d�dddd%�d'�Z; e:d(�)� � Z<d*� Z=d+� Z>d,Z?d-Z@ e
jA eB�C d.� � �D d/� � d0� � ZEd�d2�ZFd�d4�ZGd�d6�ZHd�d8�ZId9� ZJd�d;�ZK e
jA ed<� � ZLe jM d=k ZNe jM �D d>� � ZO ePe d?� � ZQe jM d@vreQrdAndBZRndZRe jM dCk ZSe jM dDk ZT ePedE� � oeS oeT ZUdF� ZVeS oeT ZWdG� ZXeS oeT ZYddH�dI�ZZdZ[e jM d=k r! ej\ dJ� � dJk Z[n# e]$ r Y nw xY wdKZ^dZ_dZ`ej �a edL� � ZbdM� Zcd�dN�ZddO� Zed�dddQ�dR�ZfdS� Zgejh dT� � � ZidU� ZjdV� ZkdW� ZldX� Zmejh dY� � � ZndZ� Zod[� Zpd\Zqd]Zr ePe d^� � rd_eqz Zqd`Zreqdaz Zsdb� Ztdc� ZuddZvdeZwdf� Zxejh dg� � � Zydh� ZzdiZ{dje{z Z|dke|z Z}dle|z Z~e j Z�dme�dne�fdo�Z�dme�dndfdp�Z� G dq� dr� � Z�d�ds�Z�dt� Z�du� Z�dv� Z�dw� Z�d�dx�Z�dy� Z�dz� Z�d{� Z�d|� Z�d}� Z� e�� � oe jM d=k o e
j� d~� � Z�e�j duoe� Z� e
jA e�d� � Z�d�� Z�d�� Z�e j� e�_� da�d�� Z�ejh d�� � � Z�ejh d�� � � Z�d�� Z�d�� Z� G d�� d�e�� � Z�da�d�� Z� G d�� d�� � Z�d�� Z�d�d��d��Z� d�d��Z�d�d��Z� G d�� d�� � Z�d�� Z�ejh d�� � � Z�d�� Z�d�d��Z�g fd��Z�da�d�� Z�ejh d�� � � Z� G d�� d�� � Z�d�� Z� G d�� d�� � Z� e�� � Z� G d�� d�� � Z� e�� � Z�ej� G d�� d�� � � � Z� e�� � Z�ej� G d�� d�� � � � Z� e�� � Z�d�� Z�e j� j� Z�e�d�v sJ �d�� Z� G d�� d�� � Z�dd��d��Z�d�� Z�d�� Z�d�� Z�d�� Z�ejh d�� � � Z�d�d��Z�d�e�d�e�dne�fd��Z�d�e�dndfd��Z�d�� Z� ePe d�� � Z�d�d(d��d��Z�d�d�d�d(d��d��Z�ejh d�� � � Z� e�d�d�h� � Z�dĄ Z� e
j� ePedŦ � o ej� � � j� d�k dǦ � Z�dS )�z7Supporting definitions for the Python regression tests.ztest.supportz.support must be imported from the test package� N)�unicode_legacy_string)J�
PIPE_MAX_SIZE�verbose�
max_memuse�
use_resources�failfast�Error�
TestFailed�
TestDidNotRun�ResourceDenied�record_original_stdout�get_original_stdout�captured_stdout�captured_stdin�captured_stderr�is_resource_enabled�requires�requires_freebsd_version�requires_linux_version�requires_mac_ver�check_syntax_error�
requires_gzip�requires_bz2�
requires_lzma�
bigmemtest�bigaddrspacetest�cpython_only�
get_attribute�requires_IEEE_754�
requires_zlib�has_fork_support�
requires_fork�has_subprocess_support�requires_subprocess�has_socket_support�requires_working_socket�anticipate_failure�load_package_tests�detect_api_mismatch�check__all__�skip_if_buggy_ucrt_strfptime�check_disallow_instantiation�check_sanitizer�skip_if_sanitizer�
MS_WINDOWS� is_jython�
is_android�
is_emscripten�is_wasi�check_impl_detail�
unix_shell�setswitchinterval�open_urlresource�
reap_children�run_with_locale� swap_item�findfile�infinite_recursion� swap_attr�Matcher�set_memlimit�SuppressCrashReport�sortdict�run_with_tz�PGO�missing_compiler_executable� ALWAYS_EQ�NEVER_EQ�LARGEST�SMALLEST�LOOPBACK_TIMEOUT�INTERNET_TIMEOUT�
SHORT_TIMEOUT�LONG_TIMEOUT�
skip_on_s390xg $@g N@g >@g �r@c � � e Zd ZdZdS )r z*Base class for regression test exceptions.N��__name__�
__module__�__qualname__�__doc__� � �2/usr/local/lib/python3.11/test/support/__init__.pyr r j s � � � � � �4�4�4�4rU r c �. � � e Zd ZdZdd�� fd�
Zd� Z� xZS )r
�Test failed.N��statsc �X �� || _ || _ t � � j |g|�R � d S �N)�msgrZ �super�__init__)�selfr] rZ �args� __class__s �rV r_ zTestFailed.__init__o s6 �� ������
�������$�t�$�$�$�$�$�$rU c � � | j S r\ )r] �r` s rV �__str__zTestFailed.__str__t s � ��x�rU )rP rQ rR rS r_ re �
__classcell__�rb s @rV r
r
m sZ �� � � � � ���)-� %� %� %� %� %� %� %�
� � � � � � rU r
c �"