|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��g�j � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dl
mZmZ zd dlmZ dZW n ek
r� dZY nX d dlmZ d dlmZ dd lmZ dd
lmZ G dd� d�ZG d
d� dee
jedd�ZG dd� dee
jedd�ZG dd� de
j�ZG dd� d�Z G dd� de e
jedd�Z!G dd� de e
jedd�Z"e#dk�r~e
�$� dS )� N)�mock�
skipUnless)�ProcessPoolExecutorTF)�support)�
script_helper� )�without_source_date_epoch)�SourceDateEpochTestMetac @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Ze�d�dd� �Zd d!� Ze�d�d"d#� �Ze�d�e�d$�d%d&� ��Zejdd'd(�e�d$�d)d*� ��Zd'S )+�CompileallTestsBasec C s� t �� | _tj�| jd�| _tj� | j�| _
t| jd��}|�d� W 5 Q R X tj�| jd�| _
tj� | j
�| _t�| j| j
� tj�| jd�| _t�| j� tj�| jd�| _t�| j| j� d S )N�_test.py�wzx = 123
z _test2.pyZ_subdirz _test3.py)�tempfile�mkdtemp� directory�os�path�join�source_path� importlib�util�cache_from_source�bc_path�open�write�source_path2�bc_path2�shutil�copyfileZsubdirectory�mkdir�source_path3��self�file� r# �3/opt/cppython/lib/python3.8/test/test_compileall.py�setUp s
zCompileallTestsBase.setUpc C s t �| j� d S �N�r �rmtreer �r! r# r# r$ �tearDown- s zCompileallTestsBase.tearDownc C s8 t j�| jd�| _t| jd��}|�d� W 5 Q R X d S )Nz_test_bad.pyr zx (
)r r r r �bad_source_pathr r r r# r# r$ �add_bad_source_file0 s z'CompileallTestsBase.add_bad_source_filec C sP t | jd��}|�d�}W 5 Q R X tt�| j�j�}t� dt
jjd|�}||fS )N�rb� �<4sllr )
r r �read�intr �statr �st_mtime�struct�packr r �MAGIC_NUMBER)r! r"