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

�w2_#�@sddlZddlZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de	�Z
Gd
d�de
�ZGdd�de	�ZGdd�de�Z
Gdd�de
�ZGdd�de	�ZGdd�dej�ZGdd�de�ZGdd�de�ZGdd�dej�Zedk�rej�dS) �N)�supportc@seZdZdS)�PropertyBaseN)�__name__�
__module__�__qualname__�rr�7/opt/alt/python36/lib64/python3.6/test/test_property.pyrsrc@seZdZdS)�PropertyGetN)rrrrrrrr	sr	c@seZdZdS)�PropertySetN)rrrrrrrr
sr
c@seZdZdS)�PropertyDelN)rrrrrrrrsrc@s<eZdZdd�Zedd��Zejdd��Zejdd��ZdS)�	BaseClasscCs
d|_dS)N�)�_spam)�selfrrr�__init__szBaseClass.__init__cCs|jS)zBaseClass.getter)r)rrrr�spamszBaseClass.spamcCs
||_dS)N)r)r�valuerrrrscCs|`dS)N)r)rrrrr!sN)rrrr�propertyr�setter�deleterrrrrrsrc@s8eZdZejjdd��Zejdd��Zejdd��ZdS)�SubClasscCst|j��dS)zSubClass.getterN)r	r)rrrrr'sz
SubClass.spamcCst|j��dS)N)r
r)rrrrrr,scCst|j��dS)N)rr)rrrrr0sN)rrrrr�getterrrrrrrr%src@s$eZdZdZdd�Zeedd�ZdS)�PropertyDocBase�cCs|jS)N)r)rrrr�	_get_spam6szPropertyDocBase._get_spamzspam spam spam)�docN)rrrrrrrrrrrr4src@seZdZejjdd��ZdS)�PropertyDocSubcCs|jS)z*The decorator does not use this doc string)r)rrrrr;szPropertyDocSub.spamN)rrrrrrrrrrr:src@seZdZejjdd��ZdS)�PropertySubNewGettercCsdS)z
new docstringr
r)rrrrrAszPropertySubNewGetter.spamN)rrrrrrrrrrr@src@s&eZdZedd��Zejdd��ZdS)�PropertyNewGettercCsdS)zoriginal docstringrr)rrrrrGszPropertyNewGetter.spamcCsdS)z
new docstring�r)rrrrrKsN)rrrrrrrrrrrFsrc@s�eZdZdd�Zdd�Zejejj	dkd�dd��Z
ejejj	dkd�d	d
��Zdd�Zejejj	dkd�d
d��Z
dd�Zejejj	dkd�dd��Zejejj	dkd�dd��Zejdd��ZdS)�
PropertyTestscCs�t�}|j|jd�|j|jd�d|_|j|jd�|j|jd�t|d�|jt|d��|jt|d��d|_|j|jd�|j|jd�dS)Nr
�
rr�)r�assertEqualrr�delattrZ
assertTrue�hasattr)r�baserrr�!test_property_decorator_baseclassQs
z/PropertyTests.test_property_decorator_baseclasscCs<t�}|jtt|d�|jtt|dd�|jtt|d�dS)Nr)r�assertRaisesr	�getattrr
�setattrrr$)r�subrrr� test_property_decorator_subclass`sz.PropertyTests.test_property_decorator_subclass�z)Docstrings are omitted with -O2 and abovecCst�}|j|jjjd�dS)NzSubClass.getter)rr#�	__class__r�__doc__)rr+rrr�$test_property_decorator_subclass_docgsz2PropertyTests.test_property_decorator_subclass_doccCst�}|j|jjjd�dS)NzBaseClass.getter)rr#r.rr/)rr&rrr�%test_property_decorator_baseclass_docmsz3PropertyTests.test_property_decorator_baseclass_doccCs4t�}t�}|j|jjjd�|j|jjjd�dS)Nzspam spam spam)rrr#r.rr/)rr&r+rrr�test_property_decorator_docssz)PropertyTests.test_property_decorator_doccCsPt�}|j|jd�|j|jjjd�t�}|j|jd�|j|jjjd�dS)Nr
z
new docstringr)rr#rr.r/r)rZnewgettersubZ	newgetterrrr�!test_property_getter_doc_overrideysz/PropertyTests.test_property_getter_doc_overridecs�xBddgdgddfD],�G�fdd�dt�}|j|jjt���qWGdd	�d	t��|jt��"G�fd
d�dt�}|jjWdQRXdS)NTFr��1cs"eZdZdd�Z�e_ee�ZdS)zEPropertyTests.test_property___isabstractmethod__descriptor.<locals>.CcSsdS)Nr)rrrr�foo�szIPropertyTests.test_property___isabstractmethod__descriptor.<locals>.C.fooN)rrrr6�__isabstractmethod__rr)�valrr�C�sr9c@seZdZdd�ZeZdS)zKPropertyTests.test_property___isabstractmethod__descriptor.<locals>.NotBoolcSs
t��dS)N)�
ValueError)rrrr�__bool__�szTPropertyTests.test_property___isabstractmethod__descriptor.<locals>.NotBool.__bool__N)rrrr;�__len__rrrr�NotBool�sr=cs$eZdZdd�Z��e_ee�ZdS)zEPropertyTests.test_property___isabstractmethod__descriptor.<locals>.CcSsdS)Nr)rrrrr6�szIPropertyTests.test_property___isabstractmethod__descriptor.<locals>.C.fooN)rrrr6r7rr)r=rrr9�s)�objectZassertIsr6r7�boolr(r:)rr9r)r=r8r�,test_property___isabstractmethod__descriptor�sz:PropertyTests.test_property___isabstractmethod__descriptorcCs0tdd�}|j|jd�d|_|j|jd�dS)NZbasic)rZextended)rr#r/)r�prrr�"test_property_builtin_doc_writable�s
z0PropertyTests.test_property_builtin_doc_writablecCsHGdd�dt�}|�}|j|jjjd�d|jj_|j|jjjd�dS)Nc@seZdZedd��ZdS)zOPropertyTests.test_property_decorator_doc_writable.<locals>.PropertyWritableDoccSsdS)�Eggs�eggsr)rrrrr�szTPropertyTests.test_property_decorator_doc_writable.<locals>.PropertyWritableDoc.spamN)rrrrrrrrr�PropertyWritableDoc�srErCZSpam)r>r#r.rr/)rrEr+rrr�$test_property_decorator_doc_writable�s

