| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/zmq/tests/__pycache__/ |
Upload File : |
�
mc�cG, � �� � d dl Z d dlZd dlZ d dlmZ eZn
# e$ r dZY nw xY wd dlZd dlZd dlm Z m
Z
mZmZ dZ
er$ ee
� � Z ee
� � Z ee
� � ez
Zd� Z G d� de
� � ZdS )� N)�getrefcount)�PYPY�BaseZMQTestCase�SkipTest� skip_pypy� xc � � t j dk rd}nd}t d� � D ]/}t | � � ||z k r dS t j d� � �0dS )z�wait for refcount on an object to drop to an expected value
Necessary because of the zero-copy gc thread,
which can take some time to receive its DECREF message.
)� � � � �2 Ng�������?)�sys�version_info�range�grc�time�sleep)�obj�rc�my_refs�is �8/usr/lib/python3/dist-packages/zmq/tests/test_message.py�await_gcr sl � � ��'�!�!������
�2�Y�Y� � ���s�8�8�r�G�|�#�#��F�F��
�4����� � � c �� � � e Zd Z� fd�Zed� � � Zd� Zd� Zd� Zd� Z ed� � � Z
ed� � � Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zed� � � Z� xZS )� TestFramec � �� t � � � � � t d� � D ]}t j � � �d S )Nr
)�super�tearDownr �gc�collect)�selfr � __class__s �r r zTestFrame.tearDown2 sE �� �
���������q��� � �A��J�L�L�L�L� � r c � � t dd� � D ]s}d|z t z }t |� � }t j |d�� � }t |� � |dz k sJ �~t ||� � t |� � |k sJ �~�tdS )z/Message above 30 bytes are never copied by 0MQ.� � r F��copyN)r �xr �zmq�Framer )r# r �sr �ms r �
test_above_30zTestFrame.test_above_307 s� � � �q�"��� � �A��A���
�A��Q���B�� �!�%�(�(�(�A��q�6�6�R�!�V�#�#�#�#���Q��O�O�O��q�6�6�R�<�<�<�<��� � r c �� � t d� � D ]N}d|z t z }t j |� � }t |� � }|� � � }||k sJ ��OdS )z+Test the str representations of the Frames.r'