
    <|h                       d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZd dl	Z	ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dd	l
mZ dd
l
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
m Z  ddl
m!Z! ddl
m"Z" ddl
m#Z# ddl$m%Z% e Z&dZ'dZ(d Z) e)e'      Z' e)e(      Z(d Z*g dZ+e re+d d!gz  Z+ere+d"gz  Z+d# ejX                  d$d%      v re+d&gz  Z+e"r[e+d'd(gz  Z+e+g d)z  Z+e re+d*gz  Z+ere+d+gz  Z+ejZ                  j]                  d,      re+d-gz  Z+ere+g d.z  Z+ere+g d/z  Z+erere+d0gz  Z+er	e#re+g d1z  Z+erej^                  dd2 d3k(  r	e re+d4d5gz  Z+erere+d6gz  Z+er	ere+g d7z  Z+d8 Z0ejb                  d9        Z2ejb                  d:        Z3i Z4 G d; d<e5      Z6e re+d=gz  Z+er6e+g d>z  Z+ejn                  dd2 d?k  re+d@dAgz  Z+e4jq                  e3e3e3e3dB       ere+g dCz  Z+ere+dDdEgz  Z+e+g dFz  Z+e+g dGz  Z+ere+g dHz  Z+e+dIgz  Z+er%e+d(gz  Z+e+g dJz  Z+e re+g dKz  Z+e+dLdMgz  Z+ere+dNgz  Z+erRe4jq                  i dOe2dPe2dQe2dRe2dSe2dTe2dUe2dVe2dWe2dXe2dYe2dZe2d[e2d\e2d]e2d^e2d_e2e2e2e2e2e2e2e2e2e2e2e2d`       e+g daz  Z+e re+dbgz  Z+ere+dcd*gz  Z+ere+d&gz  Z+e+g ddz  Z+ere+dedfgz  Z+e+dggz  Z+e+g dhz  Z+e+digz  Z+e+djgz  Z+e+g dkz  Z+ere+g dlz  Z+e+g dmz  Z+ejn                  ddn dok  re+dpdqgz  Z+ejn                  ddn drk  re+g dsz  Z+ere+dtgz  Z+e+dugz  Z+e re+g dvz  Z+er
erese+dtgz  Z+er e+dwdxgz  Z+ejn                  ddn dyk  re+g dzz  Z+ere re+g z  Z+ere+d{gz  Z+ere+g d|z  Z+ere+d}d~gz  Z+er)e+g dz  Z+ejn                  ddn dk  re+g dz  Z+ere+g dz  Z+er\e+dgz  Z+ejn                  ddn dk  re+g dz  Z+ere+dgz  Z+er e+g dz  Z+ejn                  ddn dk  re+g dz  Z+e!r	ere+ddgz  Z+ere+dtgz  Z+ere+dgz  Z+e rere+dgz  Z+ere+g z  Z+ere+g dz  Z+ere+dgz  Z+d Z9 e9e+      Z: e9e4      Z;d Z<y)    )print_functionabsolute_importdivisionN   )RUNNING_ON_APPVEYOR)RUNNING_ON_TRAVIS)RESOLVER_NOT_SYSTEM)RESOLVER_ARES)RESOLVER_DNSPYTHON)RUNNING_ON_CI)RUNNING_ON_MUSLLINUX)RUN_COVERAGE)PYPY)PYPY3)PY38)PY39)PY39_EXACTLY)PY310)PY311)PY312)PY313)WIN)OSX)LINUX)LIBUV)CFFI_BACKEND)flakya  test_patched_select.SelectTestCase.test_error_conditions
test_patched_ftplib.*.test_all_errors
test_patched_ftplib.*.test_getwelcome
test_patched_ftplib.*.test_sanitize
test_patched_ftplib.*.test_set_pasv
#test_patched_ftplib.TestIPv6Environment.test_af
test_patched_socket.TestExceptions.testExceptionTree
test_patched_socket.Urllib2FileobjectTest.testClose
test_patched_socket.TestLinuxAbstractNamespace.testLinuxAbstractNamespace
test_patched_socket.TestLinuxAbstractNamespace.testMaxName
test_patched_socket.TestLinuxAbstractNamespace.testNameOverflow
test_patched_socket.FileObjectInterruptedTestCase.*
test_patched_urllib.*
test_patched_asyncore.HelperFunctionTests.*
test_patched_httplib.BasicTest.*
test_patched_httplib.HTTPSTimeoutTest.test_attributes
test_patched_httplib.HeaderTests.*
test_patched_httplib.OfflineTest.*
test_patched_httplib.HTTPSTimeoutTest.test_host_port
test_patched_httplib.SourceAddressTest.testHTTPSConnectionSourceAddress
test_patched_select.SelectTestCase.test_error_conditions
test_patched_smtplib.NonConnectingTests.*
test_patched_urllib2net.OtherNetworkTests.*
test_patched_wsgiref.*
test_patched_subprocess.HelperFunctionTests.*
a)  
test_patched_socket.GeneralModuleTests.*
test_patched_httpservers.BaseHTTPRequestHandlerTestCase.*
test_patched_queue.*
test_patched_signal.SiginterruptTest.*
test_patched_urllib2.*
test_patched_ssl.*
test_patched_signal.BasicSignalTests.*
test_patched_threading_local.*
test_patched_threading.*
c                    | j                  d      D cg c]B  }|j                         r0|j                         j                  dd      j                  dd      D } }t        j                  ddj                  |       z        S c c}w )N
z\.z\\.*z.*?z^%s$|)splitstripreplacerecompilejoin)testsxs     a/var/www/html/test/engine/venv/lib/python3.12/site-packages/gevent/testing/patched_tests_setup.pymake_rer+   Z   sq    kk$'61779 WWYuf-55c5A 6E 6::fsxx.//6s   ABc                 \    t         j                  |       yt        j                  |       yy)a}  
    >>> get_switch_expected('test_patched_select.SelectTestCase.test_error_conditions')
    False
    >>> get_switch_expected('test_patched_socket.GeneralModuleTests.testCrucialConstants')
    False
    >>> get_switch_expected('test_patched_socket.SomeOtherTest.testHello')
    True
    >>> get_switch_expected("test_patched_httplib.BasicTest.test_bad_status_repr")
    False
    NFT)ignore_switch_testsmatchno_switch_tests)fullnames    r*   get_switch_expectedr1   d   s/       *6X&2    )73test_signal.GenericTests.test_functions_module_attrz:test_threading.ThreadTests.test_no_refcycle_through_targetz.test_httplib.HTTPSTest.test_local_bad_hostnamez/test_httplib.HTTPSTest.test_local_good_hostnamez.test_httplib.HTTPSTest.test_local_unknown_certz9test_threading.ThreadTests.test_PyThreadState_SetAsyncExcz:test_threading.ThreadTests.test_join_nondaemon_on_shutdownz/test_urllib2net.TimeoutTest.test_ftp_no_timeoutz,test_urllib2net.TimeoutTest.test_ftp_timeoutz0test_urllib2net.TimeoutTest.test_http_no_timeoutz-test_urllib2net.TimeoutTest.test_http_timeoutz*test_urllib2net.OtherNetworkTests.test_ftpz2test_urllib2net.OtherNetworkTests.test_urlwithfragz@test_urllib2net.OtherNetworkTests.test_sites_no_connection_closez)test_socket.UDPTimeoutTest.testUDPTimeoutz6test_socket.GeneralModuleTests.testRefCountGetNameInfozDtest_socket.NetworkConnectionNoServer.test_create_connection_timeoutz*test_asyncore.BaseTestAPI.test_handle_exptz8test_asyncore.HelperFunctionTests.test_compact_tracebackz2test_signal.WakeupSignalTests.test_wakeup_fd_earlyz3test_signal.WakeupSignalTests.test_wakeup_fd_duringz6test_signal.SiginterruptTest.test_without_siginterruptz1test_signal.SiginterruptTest.test_siginterrupt_on2test_signal.SiginterruptTest.test_siginterrupt_offz5test_signal.StressTest.test_stress_modifying_handlersz/test_signal.PosixTests.test_interprocess_signalzAtest_subprocess.ProcessTestCase.test_leak_fast_process_del_killedz<test_subprocess.ProcessTestCase.test_zombie_fast_process_delz/test_subprocess.ProcessTestCase.test_no_leakingz9test_subprocess.ProcessTestCase.test_leaking_fds_on_errorz1test_subprocess.POSIXProcessTestCase.test_stoppedz+test_ssl.ThreadedTests.test_default_ciphersz&test_ssl.ThreadedTests.test_empty_certz*test_ssl.ThreadedTests.test_malformed_certz)test_ssl.ThreadedTests.test_malformed_keyz4test_ssl.NetworkedTests.test_non_blocking_connect_exz'test_ssl.NetworkedTests.test_algorithmsz*test_ssl.BasicSocketTests.test_random_forkz+test_ssl.BasicSocketTests.test_dealloc_warnz/test_ssl.BasicSocketTests.test_connect_ex_errorz.test_urllib2.HandlerTests.test_cookie_redirectz*test_thread.ThreadRunningTests.test__countz.test_thread.TestForkInThread.test_forkinthreadUtest_subprocess.POSIXProcessTestCase.test_preexec_errpipe_does_not_double_close_pipesz7test_ssl.BasicSocketTests.test_parse_cert_CVE_2019_5010z0test_httplib.HeaderTests.test_headers_debuglevelz0test_context.ContextTest.test_contextvar_getitemz/test_context.ContextTest.test_context_var_new_2ztest_queue.CLifoQueueTestztest_queue.CPriorityQueueTestztest_queue.CQueueTestztest_queue.CSimpleQueueTestztest_queue.CFailingQueueTestzDtest_queue.PyLifoQueueTest.test_shutdown_all_methods_in_many_threadszNtest_queue.PyLifoQueueTest.test_shutdown_immediate_all_methods_in_many_threadsz2test_ssl.SimpleBackgroundTests.test_connect_capathz8test_ssl.SimpleBackgroundTests.test_connect_with_contextz5test_signal.WakeupSignalTests.test_wakeup_write_errorthreadGEVENT_FILE z:test_subprocess.ProcessTestCase.test_double_close_on_error-test_signal.InterProcessSignalTests.test_mainr4   )z>test_socket.GeneralModuleTests.test_unknown_socket_family_reprz=test_socket.GeneralModuleTests.test_uknown_socket_family_repr0test_selectors.PollSelectorTestCase.test_timeoutr:   z'test_ftplib.TestFTPClass.test_storlineslinuxz-test_asyncore.FileWrapperTest.test_dispatcher)z3test_threading.ThreadTests.test_finalize_with_tracez7test_asyncore.DispatcherWithSendTests_UsePoll.test_sendz/test_asyncore.DispatcherWithSendTests.test_sendz/test_ssl.ContextTests.test__https_verify_envvarz1test_subprocess.ProcessTestCase.test_check_outputz*test_telnetlib.ReadTests.test_read_eager_A8test_urllib2_localnet.TestUrlopen.test_https_with_cafile;test_threading.ThreadJoinOnShutdown.test_1_join_on_shutdownz;test_threading.ThreadingExceptionTests.test_print_exceptionz0test_subprocess.ProcessTestCase.test_communicatez(test_subprocess.ProcessTestCase.test_cwdz(test_subprocess.ProcessTestCase.test_envz0test_subprocess.ProcessTestCase.test_stderr_pipez0test_subprocess.ProcessTestCase.test_stdout_pipez7test_subprocess.ProcessTestCase.test_stdout_stderr_pipezLtest_subprocess.ProcessTestCase.test_stderr_redirect_with_no_stdout_redirectz=test_subprocess.ProcessTestCase.test_stdout_filedes_of_stdoutz0test_subprocess.ProcessTestcase.test_stdout_nonez7test_subprocess.ProcessTestcase.test_universal_newlinesz>test_subprocess.ProcessTestcase.test_writes_before_communicatez2test_subprocess.Win32ProcessTestCase._kill_processz7test_subprocess.Win32ProcessTestCase._kill_dead_processz8test_subprocess.Win32ProcessTestCase.test_shell_sequencez6test_subprocess.Win32ProcessTestCase.test_shell_stringz.test_subprocess.CommandsWithSpaces.with_spaces)	z-test_ssl.ThreadedTests.test_handshake_timeoutz2test_socket.BufferIOTest.testRecvFromIntoBytearrayz.test_socket.BufferIOTest.testRecvFromIntoArrayz*test_socket.BufferIOTest.testRecvIntoArrayz/test_socket.BufferIOTest.testRecvIntoMemoryviewz4test_socket.BufferIOTest.testRecvFromIntoEmptyBufferz3test_socket.BufferIOTest.testRecvFromIntoMemoryviewz4test_socket.BufferIOTest.testRecvFromIntoSmallBufferz.test_socket.BufferIOTest.testRecvIntoBytearrayzCtest_subprocess.ProcessTestCase.test_universal_newlines_communicate)z7test_socket.GeneralModuleTests.test_sendall_interruptedz1test_socket.TCPTimeoutTest.testInterruptedTimeoutz8test_socketserver.SocketServerTest.test_ForkingUDPServerr9      )      *test_ssl.ThreadedTests.test_alpn_protocols.test_ssl.ThreadedTests.test_default_ecdh_curvez-test_socket.InheritanceTest.test_SOCK_CLOEXEC)z1test_socket.GeneralModuleTests.test_socket_filenozDtest_socket.GeneralModuleTests.test_getaddrinfo_ipv6_scopeid_numericz$test_socket.InheritanceTest.test_dupc                 <     t         j                   fd       }|S )Nc               3      K   t              } t        |       }ddlm}  |      }	 t	        | |       d  t	        | |       y # t	        | |       w xY ww)Nr   )get_original)
