Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3.12/test/support/__pycache__/ |
Upload File : |
� �(�gq � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d� Z d� Z d� Zej dd�� Z dd�Zej dd�� Z G d � d � Zdefd�Z e� Zd d�d�Zy)� N)�supportc �\ � t j � t t j � fS �N)�_thread�_count�len� threading� _dangling� � �4/usr/lib/python3.12/test/support/threading_helper.py�threading_setupr s � ��>�>��S��!4�!4�5�5�5r c �b � | \ }}d}t j |d�� D ]6 }t t j � }t j � }||k s�6 y dt _ t j d|d�d|� d|� d � dt � � � � |D ] }t j d |��� � y )Ng �?F��errorTz2threading_cleanup() failed to clean up threads in �.1fz seconds before: thread count=z, dangling=z after: thread count=zDangling thread: ) r �sleeping_retry�listr r r r �environment_altered� print_warningr )�original_values� orig_count�orig_ndangling�timeout�_�dangling_threads�count�threads r �threading_cleanupr s� � �!0��J���G� � #� #�G�5� 9� �� � � 3� 3�4����� ���J���� #'�G�������c�]� "�",��[��8H� I!�!&��{�3�7G�3H�2I� K�L� #� >����� 1�&��<�=�>r c �B � � t j � � � fd�� }|S )z�Use this function when threads are being used. This will ensure that the threads are cleaned up even when the test fails. c �N �� t � } �| � t |� S # t |� w xY wr )r r )�args�key�funcs �r � decoratorzreap_threads.<locals>.decorator>