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__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/distutils/tests/__pycache__/test_bdist_dumb.cpython-38.pyc
U

@��gY�@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZdZ
zddlZdZWnek
r�d	ZYnXGd
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__��>/opt/cppython/lib/python3.8/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
Csj|��}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|��}W5|��Xttdttjj|���}dt
jdd�dg}	t
j�sV|	�dt
jj �|�|t|	��dS)NZfoozsetup.pyzfoo.py�#zMANIFEST.inzinclude foo.pyZREADME�z0.1Zxxx)�name�versionZ
py_modulesZurlZauthorZ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�ZipFile�closeZnamelist�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_SUPPORTr8�
__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?r9rrrr�<module>s,	
�@

F1le Man4ger