Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/distutils/tests/__pycache__/test_bdist_dumb.cpython-39.pyc

a

��gY�@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZdZ
zddlZdZWney~d	ZYn0Gd
d�dejejejej�Zdd
�Zedkr�ee��dS)z'Tests for distutils.command.bdist_dumb.�N)�run_unittest)�Distribution)�
bdist_dumb)�supportz�from distutils.core import setup
import foo

setup(name='foo', version='0.1', py_modules=['foo'],
      url='xxx', author='xxx', author_email='xxx')

TFcs<eZdZ�fdd�Z�fdd�Ze�ed�dd��Z�Z	S)�BuildDumbTestCasecs2tt|���t��|_tjtjdd�f|_dS�N)	�superr�setUp�os�getcwd�old_location�sys�argv�old_sys_argv��self��	__class__��;/usr/local/lib/python3.9/distutils/tests/test_bdist_dumb.pyr	"s
zBuildDumbTestCase.setUpcs>t�|j�|jdt_|jdtjdd�<tt|���dS)Nr�)	r
�chdirrrr
rrr�tearDownrrrrr'szBuildDumbTestCase.tearDownzNeed zlib support to runc
Csr|��}tj�|d�}t�|�|�|dft�|�|dfd�|�|dfd�|�|dfd�tdd	dgd
d
d
d��}d|_t�	|�dgt
_t|�}d|_
|��|��t�tj�|d
��}d|��|jf}|�||g�t�tj�d
|��}z|��}W|��n
|��0ttdttjj|���}dt
jdd�dg}	t
j�s^|	�dt
jj �|�|t|	��dS)NZfoozsetup.pyzfoo.py�#zMANIFEST.inzinclude foo.pyZREADME�z0.1Zxxx)�name�versionZ
py_modules�urlZauthorZauthor_email�zip�distz	%s.%s.zipzfoo-0.1-py%s.%s.egg-info�z
foo.%s.pyc)!�mkdtempr
�path�join�mkdirZ
write_file�SETUP_PYrZscript_namerr
rr�formatZensure_finalized�run�listdirZget_fullnameZ	plat_nameZassertEqual�zipfile�ZipFileZnamelist�close�sorted�filter�map�basename�version_info�dont_write_bytecode�append�implementation�	cache_tag)
rZtmp_dirZpkg_dirr�cmdZdist_created�base�fp�contentsZwantedrrr�test_simple_built-s>
�

z#BuildDumbTestCase.test_simple_built)
�__name__�
__module__�__qualname__r	r�unittestZ
skipUnless�ZLIB_SUPPORTr9�
__classcell__rrrrrs
rcCs
t�t�Sr)r=Z	makeSuiterrrrr�
test_suite]sr@�__main__)�__doc__r
r
r)r=Ztest.supportrZdistutils.corerZdistutils.command.bdist_dumbrZdistutils.testsrr%�zlibr>�ImportErrorZTempdirManagerZLoggingSilencerZEnvironGuardZTestCaserr@r:rrrr�<module>s,	
�@

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists