Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/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'