Your IP : 216.73.216.213
�
�0�i�) � � � 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�d!�Z5d"� Z6d#� Z7d$� Z8d%� Z9d�d&�Z:dddd'�d(�Z;d�dddd'�d)�Z< e;d*�+� � Z=d,� Z>d-� Z?d.Z@d/ZA e
jB eC�D d0� � �E d1� � d2� � ZFd�d4�ZGd�d6�ZHd�d8�ZId�d:�ZJd;� ZKd�d=�ZL e
jB ed>� � ZMe jN d?k ZOe jN �E d@� � ZP eQe dA� � ZRe jN dBvreRrdCndDZSndZSe jN dEk ZTe jN dFk ZU eQedG� � oeT oeU ZVdH� ZWeT oeU ZXdI� ZYeT oeU ZZddJ�dK�Z[dZ\e jN d?k r! ej] dL� � dLk Z\n# e^$ r Y nw xY wdMZ_dZ`dZaej �b edN� � ZcdO� Zdd�dP�ZedQ� Zfd�dddS�dT�ZgdU� Zheji dV� � � ZjdW� ZkdX� ZldY� ZmdZ� Zneji d[� � � Zod\� Zpd]� Zqd^Zrd_Zs eQe d`� � rdaerz ZrdbZserdcz Ztdd� Zude� ZvdfZwdgZxdh� Zyddi�dj�Zzeji dk� � � Z{dl� Z|dmZ}dne}z Z~doe~z Zdpe~z Z�e j� Z�dqe�dre�fds�Z�dqe�drdfdt�Z� G du� dv� � Z�d�dw�Z�dx� Z�dy� Z�dz� Z�d{� Z�d�d|�Z�d}� Z�d~� Z�d� Z�d�� Z�d�� Z� e�� � oe jN d?k o e
j� d�� � Z�e�j duoe� Z� e
jB e�d�� � Z�d�� Z�d�� Z�e j� e�_� da�d�� Z�eji d�� � � Z�eji 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�eji d�� � � Z�d�� Z�d�d��Z�g fd��Z�da�d�� Z�eji 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�eji d�� � � Z�d�d��Z�d�e�d�e�dre�fd��Z�d�e�drdfd��Z�d�� Z� eQe d�� � Z�d�d*d��d��Z�d�d�d�d*dÜdĄZ�eji dń � � Z� e�d�d�h� � Z�dȄ Z� e
j� eQedɦ � o ej� � � j� d�k d˦ � Z�dre�e� fd̄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__� � �</opt/alt/python311/lib64/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 �"