403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.109
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_module.cpython-36.opt-1.pyc
3

�w2_�!�@s~ddlZddlZddlmZmZddlmZddlZee�Z	Gdd�d�Z
Gdd�d�ZGdd	�d	ej�Z
ed
krzej�dS)�N)�
gc_collect�requires_type_collecting)�assert_python_okc@seZdZedd��ZdS)�
FullLoadercCsdj|j�S)Nz<module '{}' (crafted)>)�format�__name__)�cls�m�r
�5/opt/alt/python36/lib64/python3.6/test/test_module.py�module_reprszFullLoader.module_reprN)r�
__module__�__qualname__�classmethodrr
r
r
rr
src@seZdZdS)�
BareLoaderN)rr
rr
r
r
rrsrc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
edd��Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zed/d0��Zd1d2�Zd3S)4�ModuleTestscCsntjt�}|j|jdk�|jtt|�y|j}|jdt	|��Wnt
k
rXYnX|j|jtj�dS)Nz
__name__ = %s)
�
ModuleType�__new__�
assertTrue�__dict__�assertRaises�SystemError�dirrZfail�repr�AttributeError�assertEqual�__doc__)�self�foo�sr
r
r�test_uninitializeds
zModuleTests.test_uninitializedcCs tjt�}|jtdt|d�dS)Nz"module has no attribute 'not_here'�not_here)rr�assertRaisesRegexr�getattr)rrr
r
r�"test_uninitialized_missing_getattr!s
z.ModuleTests.test_uninitialized_missing_getattrcCstd�}|jtdt|d�dS)Nrz(module 'foo' has no attribute 'not_here'r!)rr"rr#)rrr
r
r�test_missing_getattr)sz ModuleTests.test_missing_getattrcCsltd�}|j|jd�|j|jd�|j|jd�|j|jd�|j|jd�|j|jdddddd��dS)Nr)rr�
__loader__�__package__�__spec__)	rrrr�assertIsr&r'r(r)rrr
r
r�test_no_docstring1szModuleTests.test_no_docstringcCsDtdd�}|j|jd�|j|jd�|j|jdddddd��dS)Nr�foodoc)rrr&r'r()rrrrr)rrr
r
r�test_ascii_docstring=s
z ModuleTests.test_ascii_docstringcCsDtdd�}|j|jd�|j|jd�|j|jdddddd��dS)Nru	foodocሴ)rrr&r'r()rrrrr)rrr
r
r�test_unicode_docstringGs
z"ModuleTests.test_unicode_docstringc	Cs|tdd�}d|_|j}|jdd�|j|jd�|j|jd�|j|jd�|j|jddddddd��|j|j|k�dS)Nru	foodocሴ�*r+)rr�barr&r'r()rr/r�__init__rrrr)rr�dr
r
r�test_reinitQs
zModuleTests.test_reinitcCs&dd�}t�|j|�jdd�dS)NcSstd�}d|_|S)Nr�)rr/)rr
r
r�fasz+ModuleTests.test_dont_clear_dict.<locals>.fr/r3)rrr)rr4r
r
r�test_dont_clear_dict_sz ModuleTests.test_dont_clear_dictcCs<g}td�}||_d}t||j�~t�|j|dg�dS)Nrzwclass A:
    def __init__(self, l):
        self.l = l
    def __del__(self):
        self.l.append(1)
