%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/jeepney/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/jeepney/tests/__pycache__/test_fds.cpython-312.pyc

�

+�c��X�ddlZddlZddlZddlZddlmZmZdefd�Zd�Z	d�Z
d�Zd�Zy)	�N)�FileDescriptor�	NoFDError�fdc���tjt�5}tj|�ddd�j
jtjk(sJ�y#1swY�3xYw)z<Check that the given number is not open as a file descriptorN)�pytest�raises�OSError�os�stat�value�errno�EBADF)r�exc_infos  �8/usr/lib/python3/dist-packages/jeepney/tests/test_fds.py�
assert_not_fdr	sL��	���w�	��8�
�������>�>���5�;�;�.�.�.���s�A"�"A+c��tj|dztjtjz�}t	|�5}|j�|k(sJ�	ddd�dt
�vsJ�tjt�5|j�ddd�t|�y#1swY�VxYw#1swY�!xYw)N�a�closed)r
�open�O_CREAT�O_RDWRr�fileno�reprrrrr��tmp_pathr�wfds   r�
test_closers���	����C�����b�i�i�!7�	8�B�	��	�"�s��z�z�|�r�!�!�!�"��t�C�y� � � �	���y�	!���
�
����"��"�"��
��s�B0�B<�0B9�<Cc��tj|dztj�}t|�}|j	�|k(sJ�|j�|k(sJ�	dt
|�vsJ�tjt�5|j	�ddd�tj|�y#1swY�xYw#tj|�wxYw)Nr�	converted)r
rrrr�	to_raw_fdrrrr�closers   r�test_to_raw_fdr"s���	����C�����	,�B�
��
�C��:�:�<�2�����=�=�?�b� � � ���d�3�i�'�'�'�
�]�]�9�
%�	��J�J�L�	�	�����	�	��	�����s$�(C�B5�C�5B>�:C�Cc���tj|dztjtjz�}t	|�}|jd�5}|j
d�sJ�	ddd�dt|�vsJ�tjt�5|j�ddd�t|�|dzj�dk(sJ�y#1swY�nxYw#1swY�9xYw)Nr�w�abcr)r
rrrr�to_file�writerrrrrr�	read_text)rrr�fs    r�test_to_filer*-s���	����C�����b�i�i�!7�	8�B�
��
�C�	���S�	��Q��w�w�u�~��~���$�s�)�#�#�#�	���y�	!���
�
����"���s�N�%�%�'�5�0�0�0������s�C�C#�C �#C,c��tj�\}}	|jd�|j�}t	|�}|j�5}|j
d�}|rdj|�sJ�	ddd�dt|�vsJ�tjt�5|j�ddd�t|�|j�y#1swY�fxYw#1swY�1xYw#|j�wxYw)Nsabcd�r)�socket�
socketpair�sendall�detachr�	to_socket�recv�
startswithrrrrrrr!)�s1�s2�sfdr�sock�bs      r�test_to_socketr9=s���
�
�
�
 �F�B���
�
�
�7���i�i�k���S�!��
�]�]�_�	/���	�	�"�
�A���+�+�A�.�.�.�.�	/��d�3�i�'�'�'�
�]�]�9�
%�	��J�J�L�	�	�c��
���
�	/�	/��
	�	��
	���
�s;�<C:�'C"�=0C:�-C.�>C:�"C+�'C:�.C7�3C:�:D)
r
r
r-r�jeepneyrr�intrrr"r*r9��r�<module>r>s4���	�
�
�-�/�c�/���
1� r=

Zerion Mini Shell 1.0