Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_xml_etree_c.cpython-310.pyc
o

�9j�!�@s�ddlZddlZddlmZddlmZddlZddlZeddgd�Zedddgd	d
�Z	e�
ed�Gdd
�d
ej��Ze�
ed�Gdd�dej��Z
e�
ed�ejGdd�dej���Ze�
ed�ejGdd�dej���Zdd�Zedkr{e�dSdS)�N)�support)�import_fresh_modulezxml.etree.ElementTree�_elementtree)�freshzxml.etree.cElementTreez	xml.etreeT)r�
deprecatedzrequires _elementtreec@sxeZdZejejdddd�dd��Zdd�Zd	d
�Zdd�Z	d
d�Z
ejdd��Zdd�Z
dd�Zdd�Zdd�ZdS)�	MiscTests�d�F)�size�memuse�dry_runcCs2d|}t��}z
|�t|j|�Wd}dSd}w)N�x)�cET�	XMLParser�assertRaises�
OverflowError�feed)�selfr
�data�parser�r�,/usr/lib/python3.10/test/test_xml_etree_c.py�test_length_overflows
zMiscTests.test_length_overflowcCs�t�d�}d|_|�t��
|`Wd�n1swY|�|jd�|�t��
|`Wd�n1s8wY|�|j�d|_|�t��
|`Wd�n1sXwY|�|jd�|�t��
|`Wd�n1svwY|�|j�d|_|�t��
|`Wd�n1s�wY|�|jd�|�t��
|`	Wd�n1s�wY|�|j	i�ddd�|_	|�t��
|`	Wd�n1s�wY|�|j	ddd��dS)N�tag�TAG�TEXT�TAIL�B�D)�A�C)
r�Elementrr�AttributeError�assertEqual�text�assertIsNone�tail�attrib)r�elementrrr�test_del_attributesB
�������zMiscTests.test_del_attributecCs8t�d�}}td�D]}t�|d�}q~~t��dS)N�rooti@
�x)rr!�range�
SubElementr�
gc_collect)r�er*�irrr�
test_trashcan<szMiscTests.test_trashcancCsdd�}|�t��dS)Nc
Ss8t��}zt�ty}z	|}WYd}~dSd}~ww�N)rr�
ValueError)r�exc�errrrr�parser_ref_cycleJs��z9MiscTests.test_parser_ref_cycle.<locals>.parser_ref_cycle)rr.)rr6rrr�test_parser_ref_cycleEs
zMiscTests.test_parser_ref_cyclecs�t�d��G�fdd�d�}|��_���|��_���|��_|��_���|��_|��_���|��_��ddi����|��_��ddi�dS)N�elemc�eZdZ�fdd�ZdS)z#MiscTests.test_bpo_31728.<locals>.Xcs�j�j���dSr2)r$r&�clear�r�r8rr�__del___sz+MiscTests.test_bpo_31728.<locals>.X.__del__N)�__name__�
__module__�__qualname__r=rr<rr�X^�rAr�*)rr!r$r:r&�__setstate__)rrArr<r�test_bpo_31728Ys"
zMiscTests.test_bpo_31728cCsxtj�tj�}|�t|j�|�t|jd�Gdd�d�}|�t|j|��|�t|jd�|�	|j
�|�	|j�dS)N�fooc@�eZdZdd�ZdS)z5MiscTests.test_uninitialized_parser.<locals>.MockFilecWsdS)N�r)�argsrrr�read�sz:MiscTests.test_uninitialized_parser.<locals>.MockFile.readN)r>r?r@rJrrrr�MockFile�srK)rr�__new__rr3�closer�_parse_whole�
_seteventsr%�entity�target)rrrKrrr�test_uninitialized_parserysz#MiscTests.test_uninitialized_parserc	Cs�tj�tj�}td�D]}|�dddit�d�gddd��q|�|jd�|�|jd�|�|jd�|�t	|j
���d	g�|�t|�d
�|�|djd�dS)NrrF�barrC�childztext goes herezopposite of head)rr'�	_childrenr$r&)rSrCr	r)
rr!rLr,rDr#rr$r&�listr'�items�len)rr8r0rrr�test_setstate_leaks�s

�zMiscTests.test_setstate_leakscCs*d}t�t�|��}t|�~t��dS�Nz<a></a></b>)r�	iterparse�io�StringIO�nextrr.�r�XMLrrrr�test_iterparse_leaks�s
zMiscTests.test_iterparse_leakscCs$d}t��}|�|�~t��dSrZ)r�
XMLPullParserrrr.r_rrr�test_xmlpullparser_leaks�s

z"MiscTests.test_xmlpullparser_leakscs<G�fdd�d�}t�dddi����|��}|�|�dS)Ncr9)z;MiscTests.test_dict_disappearing_during_get_item.<locals>.Xcsi�_dd�td�D�dS)NcSsg|]}||i�qSrr)�.0r0rrr�
<listcomp>�szXMiscTests.test_dict_disappearing_during_get_item.<locals>.X.__hash__.<locals>.<listcomp>i��
)r'r,r;�r/rr�__hash__�szDMiscTests.test_dict_disappearing_during_get_item.<locals>.X.__hash__N)r>r?r@rhrrgrrrA�rBrAr8r	�)rr!�getr%)rrA�rrrgr�&test_dict_disappearing_during_get_item�sz0MiscTests.test_dict_disappearing_during_get_itemN)r>r?r@r�
bigmemtest�_2Grr)r1r7rE�cpython_onlyrRrYrarcrlrrrrrs
 	 


rc@rG)�TestAliasWorkingcCst�d�}|�|jd�dS)NrF)�	cET_aliasr!r#r�rr/rrr�test_alias_working��
z#TestAliasWorking.test_alias_workingN)r>r?r@rsrrrrrp�srpc@s$eZdZdd�Zdd�Zdd�ZdS)�TestAcceleratorImportedcC�|�tjjd�dS�Nr)r#rr-r?r;rrr�test_correct_import_cET�sz/TestAcceleratorImported.test_correct_import_cETcCrvrw)r#rqr-r?r;rrr�test_correct_import_cET_alias�sz5TestAcceleratorImported.test_correct_import_cET_aliascCs|�tjjtj�dSr2)�assertNotIsInstancerr!�__init__�types�FunctionTyper;rrr�test_parser_comes_from_C�sz0TestAcceleratorImported.test_parser_comes_from_CN)r>r?r@rxryr~rrrrru�sruc@s2eZdZdd�ZejZdd�Zdd�Zdd�Zd	S)
�
SizeofTestcCst�d�|_t�d�|_dS)N�5P�PnnP4P)r�calcobjsize�elementsize�struct�calcsize�extrar;rrr�setUp�szSizeofTest.setUpcCst�d�}|�||j�dS)N�a)rr!�check_sizeofr�rrrrr�test_element�rtzSizeofTest.test_elementcCs&tjddd�}|�||j|j�dS)Nr�zabout:)�href)rr!r�r�r�rrrrr�test_element_with_attrib�sz#SizeofTest.test_element_with_attribcCsFt�d�}td�D]}t�|d�q	|�||j|jt�d��dS)Nr���span�8P)	rr!r,r-r�r�r�r�r�)rr/r0rrr�test_element_with_children�s

�z%SizeofTest.test_element_with_childrenN)	r>r?r@r�rr�r�r�r�rrrrr�srcCs,ddlm}t�tttt�|jt	d�dS)Nr��test_xml_etree)�module)
�testr�r�run_unittestrrprur�	test_mainrr�rrrr��s�r��__main__)r\r�r�r�test.support.import_helperrr|�unittestrrq�
skipUnless�TestCaserrprorurr�r>rrrr�<module>s8��

)


�

Youez - 2016 - github.com/yon3zu
LinuXploit