403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.153
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_xml_etree_c.cpython-36.pyc
3

x2_��@s�ddlZddlmZddlmZddlZddlZeddgd�Zedddgd�Zej	ed	�Gd
d�dej
��Zej	ed	�Gdd
�d
ej
��Zej	ed	�ej
Gdd�dej
���Zej	ed	�ej
Gdd�dej
���Zdd�Zedkr�e�dS)�N)�support)�import_fresh_modulezxml.etree.ElementTree�_elementtree)Zfreshzxml.etree.cElementTreez	xml.etreezrequires _elementtreec@sReZdZejejdddd�dd��Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdS)�	MiscTests�d�F)�sizeZmemuseZdry_runc
Cs0d|}tj�}z|jt|j|�Wdd}XdS)N�x)�cET�	XMLParser�assertRaises�
OverflowErrorZfeed)�selfr�data�parser�r�:/opt/alt/python36/lib64/python3.6/test/test_xml_etree_c.py�test_length_overflows
zMiscTests.test_length_overflowc6CsFtjd�}d|_|jt��
|`WdQRX|j|jd�|jt��
|`WdQRX|j|j�d|_|jt��
|`WdQRX|j|jd�|jt��
|`WdQRX|j|j�d|_|jt��
|`WdQRX|j|jd�|jt��
|`	WdQRX|j|j	i�ddd�|_	|jt��
|`	WdQRX|j|j	ddd��dS)N�tagZTAGZTEXTZTAIL�B�D)�A�C)
r
�Elementrr�AttributeError�assertEqual�textZassertIsNone�tail�attrib)r�elementrrr�test_del_attributes4
zMiscTests.test_del_attributecCs<tjd�}}xtd�D]}tj|d�}qW~~tj�dS)N�rooti@
�x)r
r�range�
SubElementr�
gc_collect)r�er!�irrr�
test_trashcan:szMiscTests.test_trashcancCsdd�}|�tj�dS)NcSs<tj�}yt�Wn&tk
r6}z
|}WYdd}~XnXdS)N)r
r�
ValueError)r�exc�errrrr�parser_ref_cycleHs
z9MiscTests.test_parser_ref_cycle.<locals>.parser_ref_cycle)rr%)rr,rrr�test_parser_ref_cycleCs
zMiscTests.test_parser_ref_cyclecs�tjd��G�fdd�d�}|��_�j�|��_�j�|��_|��_�j�|��_|��_�j�|��_�jddi��j�|��_�jddi�dS)N�elemcseZdZ�fdd�ZdS)z#MiscTests.test_bpo_31728.<locals>.Xcs�j�j�j�dS)N)rr�clear)r)r.rr�__del__]sz+MiscTests.test_bpo_31728.<locals>.X.__del__N)�__name__�
__module__�__qualname__r0r)r.rr�X\sr4r�*)r
rrr/r�__setstate__)rr4r)r.r�test_bpo_31728Ws"
zMiscTests.test_bpo_31728cCs�tjjtj�}x2td�D]&}|jddditjd�gddd��qW|j|jd�|j|jd�|j|jd�|jt	|j
j��dg�|jt|�d	�|j|d
jd�dS)Nr�foo�barr5Zchildztext goes herezopposite of head)rrZ	_childrenrrrr)r9r5)
r
r�__new__r#r6rrrr�listr�items�len)rr.r'rrr�test_setstate_leaksws
zMiscTests.test_setstate_leaksN)r1r2r3rZ
bigmemtestZ_2Grr r(r-r7r>rrrrrs	 	 rc@seZdZdd�ZdS)�TestAliasWorkingcCstjd�}|j|jd�dS)Nr8)�	cET_aliasrrr)rr&rrr�test_alias_working�s
z#TestAliasWorking.test_alias_workingN)r1r2r3rArrrrr?�sr?c@s$eZdZdd�Zdd�Zdd�ZdS)�TestAcceleratorImportedcCs|jtjjd�dS)Nr)rr
r$r2)rrrr�test_correct_import_cET�sz/TestAcceleratorImported.test_correct_import_cETcCs|jtjjd�dS)Nr)rr@r$r2)rrrr�test_correct_import_cET_alias�sz5TestAcceleratorImported.test_correct_import_cET_aliascCs|jtjjtj�dS)N)ZassertNotIsInstancer
r�__init__�types�FunctionType)rrrr�test_parser_comes_from_C�sz0TestAcceleratorImported.test_parser_comes_from_CN)r1r2r3rCrDrHrrrrrB�srBc@s2eZdZdd�ZejZdd�Zdd�Zdd�Zd	S)
�
SizeofTestcCstjd�|_tjd�|_dS)NZ5PZPnnP4P)rZcalcobjsize�elementsize�struct�calcsize�extra)rrrr�setUp�szSizeofTest.setUpcCstjd�}|j||j�dS)N�a)r
r�check_sizeofrJ)rr&rrr�test_element�s
zSizeofTest.test_elementcCs&tjddd�}|j||j|j�dS)NrOzabout:)Zhref)r
rrPrJrM)rr&rrr�test_element_with_attrib�sz#SizeofTest.test_element_with_attribcCsJtjd�}xtd�D]}tj|d�qW|j||j|jtjd��dS)NrO��spanZ8P)	r
rr#r$rPrJrMrKrL)rr&r'rrr�test_element_with_children�s

z%SizeofTest.test_element_with_childrenN)	r1r2r3rNrrPrQrRrUrrrrrI�s
rIcCs,ddlm}tjtttt�|jt	d�dS)Nr)�test_xml_etree)�module)
�testrVrZrun_unittestrr?rBrI�	test_mainr
)rVrrrrY�srY�__main__)rKrXrZtest.supportrrFZunittestr
r@Z
skipUnlessZTestCaserr?Zcpython_onlyrBrIrYr1rrrr�<module>s*

y




Youez - 2016 - github.com/yon3zu
LinuXploit