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/test_importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�w2_W�@s$ddlmZejd�ZddlZddlZddlZddlZddl	m
Z
ddlmZddl
mZddlmZe
jd	d
gd�ddlmZmZmZmZmZmZmZmZmZd
d�Zeddd��Zejejjd
�d�Gdd�d��Z ej!e ed�\Z"Z#ejejjd
�d�Gdd�d��Z$ej!e$ed�\Z%Z&dS)�)�utilzimportlib.machinery�N)�support)�get_platform)�contextmanager)�temp_module�winreg�win)Zrequired_on)	�	CreateKey�HKEY_CURRENT_USER�SetValue�REG_SZ�KEY_ALL_ACCESS�EnumKey�CloseKey�	DeleteKey�OpenKeycCstyt||td�}Wntk
r&dSXx4yt|d�}Wntk
rNPYnXt||�q*Wt|�t||�dS)N)�accessr)rr�OSErrorr�delete_registry_treerr)�root�subkey�hkeyZ	subsubkey�r�E/opt/alt/python36/lib64/python3.6/test/test_importlib/test_windows.pyrsrccs�|jjr|jj}n|jj}|j|dtjdd�d�}zHt|d��4}tt	|�}|dkr^|d}t
|dt|�dVWdQRXWd|jjr�tj
j|�}tt	|�XdS)Nz%d.%d�)�fullname�sys_versionza = 1z.py�)�WindowsRegistryFinder�DEBUG_BUILD�REGISTRY_KEY_DEBUG�REGISTRY_KEY�format�sys�version_inforr
rrr
�os�path�dirnamer)�	machinery�namer'r�key�locationrrrr�setup_module$s

r-zrequires Windowsc@s:eZdZdjej��Zdd�Zdd�Zdd�Z	dd	�Z
d
S)�WindowsRegistryFinderTestsz	spamham{}cCs|jjjd�}|j|d�dS)N�spam)r)r�	find_spec�assertIs)�self�specrrr�test_find_spec_missing?sz1WindowsRegistryFinderTests.test_find_spec_missingcCs|jjjd�}|j|d�dS)Nr/)r)r�find_moduler1)r2�loaderrrr�test_find_module_missingCsz3WindowsRegistryFinderTests.test_find_module_missingc
CsVt|j|j��>|jjj|j�}|jjj|j�}|j|d�|j|d�WdQRXdS)N)r-r)�test_modulerr5r0ZassertIsNot)r2r6r3rrr�test_module_foundGs
z,WindowsRegistryFinderTests.test_module_foundc	CsVt|j|jdd��:|jjj|j�}|jjj|j�}|j|�|j|�WdQRXdS)N�.)r')r-r)r8rr5r0ZassertIsNone)r2r6r3rrr�test_module_not_foundNs

z0WindowsRegistryFinderTests.test_module_not_foundN)�__name__�
__module__�__qualname__r#r&�getpidr8r4r7r9r;rrrrr.9s
r.)r)c@seZdZdd�ZdS)�WindowsExtensionSuffixTestscCs~|jj}djtjtjddt���}y|jd�}Wn&t	k
rV|jd�}d|}YnX|j
||�|j|�}|j||�dS)Nz.cp{0.major}{0.minor}-{1}.pydz[^a-zA-Z0-9]�_z.pydz_d.pydZ_d)r)�EXTENSION_SUFFIXESr#r$r%�re�subr�index�
ValueErrorZassertInZ
assertLess)r2�suffixesZexpected_tagZ
untagged_iZtagged_irrr�test_tagged_suffix[s

z.WindowsExtensionSuffixTests.test_tagged_suffixN)r<r=r>rHrrrrr@Ysr@)N)'rrZ	test_utilZimport_importlibr)r&rCr$ZunittestZtestrZdistutils.utilr�
contextlibrr�
import_modulerr
rrr
rrrrrrr-Z
skipUnless�platform�
startswithr.Z	test_bothZ!Frozen_WindowsRegistryFinderTestsZ!Source_WindowsRegistryFinderTestsr@Z"Frozen_WindowsExtensionSuffixTestsZ"Source_WindowsExtensionSuffixTestsrrrr�<module>s$
,""

Youez - 2016 - github.com/yon3zu
LinuXploit