https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/jeepney/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/jeepney/tests/__pycache__/test_fds.cpython-310.pyc
o

���`�@sbddlZddlZddlZddlZddlmZmZdefdd�Zdd�Z	dd	�Z
d
d�Zdd
�ZdS)�N)�FileDescriptor�	NoFDError�fdcCsJt�t��
}t�|�Wd�n1swY|jjtjks#J�dS)z<Check that the given number is not open as a file descriptorN)�pytest�raises�OSError�os�stat�value�errno�EBADF)r�exc_info�r�8/usr/lib/python3/dist-packages/jeepney/tests/test_fds.py�
assert_not_fd	s�rcCs�t�|dtjtjB�}t|��}|��|ksJ�Wd�n1s#wYdt|�vs0J�t�t	��|��Wd�n1sDwYt
|�dS)N�a�closed)r�open�O_CREAT�O_RDWRr�fileno�reprrrrr��tmp_pathr�wfdrrr�
test_closes
�
�rc	Cs�t�|dtj�}t|�}|��|ksJ�|��|ksJ�z1dt|�vs&J�t�t	��|��Wd�n1s:wYWt�
|�dSWt�
|�dSt�
|�w)Nr�	converted)rrrrr�	to_raw_fdrrrr�closerrrr�test_to_raw_fds
��rcCs�t�|dtjtjB�}t|�}|�d��}|�d�sJ�Wd�n1s'wYdt|�vs4J�t�	t
��|��Wd�n1sHwYt|�|d�
�dks[J�dS)Nr�w�abcr)rrrrr�to_file�writerrrrrr�	read_text)rrr�frrr�test_to_file-s�
�r&cCs�t��\}}z[|�d�|��}t|�}|���}|�d�}|r%d�|�s'J�Wd�n1s1wYdt|�vs>J�t	�
t��|��Wd�n1sRwYt
|�W|��dS|��w)Nsabcd�r)�socket�
socketpair�sendall�detachr�	to_socket�recv�
startswithrrrrrrr)�s1�s2�sfdr�sock�brrr�test_to_socket=s


�
�
r4)
rrr(r�jeepneyrr�intrrrr&r4rrrr�<module>s

https://t.me/RX1948 - 2025