__import__getattrgevent.monkeyrE   setattr)modnowrE   orig	func_namemod_names       r*   	with_origz*_make_run_with_original.<locals>.with_orig  sX     "c9%.Hi0	)CD)CC(GCC(s   'AA
 A
AA)
contextlibcontextmanager)rN   rM   rO   s   `` r*   _make_run_with_originalrR     s#    	) 	) r2   c               #      K   	 d  dd l } | j                          | j                          y # dd l } | j                          | j                          w xY wwNr   )gccollect)rU   s    r*   
_gc_at_endrW     s;     





 	





s   A- %A&AAc               #   p   K   dd l } 	 d  y # | j                  $ r t        j                          Y y w xY wwrT   )sockettimeoutr   reraiseFlakyTestTimeout)rY   s    r*   _flaky_socket_timeoutr\     s/     (>> (%%'(s   6 6#3636c                       e Zd Zd Zd Zy)_PatchedTestc                      t         |   | _        y N)wrapped_tests_patcher)selftest_fqns     r*   __init__z_PatchedTest.__init__   s    %h/r2   c                 F     t        j                         fd       }|S )Nc                  `    j                         5   | i |cd d d        S # 1 sw Y   y xY wr`   )rb   )argskwargsorig_test_fnrc   s     r*   testz#_PatchedTest.__call__.<locals>.test%  s.     5#T4V45 5 5s   $-)	functoolswraps)rc   rj   rk   s   `` r*   __call__z_PatchedTest.__call__#  s%    		&	5 
'	5 r2   N)__name__
__module____qualname__re   rn    r2   r*   r^   r^     s    0r2   r^   z3test_subprocess.POSIXProcessTestCase.test_run_abort)(test_ssl.ThreadedTests.test_socketserverz+test_ssl.ThreadedTests.test_asyncore_serverz*test_socket.NonBlockingTCPTests.testAccept)r@   	   z+test_context.HamtTest.test_hamt_collision_3z>test_httplib.BasicTest.test_overflowing_header_limit_after_100)z1test_socket.SendfileUsingSendTest.testWithTimeoutz,test_socket.SendfileUsingSendTest.testOffsetz1test_socket.SendfileUsingSendTest.testRegularFilez+test_socket.SendfileUsingSendTest.testCount)zAtest_subprocess.ProcessTestCase.test_failed_child_execute_fd_leak'test_ssl.ThreadedTests.test_compressionz/test_asyncore.TestAPI_UsePoll.test_handle_errorz.test_asyncore.TestAPI_UsePoll.test_handle_readz)test_signal.WakeupFDTests.test_invalid_fd.test_socket.GeneralModuleTests.test_sock_ioctl)z4test_asyncore.TestAPI_UveIPv6Poll.test_handle_acceptz6test_asyncore.TestAPI_UveIPv6Poll.test_handle_acceptedz3test_asyncore.TestAPI_UveIPv6Poll.test_handle_closez3test_asyncore.TestAPI_UveIPv6Poll.test_handle_writez4test_asyncore.TestAPI_UseIPV6Select.test_handle_readz1test_ssl.ContextTests.test__create_stdlib_contextz1test_ssl.ContextTests.test_create_default_contextz&test_ssl.ContextTests.test_get_ciphers"test_ssl.ContextTests.test_optionsz$test_ssl.ContextTests.test_constantsz-test_socketserver.SocketServerTest.test_writezFtest_subprocess.ProcessTestcase.test_child_terminated_in_stopped_statez,test_urllib2_localnet.TestUrlopen.test_https)zFtest_threading.SubinterpThreadingTests.test_daemon_threads_fatal_errorz+test_threading.ThreadTests.test_tstate_lockz+test_threading.ThreadTests.test_various_opsz7test_threading.ThreadTests.test_various_ops_large_stackz7test_threading.ThreadTests.test_various_ops_small_stackz;test_subprocess.ProcessTestCase.test_io_buffered_by_defaultz8test_subprocess.ProcessTestCase.test_io_unbuffered_worksz1test_subprocess.ProcessTestCase.test_wait_endtimez>test_subprocess.POSIXProcessTestCase.test_exception_bad_args_0zBtest_subprocess.POSIXProcessTestCase.test_exception_bad_executablez7test_subprocess.POSIXProcessTestCase.test_exception_cwdzDtest_subprocess.POSIXProcessTestCase.test_exception_errpipe_bad_datazBtest_subprocess.POSIXProcessTestCase.test_exception_errpipe_normalz@test_subprocess.POSIXProcessTestCase.test_small_errpipe_write_fdz>test_socket.GeneralModuleTests.test_SocketType_is_socketobjectz0test_socket.GeneralModuleTests.test_dealloc_warnz(test_socket.GeneralModuleTests.test_reprz1test_socket.GeneralModuleTests.test_str_for_enumsz.test_socket.GeneralModuleTests.testGetaddrinfo)z:test_subprocess.ProcessTestCase.test_cwd_with_relative_argz@test_subprocess.ProcessTestCaseNoPoll.test_cwd_with_relative_argzAtest_subprocess.ProcessTestCase.test_cwd_with_relative_executablezNtest_subprocess.RunFuncTestCase.test_run_with_shell_timeout_and_capture_outputz4test_wsgiref.IntegrationTests.test_interrupted_write)zJtest_subprocess.POSIXProcessTestCase.test_close_fds_when_max_fd_is_loweredru   z)test_ssl.NetworkedBIOTests.test_handshakez0test_subprocess.ProcessTestCase.test_invalid_env)z3test_subprocess.POSIXProcessTestCase.test_close_fdszAtest_subprocess.POSIXProcessTestCase.test_close_fds_after_preexecz2test_subprocess.POSIXProcessTestCase.test_pass_fdsz>test_subprocess.POSIXProcessTestCase.test_pass_fds_inheritablez6test_subprocess.POSIXProcessTestCase.test_pipe_cloexecz8test_socket.RecvmsgSCMRightsStreamTest.testCmsgTruncLen0z=test_socket.RecvmsgSCMRightsStreamTest.testCmsgTruncLen0Plus1z8test_socket.RecvmsgSCMRightsStreamTest.testCmsgTruncLen1z>test_socket.RecvmsgSCMRightsStreamTest.testCmsgTruncLen2Minus1z&test_ssl.ContextTests.test_constructorz#test_ssl.ContextTests.test_protocolz(test_ssl.ContextTests.test_session_statsz test_ssl.ThreadedTests.test_echoz+test_ssl.ThreadedTests.test_protocol_sslv23z*test_ssl.ThreadedTests.test_protocol_sslv3z*test_ssl.ThreadedTests.test_protocol_tlsv1z,test_ssl.ThreadedTests.test_protocol_tlsv1_1z5test_ssl.TestPostHandshakeAuth.test_pha_no_pha_clientz0test_ssl.TestPostHandshakeAuth.test_pha_optionalz0test_ssl.TestPostHandshakeAuth.test_pha_requiredz)test_ssl.ThreadedTests.test_npn_protocolszCtest_httpservers.SimpleHTTPServerTestCase.test_undecodable_filenamezAtest_threading.ThreadJoinOnShutdown.test_2_join_in_forked_processzAtest_threading.ThreadJoinOnShutdown.test_1_join_in_forked_processr=   r<   z4test_httpservers.BaseHTTPServerTestCase.test_commandz4test_httpservers.BaseHTTPServerTestCase.test_handlerz<test_httpservers.BaseHTTPServerTestCase.test_head_keep_alivez@test_httpservers.BaseHTTPServerTestCase.test_head_via_send_errorz9test_httpservers.BaseHTTPServerTestCase.test_header_closez?test_httpservers.BaseHTTPServerTestCase.test_internal_key_errorzBtest_httpservers.BaseHTTPServerTestCase.test_request_line_trimmingzAtest_httpservers.BaseHTTPServerTestCase.test_return_custom_statuszEtest_httpservers.BaseHTTPServerTestCase.test_return_header_keep_alivez7test_httpservers.BaseHTTPServerTestCase.test_send_blankz7test_httpservers.BaseHTTPServerTestCase.test_send_errorz:test_httpservers.BaseHTTPServerTestCase.test_version_bogusz;test_httpservers.BaseHTTPServerTestCase.test_version_digitsz<test_httpservers.BaseHTTPServerTestCase.test_version_invalidz9test_httpservers.BaseHTTPServerTestCase.test_version_nonez=test_httpservers.BaseHTTPServerTestCase.test_version_none_get)z0test_httpservers.BaseHTTPServerTestCase.test_getz2test_httpservers.SimpleHTTPServerTestCase.test_getz3test_httpservers.SimpleHTTPServerTestCase.test_headz?test_httpservers.SimpleHTTPServerTestCase.test_invalid_requestszItest_httpservers.SimpleHTTPServerTestCase.test_path_without_leading_slashz6test_httpservers.CGIHTTPServerTestCase.test_invaliduriz6test_httpservers.CGIHTTPServerTestCase.test_issue19435z%test_httplib.TunnelTests.test_connectz>test_httplib.SourceAddressTest.testHTTPConnectionSourceAddresszRtest_urllib2_localnet.ProxyAuthTests.test_proxy_with_bad_password_raises_httperrorzQtest_urllib2_localnet.ProxyAuthTests.test_proxy_with_no_password_raises_httperror)z4test_subprocess.ProcessTestCase.test_threadsafe_waitr5   z9test_selectors.PollSelectorTestCase.test_above_fd_setsizez3test_socket.NonBlockingTCPTests.testInitNonBlockingz3test_socket.NonblockConstantTest.test_SOCK_NONBLOCKz'test_socket.TestSocketSharing.testSharerv   z.test_httplib.HeaderTests.test_parse_all_octetsz6test_socket.RecvmsgSCMRightsStreamTest.testFDPassEmptyz3test_threading.ThreadTests.test_is_alive_after_fork)z,test_ssl.ThreadedTests.test_nonblocking_sendrs   :test_socket.GeneralModuleTests.test__sendfile_use_sendfilez5test_socket.TestExceptions.test_setblocking_invalidfdz3test_socket.GeneralModuleTests.test_host_resolutionz/test_socket.GeneralModuleTests.test_getnameinfoz'test_threading.MiscTestCase.test__all__)	z/test_socket.SendfileUsingSendfileTest.testCountz4test_socket.SendfileUsingSendfileTest.testCountSmallz9test_socket.SendfileUsingSendfileTest.testCountWithOffsetz0test_socket.SendfileUsingSendfileTest.testOffsetz5test_socket.SendfileUsingSendfileTest.testRegularFilez5test_socket.SendfileUsingSendfileTest.testWithTimeoutz7test_socket.SendfileUsingSendfileTest.testEmptyFileSendz5test_socket.SendfileUsingSendfileTest.testNonBlockingz1test_socket.SendfileUsingSendfileTest.test_errorsrx   z2test_socket.LinuxKernelCryptoAPI.test_aead_aes_gcm)z=test_subprocess.MiscTests.test_call_keyboardinterrupt_no_killzHtest_subprocess.MiscTests.test_context_manager_keyboardinterrupt_no_killz<test_subprocess.MiscTests.test_run_keyboardinterrupt_no_killz/test_socket.NonBlockingTCPTests.testSetBlockingz+test_ssl.BasicSocketTests.test_private_initz.test_ssl.ThreadedTests.test_check_hostname_idnz:test_ssl.SimpleBackgroundTests.test_get_server_certificatez<test_socket.NetworkConnectionNoServer.test_create_connectionz5test_threading.ThreadTests.test_finalization_shutdownz.test_threading.ThreadTests.test_shutdown_locksz1test_threading.ThreadTests.test_old_threading_apiz?test_threading.InterruptMainTests.test_interrupt_main_subthreadz=test_threading.InterruptMainTests.test_interrupt_main_noerrorz,test_ssl.ThreadedTests.test_wrong_cert_tls13)z0test_selectors.BaseSelectorTestCase.test_timeoutzItest_socket.PurePythonSocketPairTest.test_injected_authentication_failurez:test_subprocess.ProcessTestCase.test_wait_negative_timeout)z;test_subprocess.RunFuncTestCase.test_run_with_pathlike_pathzBtest_subprocess.RunFuncTestCase.test_bufsize_equal_one_binary_modez:test_threading.ExceptHookTests.test_excepthook_thread_Noner@   )r@      r   z-test_ssl.BasicSocketTests.test_parse_all_sansz7test_ssl.BasicSocketTests.test_parse_cert_CVE_2013_4238)r@   ry   
   )Ctest_ftplib.TestFTPClass.test_makepasv_issue43285_security_disabledJtest_ftplib.TestFTPClass.test_makepasv_issue43285_security_enabled_default=test_httplib.BasicTest.test_dir_with_added_behavior_on_statusItest_httplib.TunnelTests.test_tunnel_connect_single_send_connection_setup9test_ssl.TestSSLDebug.test_msg_callback_deadlock_bpo43577-test_ssl.ContextTests.test_load_verify_cadata6test_ftplib.TestTLS_FTPClassMixin.test_retrbinary_restzEtest_socket.GeneralModuleTests.test_getaddrinfo_ipv6_scopeid_symbolicz.test_ssl.BasicSocketTests.test_openssl_version)z7test_socket.RecvmsgIntoTCPTest.testRecvmsgIntoGeneratorz(test_ftp.TestTLS_FTPClassMixin.test_mlsdz6test_ftp.TestTLS_FTPClassMixin.test_retrlines_too_longz-test_ftp.TestTLS_FTPClassMixin.test_storlinesz3test_ftp.TestTLS_FTPClassMixin.test_retrbinary_restz)test_subprocess.ProcessTestCase.test_reprz:test_subprocess.POSIXProcessTestTest.test_send_signal_race)r@   rt      )r{   r|   r}   r~   r   r   r   z9test_ftplib.TestTLS_FTPClassMixin.test_retrlines_too_long>test_socket.GeneralModuleTests.testInvalidInterfaceIndexToName)z6test_select.SelectTestCase.test_disallow_instantiationz6test_threading.ThreadTests.test_disallow_instantiationz@test_threading.InterruptMainTests.test_can_interrupt_tight_loopsz5test_subprocess.ProcessTestCase.test_pipesize_defaultz.test_subprocess.ProcessTestCase.test_pipesizesr4   z8test_threading.SubinterpThreadingTests.test_threads_joinz:test_threading.SubinterpThreadingTests.test_threads_join_2)r3   z/test_subprocess.ProcessTestCase.test__use_vforkz:test_threading.ThreadTests.test_import_from_another_thread)r@      ry   )zHtest_threading.ThreadTests.test_main_thread_after_fork_from_dummy_threadz>tets_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_client>test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_serverz?test_signal.PosixTests.test_no_repr_is_called_on_signal_handlerr   )