a = A(destroyed)�)r�	destroyed�execrrr)rr7r	rr
r
r�test_clear_dict_in_ref_cyclehsz(ModuleTests.test_clear_dict_in_ref_cyclecCs:td�}tj|�}|j|�|�~t�|j|�d�dS)Nr)r�weakref�refr)r)rr	�wrr
r
r�test_weakrefxs
zModuleTests.test_weakrefcCs td�}|`|jt|�d�dS)Nrz<module '?'>)rrrr)rr	r
r
r�test_module_repr_minimal�sz$ModuleTests.test_module_repr_minimalcCstd�}|jt|�d�dS)Nrz<module 'foo'>)rrr)rr	r
r
r�test_module_repr_with_name�sz&ModuleTests.test_module_repr_with_namecCs"td�}d|_|jt|�d�dS)Nrz/tmp/foo.pyz!<module 'foo' from '/tmp/foo.py'>)r�__file__rr)rr	r
r
r�'test_module_repr_with_name_and_filename�sz3ModuleTests.test_module_repr_with_name_and_filenamecCs&td�}|`d|_|jt|�d�dS)Nrz/tmp/foo.pyz<module '?' from '/tmp/foo.py'>)rrr@rr)rr	r
r
r�#test_module_repr_with_filename_only�sz/ModuleTests.test_module_repr_with_filename_onlycCstd�}|jt|�d�dS)Nrz<module 'foo'>)rrr)rr	r
r
r�$test_module_repr_with_loader_as_None�sz0ModuleTests.test_module_repr_with_loader_as_NonecCs4td�}|`t|_tt�}|jt|�dj|��dS)Nrz<module '?' ({})>)rrrr&rrr)rr	�loader_reprr
r
r�-test_module_repr_with_bare_loader_but_no_name�sz9ModuleTests.test_module_repr_with_bare_loader_but_no_namecCs4td�}|`t|_tt�}|jt|�dj|��dS)Nrz<module '?' ({})>)rrrr&rrr)rr	rDr
r
r�-test_module_repr_with_full_loader_but_no_name�sz9ModuleTests.test_module_repr_with_full_loader_but_no_namecCs0td�}t|_tt�}|jt|�dj|��dS)Nrz<module 'foo' ({})>)rrr&rrr)rr	rr
r
r�!test_module_repr_with_bare_loader�s
z-ModuleTests.test_module_repr_with_bare_loadercCs"td�}t|_|jt|�d�dS)Nrz<module 'foo' (crafted)>)rrr&rr)rr	r
r
r�!test_module_repr_with_full_loader�sz-ModuleTests.test_module_repr_with_full_loadercCs(td�}t|_d|_|jt|�d�dS)Nrz/tmp/foo.pyz!<module 'foo' from '/tmp/foo.py'>)rrr&r@rr)rr	r
r
r�.test_module_repr_with_bare_loader_and_filename�sz:ModuleTests.test_module_repr_with_bare_loader_and_filenamecCs(td�}t|_d|_|jt|�d�dS)Nrz/tmp/foo.pyz<module 'foo' (crafted)>)rrr&r@rr)rr	r
r
r�.test_module_repr_with_full_loader_and_filename�sz:ModuleTests.test_module_repr_with_full_loader_and_filenamecCs|jtt�d�dS)Nz<module 'sys' (built-in)>)rr�sys)rr
r
r�test_module_repr_builtin�sz$ModuleTests.test_module_repr_builtincCsZtt�}d}d}|j|dt|��|dj||��|j|t|�d�|dj||��dS)Nz<module 'unittest' from 'z
__init__.py'>z{!r} does not start with {!r}z{!r} does not end with {!r})r�unittestr�lenr)r�rZstarts_withZ	ends_withr
r
r�test_module_repr_source�sz#ModuleTests.test_module_repr_sourcecCsBtdd�\}}}|j|�|j�}|jt|�ddddddh�dS)	Nz-czfrom test import final_asx = asx = bs
final_a.x = as
final_b.x = bs	len = lensshutil.rmtree = rmtree)rZassertFalse�
splitlinesr�set)rZrc�out�err�linesr
r
r�$test_module_finalization_at_shutdown�s

z0ModuleTests.test_module_finalization_at_shutdowncs:Gdd�d��G�fdd�dt�}|jtt|d�d�dS)Nc@seZdZdd�ZdS)z;ModuleTests.test_descriptor_errors_propagate.<locals>.DescrcSst�dS)N)�RuntimeError)r�o�tr
r
r�__get__�szCModuleTests.test_descriptor_errors_propagate.<locals>.Descr.__get__N)rr
rrZr
r
r
r�Descr�sr[cseZdZ��ZdS)z7ModuleTests.test_descriptor_errors_propagate.<locals>.MN)rr
r�melonr
)r[r
r�M�sr]Zmymodr\)rrrWr#)rr]r
)r[r� test_descriptor_errors_propagate�sz,ModuleTests.test_descriptor_errors_propagateN)rr
rr r$r%r*r,r-r2r5rr9r=r>r?rArBrCrErFrGrHrIrJrLrPrVr^r
r
r
rrs2


			r�__main__)rMr:Ztest.supportrrZtest.support.script_helperrrK�typerrrZTestCaserr�mainr
r
r
r�<module>sa

Youez - 2016 - github.com/yon3zu
LinuXploit