|
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/distutils/tests/__pycache__/ |
U
@��g�J � @ s d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z m
Z
mZ ddlm
Z
ddlmZmZmZmZ ddlmZ ddlmZ G d d
� d
e
�ZG dd� de �ZG d
d� dejejejej�ZG dd� dejejej�Zdd� Ze dk�ree� � dS )zTests for distutils.dist.� N)�mock)�Distribution�fix_help_options�DistributionMetadata)�Command)�TESTFN�captured_stdout�captured_stderr�run_unittest)�support)�logc @ s e Zd ZdZdgZdd� ZdS )� test_distz#Sample distutils extension command.)zsample-option=�Sz help textc C s
d | _ d S �N)�
sample_option��self� r �8/opt/cppython/lib/python3.8/distutils/tests/test_dist.py�initialize_options s ztest_dist.initialize_optionsN)�__name__�
__module__�__qualname__�__doc__Zuser_optionsr r r r r r
s �r
c @ s e Zd ZdZdd� ZdS )�TestDistributionz�Distribution subclasses that avoids the default search for
configuration files.
The ._config_files attribute must be set before
.parse_config_files() is called.
c C s | j S r )�
_config_filesr r r r �find_config_files( s z"TestDistribution.find_config_filesN)r r r r r r r r r r s r c sz e Zd Z� fdd�Z� fdd�Zddd�Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Z� ZS )�DistributionTestCasec s4 t t| ��� tjtjd d � f| _tjdd �= d S )N� )�superr �setUp�sys�argvr �� __class__r r r 1 s zDistributionTestCase.setUpc s2 | j d t_ | j d tj d d �<