9test_subprocess.ProcessTestCase.test_win32_duplicate_envsz1test_ssl.SimpleBackgroundTests.test_transport_eofz7test_ssl.SimpleBackgroundTests.test_bio_read_write_dataz1test_ssl.SimpleBackgroundTests.test_bio_handshakeKtest_httplib.ExtendedReadTestContentLengthKnown.test_readline_without_limit=test_httplib.ExtendedReadTestContentLengthKnown.test_readlineDtest_httplib.ExtendedReadTestContentLengthKnown.test_read1_unboundedBtest_httplib.ExtendedReadTestContentLengthKnown.test_read1_bounded:test_httplib.ExtendedReadTestContentLengthKnown.test_read1-test_httplib.HeaderTests.test_ipv6host_headerz9test_ssl.ThreadedTests.test_recv_into_buffer_protocol_len)r@      r   )	r   zDtest_interpreters.TestInterpreterClose.test_subthreads_still_runningz4test_interpreters.TestInterpreterIsRunning.test_mainzLtest_interpreters.TestInterpreterIsRunning.test_with_only_background_threadszOtest_interpreters.TestInterpreterRun.test_with_background_threads_still_runningz2test_interpreters.FinalizationTests.test_gh_109793z.test_interpreters.StartupTests.test_sys_path_0zEtest_threading.SubinterpThreadingTests.test_threads_join_with_no_mainzNtest_threading.MiscTestCase.test_gh112826_missing__thread__is_main_interpreterz4test_threading.ThreadTests.test_gettrace_all_threads)zEtest_socket.BasicHyperVTest.testCreateHyperVSocketAddrNotTupleFailurezRtest_socket.BasicHyperVTest.testCreateHyperVSocketAddrServiceIdNotValidUUIDFailurezMtest_socket.BasicHyperVTest.testCreateHyperVSocketAddrVmIdNotValidUUIDFailure)r@   r   r>   )r   r   r   r   r   r   r   z>test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_clientr   z>test_threading.ThreadJoinOnShutdown.test_reinit_tls_after_forkz*test_signal.ItimerTest.test_itimer_virtual)rw   rA   rB   z*test_ssl.ThreadedTests.test_shared_ciphersz;test_threading.ThreadingExceptionTests.test_recursion_limitc                     t        |       }t        j                  t              }|D ]-  }|j	                  dd      \  }}||   }|j                  |       / |S )N.r   )	frozensetcollectionsdefaultdictsetr"   add)sequence_of_tests_disabled_testsdisabled_tests_by_filefile_case_meth	file_name_restby_files          r*   _build_test_structurer     sb     12O(44S9) $)//Q7	5(3N#$ "!r2   c                 d   |j                  d      r|dd  }|j                  d      r|d d }t        j                  |d      }t        j                  |i       }|s|rEd}d}|dz  }|d	z  }t        j                  ||| d
t
        j                        \  } }t        d|       t               }|D ]  }|j                  d      d
