| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o
�b � @ s� d Z ddlZddlZddlZzddlZW n ey dZY nw ddlmZ ddl m
Z
ddlmZ G dd� dej
�ZG d d
� d
ej
�ZG dd� dej
�ZdS )
z&
Tests for L{twisted.internet.fdesc}.
� Nznot supported on this platform)�fdesc)�untilConcludes)�unittestc @ s e Zd ZdZdd� Zdd� ZdS )�NonBlockingTestszE
Tests for L{fdesc.setNonBlocking} and L{fdesc.setBlocking}.
c C sj t �� \}}| �t j|� | �t j|� | �t�|tj�t j@ � t� |� | �
t�|tj�t j@ � dS )zR
L{fdesc.setNonBlocking} sets a file description to non-blocking.
N)�os�pipe�
addCleanup�close�assertFalse�fcntl�F_GETFL�
O_NONBLOCKr �setNonBlocking�
assertTrue��self�r�w� r �9/usr/lib/python3/dist-packages/twisted/test/test_fdesc.py�test_setNonBlocking s
z$NonBlockingTests.test_setNonBlockingc C sZ t �� \}}| �t j|� | �t j|� t�|� t�|� | �t�|tj �t j
@ � dS )zK
L{fdesc.setBlocking} sets a file description to blocking.
N)r r r r r r �setBlockingr
r r r
r r r r �test_setBlocking'