관리-도구
편집 파일: __init__.cpython-37.opt-1.pyc
B � f�� � ] @ sF d Z edkred��ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl!Z!ddl"Z#ddl$Z$ddl%m&Z& yddl'Z(W n ek �r> dZ(Y nX yddl)Z)W n ek �rf dZ)Y nX yddl*Z*W n ek �r� dZ*Y nX yddl+Z+W n ek �r� dZ+Y nX yddl,Z,W n ek �r� dZ,Y nX yddl-Z-W n ek �r dZ-Y nX ddd d ddd ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcg]Z.G ddd� de/�Z0G ded � d e0�Z1G dfd� de0�Z2G dgd� de!j3�Z4ej5�dfdidj��Z6�dgdldm�dnd�Z7dodp� Z8dqdr� Z9dsd<� Z:dtd=� Z;�dhdud�Z<dvd8� Z=dZ>dZ?da@daAdZBdkZCdaDdwd� ZEdxd� ZFdyd� ZGdzd{� ZHej�Id|��rؐdid}d~�ZJdd�� ZKd�d�� ZLd�d�� ZMd�d�� ZNnejOZKejPZLd�d�� ZMd�d�� ZNd�d� ZOd�d�� ZPd�d� ZQd�d�� ZRd�d� ZSd�d�� ZTd�d#� ZU�djd�d$�ZVd�d�� ZWd�d%� ZXd�d&� ZYd�d'� ZZd�Z[d�Z\d�Z]ej^ej_fd�dH�Z`e[fd�dI�Zad�dK� Zbd�d�� Zcec� Zdd�d�� Zed�Zfd�Zge!�hei�jd���Id��d��Zke!�he)d��Zle!�he*d��Zme!�he+d��Zne!�he,d��Zoej�Id��Zpeqed��Zrejd�k�r"er�rd�nd�ZsndZsejtd�k�r8d�Zund�Zud��veue�w� �Zud�ZxdZyxJd�D ]BZzye�{e�|ez��ezk�rze}�W n e}k �r� Y nX ezZyP �qZW eud� Z~ejd�k�r�ddlZe��d�e~�Z~e��� Z�dZ�ejtd�k�r4e��� jd�k�rveud� Z�ye���e�� W n e�k �r Y nX e�d�e�e�f � dZ�nBejd�k�rvyd���e�� W n& e�k �rt eud���e�d�� Z�Y nX dZ�xDd�D ]<Ztyet��e�� W n& e�k �r� e�|eu�et Z�P Y nX �q�W ey�r�eud� ey Z�ndZ�e��� Z�dkZ�ej5�dkd�dÄ�Z�ej5�dld�dń�Z�ej5�dmd�d��Z�eqedȃ�r4ej5d�dL� �Z�ej���ej���e���Z�ej���e��Z�ej���e�dʡZ��dnd�d�Z�d�d � Z�d�d\� Z�d�dτ Z�dddМd�d(�Z�d�dJ� Z�G d�dԄ d�e��Z��dod�dքZ�ej5d�dS� �Z�ej5d�dT� �Z�G d�d� de��Z�G d�dU� dUej�j��Z�G d�d܄ d�e��Z�G d�d)� d)e��Z�e�e�ej�dލZ�e�e�ej�dލZ�e�e�ej�dލZ�d�d� Z�ej5d�dld�d�d-��Z�ej5d�d� �Z�d�d� Z�d�d� Z�d�d� Z�d�d� Z�ej5d�d� �Z�d�d� Z�d�Z�d�Z�eqed��r�d�e� Z�d�Z�e�d� Z�d�d�� Z�d�d�� Z�d�Z�d�Z�d�d�� Z�d�dV� Z�d�d]� Z�d�ZŐd e� Z�d�e� Zǐde� Z�ej�ZʐddZ� Z�G �d�d� �d�Z̐dp�dd5�Z͐dd6� Z�G �dd.� d.�Zϐd�d � ZАd �d� Zѐdd7� ZҐdq�d �d�ZӐd�d� ZԐddC� ZՐd�d� Zd�d� Zאd�d� Zؐd�d� Z�da�da�daܐd�d� Zݐd�d� Zސdr�d�d�Zߐd �d!� Z�d"d/� Z�d#�d$� Z�eՃ � oXejd�k� oXe��d%� Z�e�j dk � oje� Z�e!�he�d&�Z�ds�d'd0�Z�d(�d)� Z�d*�d+� Z�dka�d,dO� Z�d-dP� Z�d.dQ� Z�ej5�dt�d0�d1��Z�du�d2�d3�Z�d4dM� Z�ej5�dv�d5dR��Z�ej5�d6dX� �Z�ej5�d7dW� �Z�d8�d9� Z�e!��eqe�d:��d;�Z��d<�d=� Z��d>�d?� Z�G �d@dN� dNej�j��Z�G �dAdY� dYe��Z�da��dBd!� Z��dCd1� Z�d�a �dD�dE� �Z�dFd:� �Zd�a�dGd@� �Z�dHd"� �Zdl�dI��dJd>��Z�dw�dKd?��ZG �dLd[� d[��Z�dM�dN� �Z �dO�dP� �Z �dx�dQ�dR��Zg f�dSd_��Zd�a �dTdE� �Zej5�dU�dV� ��Z�dWd`� �ZG �dX�dY� �dY��Z�dZ�d[� �ZG �d\�d]� �d]��ZG �d^�d_� �d_��Z�e� �Ze �jG �d`�da� �da���Z�e� �Ze �jG �db�dc� �dc���Z�e� �Zej5�dd�de� ��ZdS (y z7Supporting definitions for the Python regression tests.ztest.supportz.support must be imported from the test package� N� )�get_test_runner� PIPE_MAX_SIZE�verbose� max_memuse� use_resources�failfast�Error� TestFailed� TestDidNotRun�ResourceDenied� import_module�import_fresh_module�CleanImport�unload�forget�record_original_stdout�get_original_stdout�captured_stdout�captured_stdin�captured_stderr�TESTFN�SAVEDCWD�unlink�rmtree�temp_cwd�findfile�create_empty_file�can_symlink�fs_is_case_insensitive�is_resource_enabled�requires�requires_freebsd_version�requires_linux_version�requires_mac_ver�check_syntax_error�TransientResource�time_out�socket_peer_reset�ioerror_peer_reset�transient_internet�BasicTestRunner�run_unittest�run_doctest�skip_unless_symlink� requires_gzip�requires_bz2� requires_lzma� bigmemtest�bigaddrspacetest�cpython_only� get_attribute�requires_IEEE_754�skip_unless_xattr� requires_zlib�anticipate_failure�load_package_tests�detect_api_mismatch�check__all__�skip_unless_bind_unix_socket� is_jython� is_android�check_impl_detail� unix_shell�setswitchinterval�HOST�IPV6_ENABLED�find_unused_port� bind_port�open_urlresource�bind_unix_socket� temp_umask� reap_children�TestHandler�threading_setup�threading_cleanup�reap_threads� start_threads�check_warnings�check_no_resource_warning�EnvironmentVarGuard�run_with_locale� swap_item� swap_attr�Matcher�set_memlimit�SuppressCrashReport�sortdict�run_with_tz�PGO�missing_compiler_executable�fd_count� ALWAYS_EQ�LARGEST�SMALLESTc @ s e Zd ZdZdS )r z*Base class for regression test exceptions.N)�__name__� __module__�__qualname__�__doc__� re re �:/opt/alt/python37/lib64/python3.7/test/support/__init__.pyr s s c @ s e Zd ZdZdS )r zTest failed.N)ra rb rc rd re re re rf r v s c @ s e Zd ZdZdS )r zTest did not run any subtests.N)ra rb rc rd re re re rf r y s c @ s e Zd ZdZdS )r z�Test skipped because it requested a disallowed resource. This is raised when a test calls requires() for a resource that has not be enabled. It is used to distinguish between expected and unexpected skips. N)ra rb rc rd re re re rf r | s Tc c s8 | r.t �� � t �ddt� dV W dQ R X ndV dS )z�Context manager to suppress package and module deprecation warnings when importing them. If ignore is False, this context manager has no effect. �ignorez.+ (module|package)N)�warnings�catch_warnings�filterwarnings�DeprecationWarning)rg re re rf �_ignore_deprecated_imports� s rl Fre )�required_onc C sf t |��T y t�| �S tk rV } z$tj�t|��r8� t� t |���W dd}~X Y nX W dQ R X dS )ac Import and return the module to be tested, raising SkipTest if it is not available. If deprecated is True, any module or package deprecation messages will be suppressed. If a module is required on a platform but optional for others, set required_on to an iterable of platform prefixes which will be compared against sys.platform. N)rl � importlibr �ImportError�sys�platform� startswith�tuple�unittest�SkipTest�str)�name� deprecatedrm �msgre re rf r � s c C s^ | t jkrt| � t j| = x>tt j�D ]0}|| ks@|�| d �r&t j| ||<