Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/distutils/tests/__pycache__/test_bdist_rpm.cpython-39.pyc
Ðазад
a d�h� � @ 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�du d �e�ed �du d�dd � ����Z e�ej� d�d�e e�ed�du d �e�ed �du d�dd� ����Z� ZS )�BuildRpmTestCasec s` zt j�d� W n ty, t�d��Y n0 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/imh-python/lib/python3.9/distutils/tests/test_bdist_rpm.pyr s zBuildRpmTestCase.setUpc s>