| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python315/Lib/test/test_asyncio/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] PHs] PHs] QHGs ] QHGs Q s Q Q\O 2 s\ Q6X c \O 2 P! P! )zTests for asyncio/threads.py)�
ContextVar)�mockc �F � [ O O P2 P! �N)�asyncio�events�_set_event_loop_policy� � �3C:\Python315\\Lib\test\test_asyncio\test_threads.py�tearDownModuler
s � ��N�N�)�)�$�/r c �F ` � \ sQ s]s n Q sQ sQ sQ sQ sQ s Qs
U sP! )�
ToThreadTestsc � � � [ O [ ](],2 E Pi w� K
oU O U]*2 P! K3h)�( )r � to_thread�sum�assertEqual)�self�results & r
�test_to_thread�ToThreadTests.test_to_thread s6 � � ��(�(��r�1�g�6�6�6�������$� 7�s �#A�?�Ac � �� � Q oU O [ Q2 9^tt^ 2 [ O U2 E Pi w� K
PPP2 P! K ) % f h P! 9 h3h)c � � [ Q 2 g)�test)�RuntimeErrorr r r
�
raise_runtime�=ToThreadTests.test_to_thread_exception.<locals>.raise_runtime s
� ��v�&�&r r )�assertRaisesRegexr r r )r r s & r
�test_to_thread_exception�&ToThreadTests.test_to_thread_exception sI � � � '� �
#�
#�L�&�
9�
9��#�#�M�2�2�2� :�
9�2� :�
9�
9�s4 �#A&�A� A
�A�
A&�A�A# �A# � A&c � � � [ O 2 o[ O U2 E Pi w� K
UO 2 P! K3hr )r �Mockr r �assert_called_once�r �funcs & r
�test_to_thread_once�!ToThreadTests.test_to_thread_once s5 � � ��y�y�{������%�%�%����!� &�s �1A
�A�A
c � � ` � , nU1Q ko, o[ ]
2 F D* o[ O U2 oUO U2 J, [ O U E Pi w� K
U O [
R2 ]
2 P! K!3h)c �, :� R O ]2 P! )� )�append)�callss �r
r$ �5ToThreadTests.test_to_thread_concurrent.<locals>.func"