|
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� � @ s� d Z ddlZddlZddlZddlmZmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ dZG d d
� d
ejejejej�Zdd� Zed
kr�ee� � dS )z&Tests for distutils.command.bdist_rpm.� N)�run_unittest�
requires_zlib)�Distribution)� bdist_rpm)�support)�find_executablez�from distutils.core import setup
import foo
setup(name='foo', version='0.1', py_modules=['foo'],
url='xxx', author='xxx', author_email='xxx')
c s� e Zd Z� fdd�Z� fdd�Ze�ej� d�d�e
e�ed�dkd �e�ed
�dkd�dd
� ����Z
e�ej� d�d�e
e�ed�dkd �e�ed
�dkd�dd� ����Z� ZS )�BuildRpmTestCasec sb zt j�d� W n tk
r. t�d��Y nX tt| ��� t �
� | _t jt jd d � f| _
d S )NzUTF-8z(sys.executable is not encodable to UTF-8)�sys�
executable�encode�UnicodeEncodeError�unittestZSkipTest�superr �setUp�os�getcwd�old_location�argv�old_sys_argv��self�� __class__� �=/opt/cppython/lib/python3.8/distutils/tests/test_bdist_rpm.pyr s
zBuildRpmTestCase.setUpc s>