Current File : //usr/local/apps/python3/lib/python3.11/distutils/tests/__pycache__/test_bdist_rpm.cpython-311.pyc |
�
�Ke� � �� � d Z ddlZddlZddlZddlmZmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ dZ G d � d
ej ej ej ej � � Zd� Zedk r e e� � � � dS 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 �� � � e Zd Z� fd�Z� fd�Z ej ej � d� � d� � e
� � ej ed� � du d� � ej ed� � du d � � ej ej
j d
� � d� � � � � � � � � � � Z ej ej � d� � d� � e
� � ej ed� � du d� � ej ed� � du d � � ej ej
j d
� � d� � � � � � � � � � � Z� xZS )
�BuildRpmTestCasec �V �� t j � d� � n"# t $ r t j d� � �w xY wt
t | � � � � � t j
� � | _ t j t j d d � f| _
d S )NzUTF-8z(sys.executable is not encodable to UTF-8)�sys�
executable�encode�UnicodeEncodeError�unittest�SkipTest�superr
�setUp�os�getcwd�old_location�argv�old_sys_argv��self� __class__s ��H/usr/local/apps/python3/lib/python3.11/distutils/tests/test_bdist_rpm.pyr zBuildRpmTestCase.setUp s� �� � P��N�!�!�'�*�*�*�*��!� P� P� P��#�$N�O�O�O� P���� ���%�%�+�+�-�-�-��I�K�K����H�c�h�q�q�q�k�1����s �# �Ac �� �� t j | j � � | j d t _ | j d t j d d �<