ok
Direktori : /proc/self/root/lib64/python3.6/test/support/__pycache__/ |
Current File : //proc/self/root/lib64/python3.6/test/support/__pycache__/__init__.cpython-36.pyc |
3 ��d�� � � @ s d Z edkred��ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZ ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl!Z"ddl#Z#ddl$m%Z% yddl&Z&ddl'Z'W n ek �rB dZ&dZ'Y nX yddl(Z)W n ek �rj 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 yddl.Z.W n ek �r2 dZ.Y nX yddl/Z/W n ek �rZ 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`dadbg\Z0G dcd� de1�Z2G ddd � d e2�Z3G ded� de2�Z4G dfd� de j5�Z6ej7�d_dhdi��Z8�d`f dk�dld�Z9dmdn� Z:dodp� Z;dqd=� Z<drd>� Z=f f djfdsd�Z>dtd9� Z?dZ@dZAdaBdaCdZDdjZEdaFdud� ZGdvd� ZHdwd� ZIdxdy� ZJejjKdz��r.�dad{d|�ZLd}d~� ZMdd�� ZNd�d�� ZOd�d�� ZPnejQZMejRZNd�d�� ZOd�d�� ZPd�d� ZQd�d�� ZRd�d� ZSd�d�� ZTd�d� ZUd�d�� ZVd�d#� ZW�dbd�d$�ZXd�d�� ZYd�d%� ZZd�d&� Z[d�d'� Z\�dcd�d(�Z]d�Z^d�Z_ej`ejafd�dJ�Zbe^fd�dK�Zcd�dM� Zdd�d�� Zeee� Zfd�d�� Zg�dfZh�diZie jjekjld��jKd��d��Zme jje*d��Zne jje+d��Zoe jje,d��Zpe jje-d��ZqejjKd��Zrejsd��Ztetdk �oxetdkZuejd�k�r�eu�r�d�nd�ZvndZvejwd�k�r�d�Zxnd�Zxd�jyexejz� �ZxdZ{xL�djD ]BZ|yej}ej~e|��e|k�r�e�W n ek �r Y nX e|Z{P �q�W exd� Z�ejd�k�r:ddl�Z�e�j�d�e��Z�ej�� Z�dZ�ejwd�k�r�ej�� jd�k�r�exd� Z�ye�j�e�� W n e�k �r� Y nX e�d�e�e�f � dZ�nBejd�k�r�yd�j�e�� W n& e�k �r� exd�j�e�dǃ Z�Y nX dZ�xF�dkD ]<Zwyewj�e�� W n& e�k �r, ej~ex�ew Z�P Y nX �q�W e{�rHexd� e{ Z�ndZ�ej�� Z�djZ�ej7�dld�d΄�Z�ej7�dmd�dЄ�Z�ej7�dnd�d��Z�e�edӃ�r�ej7d�dN� �Z�ej�j�ej�j�e���Z�ej�j�e��Z�ej�j�e�dՃZ��dod�d�Z�d�d � Z�d�d^� Z�d�dڄ Z�dddۜd�d)�Z�d�dL� Z�G d�d߄ d�e��Z��dpd�d�Z�ej7d�dU� �Z�ej7d�dV� �Z�G d�d� de��Z�G d�dW� dWej�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�ej7d�f d�d�d.��Z�ej7d�d� �Z�d�d� Z�d�d� Z�d�d� Z�d�d� Z�ej7d�d�� �Z�d�d�� Z�d�Z�d�Z�e�ed��� r2d�e� Z�d�Z�e�d� Z�d�d�� Z��d �d� Z��dqZdrZÐd�d� ZĐddX� ZŐdd_� ZƐdsZ�d�e� Z�d�e� Z�d�e� Z�ej�Z̐dd\� Z�G �d �d � �d �Zΐdt�dd6�Zϐdd7� Z�G �d d/� d/�Zѐd�d� ZҐd�d� ZӐddA� ZԐdd8� ZՐdu�d�d�Z�daאddB� Zؐd�d� ZِddE� Zڐd�d� Zېd�d� Zܐd�d� Zݐd �d!� Z�da�da�d"�d#� Z�d$�d%� Z�d&�d'� Z�d(d0� Z�d)�d*� Z�eڃ � o�ejd�k� o�ejs�d+� Z�e�j dk � o�e� Z�e jje�d,�Z�dv�d-d1�Z�d.�d/� Z�d0�d1� Z�djZ�d2dQ� Z�d3dR� Z�d4dS� Z�ej7�dw�d6�d7��Z�d8dO� Z�ej7�dx�d9dT��Z�ej7�d:dZ� �Z�ej7�d;dY� �Z�d<�d=� Z�e j�e�e�d>��d?�Z��d@�dA� Z��dB�dC� Z�G �dDdP� dPej�j��Z�G �dEd[� d[e��Z�da��dFd!� Z��dGd2� �Z d�a�dH�dI� �Z�dJd;� �Z�dKd"� �Zf �dL��dMd?��Zdf f f�dNd@��ZG �dOd]� d]��Z�dP�dQ� �Z�dR�dS� �Z f f�dT�dU��Z g f�dVda��Zd�a�dWdG� �Z ej7�dX�dY� ��Z�dZdb� �ZG �d[�d\� �d\��ZG �d]�d^� �d^��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�requires_hashdigest�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__�requires_android_level�requires_multiprocessing_queue� 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_countc @ s e Zd ZdZdS )r z*Base class for regression test exceptions.N)�__name__� __module__�__qualname__�__doc__� rd rd � /usr/lib64/python3.6/__init__.pyr | s c @ s e Zd ZdZdS )r zTest failed.N)r` ra rb rc rd rd rd re r s c @ s e Zd ZdZdS )r zTest did not run any subtests.N)r` ra rb rc rd rd rd re r � 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)r` ra rb rc rd rd rd re r � s Tc c s8 | r.t j� � t jddt� 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)rf rd rd re �_ignore_deprecated_imports� s rk F)�required_onc C sf t |��T y tj| �S tk rV } z&tjjt|��r8� tj t |���W Y dd}~X 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)rk � importlibr �ImportError�sys�platform� startswith�tuple�unittest�SkipTest�str)�name� deprecatedrl �msgrd rd re r � s c C s^ | t jkrt| � t j| = x>tt j�D ]0}|| ks@|j| d �r&t j| ||<