????

Your IP : 18.222.156.75


Current Path : /lib/python3.10/test/libregrtest/__pycache__/
Upload File :
Current File : //lib/python3.10/test/libregrtest/__pycache__/setup.cpython-310.pyc

o

�*�g��@s�ddlZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
zddlZWney7dZYnwddl
mZmZdZdd�Zdd	�Zd
d�ZdS)�N)�support)�TESTFN_UNDECODABLE�FS_NONASCII)�setup_unraisable_hook�setup_threading_excepthook�PYTHONREGRTEST_UNICODE_GUARDc		Csjztj��}Wn
ttfyd}Yn-wtjd|d�g}ttd�r)|�	tj
�ttd�r4|�	tj�|D]
}tj|d|d�q6t
�t�t�tj�|jr\tj�dtj�|j��tj��D](}t|d�r{t|j�D]
\}}tj�|�|j|<qmt|dd�r�tj�|j�|_qa|jr�d	tj_ t�!�|j"dur�t�#|j"�|j$dur�t%�&|j$�t�'|j(o�|j(d
k�|j)t_)ttd�r�dd
�}t�*|�t+�t,�|j-du�rt.tj/|j-d�t_/t.tj0|j-d�t_0t1tj2|j-�t_2t1tj3|j-�t_3t1tj/|j-�t_/t1tj0|j-�t_0|j4�rddl5m6}d|_7t8�r'tj9�r'tj:�;t<�=�t8�dSt>�r3tj?�;t<t>�dSdS)NT)�all_threads�file�SIGALRM�SIGUSR1)�chainr	r�__path__�__file__F��addaudithookcSsdS�N�)�name�argsrr�-/usr/lib/python3.10/test/libregrtest/setup.py�_test_audit_hookUsz%setup_tests.<locals>._test_audit_hook�(�)�RegressionTestResult)@�sys�
__stderr__�fileno�
ValueError�AttributeError�faulthandler�enable�hasattr�signal�appendr
r�register�_adjust_resource_limits�replace_stdoutr�record_original_stdout�stdout�testdir�path�insert�os�abspath�modules�values�	enumerater
�getattrr�
huntrleaks�unittest�
BaseTestSuite�_cleanup�_deactivate_opcache�memlimit�set_memlimit�	threshold�gc�
set_threshold�suppress_msvcrt_asserts�verbose�
use_resourcesrrr�timeout�max�
SHORT_TIMEOUT�LONG_TIMEOUT�min�LOOPBACK_TIMEOUT�INTERNET_TIMEOUT�xmlpath�test.support.testresultr�USE_XMLr�supports_bytes_environ�environb�
setdefault�UNICODE_GUARD_ENV�encoder�environ)	�ns�	stderr_fd�signals�signum�module�indexr*rrrrr�setup_testssl�


�



�rUcsZtj�z���}Wn
tyYdSwt|d�jdddd�t_�fdd�}t�|�dS)	z�Set stdout encoder error handler to backslashreplace (as stderr error
    handler) to avoid UnicodeEncodeError when printing a tracebackN�w�backslashreplaceF�
)�encoding�errors�closefd�newlinecstj���t_dSr)rr(�closer�r(rr�restore_stdout�s

z&replace_stdout.<locals>.restore_stdout)rr(rr�openrY�atexitr$)�fdr_rr^rr&ss��r&cCs�zddl}ddlm}m}Wn
tyYdSw|�|�\}}d}||krh||krjt||�}z|�|||f�td|�d|���WdStt	fyg}ztd|�d|�d	|�d
��WYd}~dSd}~wwdSdS)z5Adjust the system resource limits (ulimit) if needed.rN)�
RLIMIT_NOFILE�
RLIM_INFINITYizRaised RLIMIT_NOFILE: z -> z#Unable to raise RLIMIT_NOFILE from z to z: �.)
�resourcercrd�ImportError�	getrlimitrC�	setrlimit�printr�OSError)rfrcrd�fd_limit�max_fds�desired_fds�new_fd_limit�errrrrr%�s,�

�����r%)rarr,r"rr3�testr�test.support.os_helperrrr:rg�test.libregrtest.utilsrrrLrUr&r%rrrr�<module>s$�^

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...