k(  ra|j                  d      \  }	}
d|
z   dz   }|
j                  dd      }d|z   dz   }t        j                  ||| t
        j                        \  } }n5|j                  d      d   }|j                  |       d|z   }d|d}|d	z  }t        j                  ||| t
        j                        \  } }t        d||fz  t        j                          |D ]  }|j                  d      d   }||v rt        d|d       +d|z   }d|d}|d	z  }t        j                  ||| dt
        j                        \  } }t        d||fz  t        j                          | S ) Nz./r>   z.pyrr   z
^import .*z>from gevent.testing import patched_tests_setup as _GEVENT_PTS;zimport unittest as _GEVENT_UTS;z\g<0>r   )countflagszAdded importsr   zclass z.*\):Testr8   zclass _GEVENT_DISABLE_:)r   z^([ \t]+)def z5\1@_GEVENT_UTS.skip('Removed by patched_tests_setup: z')\nzSkipped %s (%d))filezNot wrapping z because it is skippedz\1@_GEVENT_PTS._PatchedTest('r   zWrapped %s (%d))
startswithendswith_disabled_tests_by_fileget_wrapped_tests_by_filer%   subn	MULTILINEprintr   r   r"   r$   r   sysstderr)sourcefilenamemy_disabled_testsmy_wrapped_testspatternreplacementnmy_disabled_testcasesrk   _module
class_nameno_test_class_nametestcases                r*   disable_tests_in_sourcer     sT    4 AB<CR= 033HbA-11(B? ,  W99xGGG[&"#2<<9	 	oq!  E! !>
 ::c?a"&**S/GZ  *,x7G!+!3!3FB!?25GG#MKf&(ll4IFA zz#r*H!%%h/
 '1G\`bK8#KGGG[&"$,,0	4)+#**=C!>H ! B::c?2&,,TCD #X-@DFxGGG[&!R\\J	8Q-/cjjAB" Mr2   )=
__future__r   r   r   r   rP   rl   r   osr%   sysinfor   APPVEYORr   TRAVISr	   ARESr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r8   r   CPYTHONr/   r-   r+   r1   disabled_testsgetenvplatformr   pypy_version_inforR   rQ   rW   r\   ra   objectr^   version_infoupdater   r   r   r   rr   r2   r*   <module>r      sP	   @ @    
 	 
 4 0 0 " ' " ) !     !         ! (6
 0 /*12 *_D  	=B N  	@ N yryy++D N 	 7<	 N   N  ?

 
	
  6	
 	
 ||w' <
 	
  & &NR  
 	
&  V	 N L  N C!!"1%/
 9<
 	
 	V 	8 N 	S  N6   ( (

6 
 = N
   N v%9 M

 
	
 =R8M=R7L	    N  8<
 	
   ND  6 6n 
  N  ( ;) 2 	  	=	 N   N&  &
 &	
P  	LK	 	N I
 	

  3& 	CJ'3* 	?
+3, 	?
-3. 	G
/30 	KJ132 	DZ334 	J:536 	Mj738 	LZ93: 	PQ[;3< 	B:=3> 	B:?3@ 	EjA3B 	FzC3D 	G
E3F 	DZG3H 	HI3J =G>H?IKUU_BLBL1;JT _i]ge3 3n  % %N  	A N 
 	A ?	
 	
 
D N   6  	>9	 N -   
 
 @   9 "  & &R   N    BQ)#7A N BQ*$  N  	P	 N( 4   	 	N m T	
 	
 3 	E N i' 
 	
 
 
 	
  M
 	
 	  N   GH
 	
 	 % %NN j( 
 	
   N 	 	D	 N j( 	 

 
	
  C
 	
  
 	
 BQ*,  N 
 ML
 	
 S
 	
 	 	I N }8
 	

  
 	
 
 
 
N  	F N" 0? .}= Yr2   