Sindbad~EG File Manager
�
(Μga� � �� � d Z ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZ ddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlmZ ddlZddlZej dvrddlZddlZddlmZ ddlmZ ddlmZ ddlmZ dd l!m"Z# dd
l$m%Z% ddl&m'Z' ddl&m(Z( dd
l&m)Z)m*Z*m+Z+ d� Z,d� Z-d� Z. G d� d� Z/ G d� dej` � Z1 G d� de1� Z2 G d� dejf � Z4 G d� dej` � Z5 G d� dejl � Z7 G d� dejp � Z9 G d� d � Z: G d!� d"� Z;ej d#k( r. G d$� d%e:e#jx � Z= G d&� d'e:e;e#jx � Z>n�ddl?Z? G d(� d)e:� Z@ eAe?d*� r G d+� d,e@e;e#jx � ZB eAe?d-� r G d.� d/e@e;e#jx � ZC eAe?d0� r G d1� d2e@e;e#jx � ZD G d3� d%e@e;e#jx � Z=d4� ZE G d5� d6e#jx � ZF G d7� d8ejx � ZG G d9� d:ejx � ZH G d;� d<ejx � ZI G d=� d>� ZJ G d?� d@eJejx � ZK ddlLZL G dA� dBeJejx � ZM G dC� dDejx � ZN G dE� dFejx � ZOePdGk( r ej� � yy# e$ r dZ
Y ���w xY w# e$ r Y �Ww xY w)HzTests for events.py.� N)�mock)�win32�vxworks)�
coroutines)�events)�selector_events)�_cleanup_tests)�utils)�support)�
socket_helper)�threading_helper)� ALWAYS_EQ�LARGEST�SMALLESTc �. � t j d � y �N)�asyncio�set_event_loop_policy� � �:/usr/local/lib/python3.12/test/test_asyncio/test_events.py�tearDownModuler * s � ��!�!�$�'r c �� � t j j d� ryt j dk7 ryt j � d } t t t | j d� � � } | dk S )z4Return True if the platform is Mac OS 10.4 or older.�aixT�darwinFr �.)�
� )�sys�platform�
startswith�mac_ver�tuple�map�int�split)�versions r �broken_unix_getsocknamer( . s^ � �
�|�|���u�%�� ���� !����� ��#�G��C��W�]�]�3�/�0�1�G��W��r c � � d� } t j � }t j |� |j | � � S )Nc � � K � y�w�N�hellor r r r �doitz8_test_get_event_loop_new_process__sub_proc.<locals>.doit: s � �� ��� �)r �new_event_loop�set_event_loop�run_until_complete)r- �loops r �*_test_get_event_loop_new_process__sub_procr3 9 s8 � �� �!�!�#�D����4� ��"�"�4�6�*�*r c �$ � e Zd Zd� Zd� Zd� Zd� Zy)�CoroLikec � � y r r )�self�vs r �sendz
CoroLike.sendC � � �r c � � y r r �r7 �excs r �throwzCoroLike.throwF r: r c � � y r r �r7 s r �closezCoroLike.closeI r: r c � � y r r r@ s r � __await__zCoroLike.__await__L r: r N)�__name__�
__module__�__qualname__r9 r>