z2PropertyTests.test_property_decorator_doc_writablecCs\tjtd�}tdddd�}|�}x td�D]}|jdddd�q*W|j|�|ddd	�dS)
N�gettotalrefcount�fget�fset�fdelr�drr!)Zdelta)rZ
get_attribute�sysr�rangerZassertAlmostEqual)rrGZ	fake_propZrefs_before�irrr�test_refleaks_in___init__�sz'PropertyTests.test_refleaks_in___init__N)rrrr'r,�unittest�skipIfrL�flags�optimizer0r1r2r3r@rBrFrZ
refcount_testrOrrrrr Ps	r c@seZdZdZdS)�PropertySubzThis is a subclass of propertyN)rrrr/rrrrrT�srTc@seZdZdZfZdS)�PropertySubSlotsz5This is a subclass of property that defines __slots__N)rrrr/�	__slots__rrrrrU�srUc@sheZdZdd�Zejejjdkd�dd��Z	ejejjdkd�dd��Z
ejejjdkd�d	d
��ZdS)�PropertySubclassTestscCs6yGdd�dt�}Wntk
r(Yn
Xtd��dS)Nc@seZdZedd��ZdS)zFPropertySubclassTests.test_slots_docstring_copy_exception.<locals>.FoocSsdS)z5Trying to copy this docstring will raise an exceptionrr)rrrrr�szKPropertySubclassTests.test_slots_docstring_copy_exception.<locals>.Foo.spamN)rrrrUrrrrr�Foo�srXzAttributeError not raised)r>�AttributeError�	Exception)rrXrrr�#test_slots_docstring_copy_exception�s
z9PropertySubclassTests.test_slots_docstring_copy_exceptionr-z)Docstrings are omitted with -O2 and abovecCs$Gdd�dt�}|j|jjd�dS)Nc@seZdZedd��ZdS)z6PropertySubclassTests.test_docstring_copy.<locals>.FoocSsdS)z!spam wrapped in property subclassrr)rrrrr�sz;PropertySubclassTests.test_docstring_copy.<locals>.Foo.spamN)rrrrTrrrrrrX�srXz!spam wrapped in property subclass)r>r#rr/)rrXrrr�test_docstring_copy�sz)PropertySubclassTests.test_docstring_copycs�Gdd�dt����}|j|jd�d|_|j|jd�|j�jjd�G�fdd�d��}|�}|j|jd�d|_|j|jd	�|j|jjd�dS)
Nc@s.eZdZdd�Zedd��Zejdd��ZdS)zOPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FoocSs
d|_dS)Nr)r)rrrrr�szXPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.Foo.__init__cSs|jS)z!spam wrapped in property subclass)r)rrrrr�szTPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.Foo.spamcSs
||_dS)zthis docstring is ignoredN)r)rrrrrr�sN)rrrrrTrrrrrrrX�srXrr-z!spam wrapped in property subclasscseZdZ�jjdd��ZdS)zRPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FooSubcSs
d|_dS)zanother ignored docstringrDN)r)rrrrrr�szWPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FooSub.spamN)rrrrrr)rXrr�FooSub�sr]�rD)r>r#rr/)rr6r]Zfoosubr)rXr�,test_property_setter_copies_getter_docstring�s 
zBPropertySubclassTests.test_property_setter_copies_getter_docstringcsXGdd�dt�}|j|jjd�Gdd�dt��G�fdd�d��}|j|jjd�dS)Nc@s&eZdZedd��Zejdd��ZdS)zIPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FoocSsdS)za docstringrr)rrrrrszNPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo.spamcSsdS)za new docstringr-r)rrrrrsN)rrrrTrrrrrrrXsrXza new docstringc@seZdZedd��ZdS)zMPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FooBasecSsdS)za docstringrr)rrrrr
szRPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FooBase.spamN)rrrrTrrrrr�FooBasesr`cseZdZ�jjdd��ZdS)zJPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo2cSsdS)za new docstringr-r)rrrrrszOPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo2.spamN)rrrrrr)r`rr�Foo2sra)r>r#rr/)rrXrar)r`r�&test_property_new_getter_new_docstring�s
	z<PropertySubclassTests.test_property_new_getter_new_docstringN)rrrr[rPrQrLrRrSr\r_rbrrrrrW�s rW�__main__)rLrPZtestrrZrr	r
rr>rrrrrrZTestCaser rrTrUrWr�mainrrrr�<module>s$
lW


Youez - 2016 - github.com/yon3zu
LinuXploit