AlkantarClanX12
Current Path : /proc/self/root/usr/lib64/python3.6/test/support/__pycache__/ |
Current File : //proc/self/root/usr/lib64/python3.6/test/support/__pycache__/__init__.cpython-36.pyc |
3 ��f�� � � @ 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�dfdhdi��Z8�dgf dk�dld�Z9dmdn� Z:dodp� Z;dqd=� Z<drd>� Z=f f djfdsd�Z>dtd9� Z?dZ@dZAdaBdaCdZDdjZEdaFdud� ZGdvd� ZHdwd� ZIdxdy� ZJejjKdz��r.�dhd{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�did�d$�ZXd�d�� ZYd�d%� ZZd�d&� Z[d�d'� Z\�djd�d(�Z]d�Z^d�Z_ej`ejafd�dJ�Zbe^fd�dK�Zcd�dM� Zdd�d�� Zeee� Zfd�d�� Zg�dmZh�dpZie 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�dqD ]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�drD ]<Zwyewj�e�� W n& e�k �r, ej~ex�ew Z�P Y nX �q�W e{�rHexd� e{ Z�ndZ�ej�� Z�djZ�djZ�ej7�dsd�d΄�Z�ej7�dtd�dЄ�Z�ej7�dud�d��Z�e�edӃ�r�ej7d�dN� �Z�ej�j�ej�j�e���Z�ej�j�e��Z�ej�j�e�dՃZ��dvd�d�Z�d�d � Z�d�d^� Z�d�dڄ Z�dddۜd�d)�Z�d�dL� Z�G d�d߄ d�e��Z��dwd�d�Z�ej7d�dU� �Z�ej7d�e�djfd�d��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��� rLd�e� Z�d�Z�e��d Zd�d� ZÐd�d� ZĐdxZŐdyZƐd�d� Zǐd dX� ZȐd d_� ZɐdzZ�d�e� Z�d�e� Z�d�e� Z�ej�Zϐdd\� Z�G �d�d � �d �Zѐd{�dd6�ZҐdd7� Z�G �dd/� d/�ZԐd�d� ZՐd�d� ZddA� Zאdd8� Zؐd|�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 �oe� Z�e jje�d/�Z�d}�d0d1�Z�d1�d2� Z�d3�d4� Z�djZ�d5dQ� Z�d6dR� Z�d7dS� Z�ej7�d~�d9�d:��Z�d;dO� Z�ej7�d�d<dT��Z�ej7�d=dZ� �Z�ej7�d>dY� �Z��d?�d@� Z�e j�e�e�dA��dB�Z��dC�dD� Z��dE�dF� Z�G �dGdP� dPej�j��Z�G �dHd[� d[e���Z d�a�dId!� �Z�dJd2� �Zd�a�dK�dL� �Z�dMd;� �Z�dN�dO� �Z�dPd"� �Zf �dQ��dRd?��Z df f f�dSd@��Z G �dTd]� d]��Z�dU�dV� �Z�dW�dX� �Z f f�dY�dZ��Zg f�d[da��Zd�a�d\dG� �Zej7�d]�d^� ��Z�d_db� �ZG �d`�da� �da��ZG �db�dc� �dc��Zej7�dd�de� ��ZdS (� 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/test/support/__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| ||<