| 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 : |
o
�9j� �
@ s� d dl Z d dlZd dlmZ zeddd�re�d��d dlZdZW n$ eyE Z ze j dkr5e�e
e���dZe
e�ZW Y dZ[ndZ[ww e�e j dkd�e�ed�G d d
� d
ej
���Ze�ed�G dd
� d
ej
��Zedkrwe�� dS dS )� N)�check_sanitizerT)�address�memoryz.The crypt module SEGFAULTs on ASAN/MSAN builds�win32zThis should only run on windowszimport succeededc @ s e Zd Zdd� ZdS )�TestWhyCryptDidNotImportc C s | � dt� d S )Nz
not supported)�assertIn�IMPORT_ERROR��self� r �&/usr/lib/python3.10/test/test_crypt.py�test_import_failure_message s z4TestWhyCryptDidNotImport.test_import_failure_messageN)�__name__�
__module__�__qualname__r
r r r r r s r zcrypt module is requiredc @ s� e Zd Zdd� Zdd� Zdd� Zdd� Ze�e o#e j
e jv p#e je jv d �d
d� �Z
e�e o3e je jv d�d
d� �Zdd� ZdS )�
CryptTestCasec C sV t � d�}t � d|�}| �||� t � dd�}|d ur)t � d|�}| �||� d S d S )N�
mypassword�ab)�crypt�assertEqual)r
�cr�cr2r r r �
test_crypt s
�zCryptTestCase.test_cryptc C sl | � ttj�d� tjD ]'}t�|�}| �t|�|j h d�� |jr3| �|j|d t|�|j � � qd S )N�@ > r � � � � � ) r �lenr �
_saltchars�methods�mksaltr �
salt_chars�ident)r
�method�saltr r r � test_salt&