Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_runpy.cpython-39.pyc

a

��g5��@s�ddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZmZmZmZmZmZmZddlmZmZddlZddlmZmZmZmZdZ ddddddd�Z!eeddgej"dd	d	e#e!d
ddd�d
�Z$e$�%e!�Gdd�d�Z&Gdd�dej'e&�Z(Gdd�dej'e&�Z)Gdd�dej'e&�Z*Gdd�dej'�Z+e,dk�r|e�-�dS)�N)�forget�make_legacy_pyc�unload�verbose�
no_tracing�create_empty_file�temp_dir)�make_script�make_zip_script)�	_run_code�_run_module_code�
run_module�run_patha�# Check basic code execution
result = ['Top level assignment']
def f():
    result.append('Lower level reference')
f()
del f
# Check the sys module
import sys
run_argv0 = sys.argv[0]
run_name_in_sys_modules = __name__ in sys.modules
module_in_sys_modules = (run_name_in_sys_modules and
                         globals() is sys.modules[__name__].__dict__)
# Check nested operation
import runpy
nested = runpy._run_module_code('x=1\n', mod_name='<run>')
)�__name__�__file__�
__cached__�__package__�__doc__�__spec__zTop level assignmentzLower level referenceF�z<run>)�xr�
__loader__)�sys�runpy�result�	run_argv0�run_name_in_sys_modules�module_in_sys_modules�nestedc@s$eZdZgd�Zdd�Zdd�ZdS)�CodeExecutionMixin)�name�parent�origin�cached�has_location�submodule_search_locationsc	Cs*|��}|��}t|�D]D}|�d�r|�d�r||vrB|�|�||dvr|d�|�q|�d�}|�d�}|dur�|�|�n^|jdur�|�t|j�t|j��|j	D]4}d|}|t
||�f}|t
||�f}|�||�q�|�t|�t|��|D](}|||f}|||f}|�||�q�dS)zbCheck two namespaces match.

           Ignores any unspecified interpreter created names
        �__rrNz	__spec__.)�copy�list�
startswith�endswith�popZassertIsNone�loader�assertEqual�type�CHECKED_SPEC_ATTRIBUTES�getattr�set)	�self�	result_ns�expected_ns�kZresult_specZ
expected_spec�attr�actualZexpected�r8�+/usr/local/lib/python3.9/test/test_runpy.py�assertNamespaceMatchesPs4



�
z)CodeExecutionMixin.assertNamespaceMatchesc
Cs�t�}|��}|d}tjd}tj�||�}|d�}|�||�|�tjd|�|�tj�||�|�d|i}	||d<||	�}|�||	�|�||�|�tjd|�|�tj�||�|�dS)z�Check that an interface runs the example code correctly

           First argument is a callable accepting the initial globals and
           using them to create the actual namespace
           Second argument is the expected result
        rrN�sentinel)	�objectr'r�argv�modules�getr:ZassertIsZassertIsNot)
r2Zcreate_namespaceZexpected_namespacer;r4�run_nameZsaved_argv0Z	saved_modr3Z
initial_nsr8r8r9�check_code_executionxs 
z'CodeExecutionMixin.check_code_executionN)r�
__module__�__qualname__r/r:rAr8r8r8r9rDs	(rc@s eZdZdZdd�Zdd�ZdS)�ExecutionLayerTestCasez9Unit tests for runpy._run_code and runpy._run_module_codecCs.t��}|�ddi�dd�}|�||�dS)NrcSstti|�S�N)r�example_source�Zinit_globalsr8r8r9�	create_ns�sz7ExecutionLayerTestCase.test_run_code.<locals>.create_ns)�example_namespacer'�updaterA)r2r4rHr8r8r9�
test_run_code�s�z$ExecutionLayerTestCase.test_run_codecsdd�d}d}d}tjj�||d��t��}|��|||�|ddd����fdd	�}|�||�dS)
Nz
<Nonsense>zSome other nonsensezNow you're just being silly�)r"r,T)rrrrrrrrcstt|���SrE)rrFrG��mod_name�mod_specr8r9rH�s
�z>ExecutionLayerTestCase.test_run_module_code.<locals>.create_ns)�	importlib�	machinery�
ModuleSpecrIr'rJrA)r2�	mod_fnameZ
mod_loaderZmod_packager4rHr8rMr9�test_run_module_code�s*��
z+ExecutionLayerTestCase.test_run_module_codeN)rrBrCrrKrTr8r8r8r9rD�s	rDc@seZdZdZdd�Zdd�Zdd�Zd:d	d
�Zd;ddd�d
d�Zdd�Z	dd�Z
d<ddd�dd�Zd=ddd�dd�Zdd�Z
d>dd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�ZdS)?�RunModuleTestCasezUnit tests for runpy.run_modulecCs2zt|�WntyYn0|�d|�dS)NzExpected import error for )r
�ImportError�fail)r2rNr8r8r9�expect_import_error�s
z%RunModuleTestCase.expect_import_errorcCs^|�d�|�d�|�d�|�d�|�d�|�d�|�d�|�d�|�d	�dS)
Nrzsys.imp.ericzos.path.halfza.beez.howardz..eatenz.test_runpyz	.unittest�multiprocessing)rX�r2r8r8r9�test_invalid_names�s







z$RunModuleTestCase.test_invalid_namescCs|�td�dd�dS)Nrr)r-r
rZr8r8r9�test_library_module�sz%RunModuleTestCase.test_library_moduleFcCs,t�|�|rdStj�|d�}t|�|S)N�__init__.py)�os�mkdir�path�joinr)r2�pkg_dir�	namespace�	pkg_fnamer8r8r9�_add_pkg_dir�s
zRunModuleTestCase._add_pkg_dir�
runpy_test�rc�parent_namespacescCsR|s|r|std��d}|tjd}tj�t���}}	tdkrLtd|	�t	j�
d|�tdkrrtdt	jd�|r�|g|}
||
d<|
D]B}tj�|	|�}	|�|	|�}tdkr�td	|	�tdkr�td
|�q�tj�|	|�}
t
|
d��}|�|�Wd�n1�s
0Ytdk�r(td
|
�|d||}tj�||
�}||
||fS)
Nz2Can't mark top level module as a namespace package�
__runpy_pkg__�pyrz  Package tree in:rz  Updated sys.path:���z  Next level in:z
  Created:�w�.)�RuntimeErrorr^�extsepr`�realpath�tempfile�mkdtempr�printr�insertrare�open�writerP�util�spec_from_file_location)r2�source�depthZmod_basercrh�pkg_nameZ
test_fnamerbZsub_dirZnamespace_flagsZnamespace_flagrdrS�mod_filerNrOr8r8r9�	_make_pkg�s2
*�zRunModuleTestCase._make_pkgc	Cszttj�D]}|�d�r
tj|=q
tdkr2td�tjd=tdkrJtd�tj|dd�D]�\}}}|D]R}zt�	tj�
||��Wqfty�}ztdkr�t|�WYd}~qfd}~00qf|D]Z}tj�
||�}zt�|�Wq�t�y}ztdk�rt|�WYd}~q�d}~00q�qXz t�|�tdk�r:td�Wn8t�yt}ztdk�r`t|�WYd}~n
d}~00dS)	Nrirz  Removed sys.modules entriesrz  Removed sys.path entryF)�topdownz  Removed package tree)
r(rr>r)rrsr`r^�walk�removera�OSError�rmdir)	r2�top�entry�root�dirs�filesr �ex�fullnamer8r8r9�_del_pkg�s.

(,
zRunModuleTestCase._del_pkgcCs\d}|d|7<|d|d<|d}tj�|j|d�}||d<|rX|d|7<dS)N�crrrr)rPrwrxr )r2�ns�	alter_sysZchar_to_add�specZnew_specr8r8r9�_fix_ns_for_legacy_pycs
�z(RunModuleTestCase._fix_ns_for_legacy_pycc
	s"|jt|||d�\}}�}t��t��}|��||j��d�d|d���rb|�|ddd����fdd�}	z�td	kr�t	d
��|�
|	|�t��t
��t�|�tjs�t|�t��t��td	kr�t	d��|�|��|�
|	|�W|�|�n|�|�0td	k�rt	d�dS)
Nrgrmr�rrrrrT�rrrcst�|�d�S�N�r��r
rG�r�rNr8r9rH6sz2RunModuleTestCase._check_module.<locals>.create_nsr�Running from source:�Running from compiled:�Module executed successfully)r}rFrrIr'rJr#�
rpartitionrrsrArP�invalidate_caches�
__import__r^r�r�dont_write_bytecoderrr�r�)
r2rzr�rcrhrbrSrOr4rHr8r�r9�
_check_module!sH��
��
zRunModuleTestCase._check_modulec	s.|jt|d||d�\}}}}|�d�d�t|�t��}	|	�||tj�	|��|d���rn|	�|ddd����fdd	�}
z�t
d
kr�td��|�|
|	�t�
�t|�t�|�tjs�t|�t|�t
d
kr�td��t�
�|�|	��|�|
|	�W|�|�n|�|�0t
d
k�r*td
�dS)N�__main__rgrmrr�Tr�cst�|�d�Sr�r�rG�r�r{r8r9rH_sz3RunModuleTestCase._check_package.<locals>.create_nsrr�r�zPackage executed successfully)r}rFr�rrIr'rJrPrw�cache_from_sourcerrsrAr�r�r^r�rr�rrr�r�)r2rzr�rcrhrbrSrNrOr4rHr8r�r9�_check_packageIsJ
��

��
z RunModuleTestCase._check_packagecCs�|dkrtd��d}|}t|�D]}|}tj�||�}q tj�|d�}t|�tdkr`td|�tj�|d�}	|�|	�tdkr�td|	�tj�|	d�}
|�|
�tdkr�td	|
�tj�|
d
�}t|�tdkr�td|�dS)Nrz$Relative module test needs depth > 1riz
sibling.pyz  Added sibling module:�unclez  Added uncle package:Zcousinz  Added cousin package:z	nephew.pyz  Added nephew module:)	�
ValueError�ranger^r`rarrrsre)r2�base_dirryrzr{Z
module_dir�iZ
parent_dirZ
sibling_fnameZ	uncle_dirZ
cousin_dirZnephew_fnamer8r8r9�_add_relative_modulesrs&

z'RunModuleTestCase._add_relative_modulesNc	Csdd}|�||�\}}}}|dur&|}n|}�z|�|||�|�d�d}	tdkr\td|�t||d�}
|�|
d|�|�|
d|	�|�d	|
�|�d
|
�~
t�	�t
|�t�|�t
j�s4t|�t|�tdkr�td|�t�	�t||d�}|�|d|�|�|d|	�|�d	|�|�d
|�~W|�|�n|�|�0tdk�r`td�dS)
Nza\
from __future__ import absolute_import
from . import sibling
from ..uncle.cousin import nephew
rmrrr�)r@rrZsiblingZnephewr�r�)r}r�r�rrsr
r-�assertInrPr�r�r^r�rr�rrr�)r2rzr@�contentsrbrSrNrO�
expected_namer{Zd1Zd2r8r8r9�_check_relative_imports�s@
�

z)RunModuleTestCase._check_relative_importscCs.td�D] }tdkrtd|�|�|�qdS)N�r�Testing package depth:�r�rrsr��r2rzr8r8r9�test_run_module�sz!RunModuleTestCase.test_run_modulecCs6tdd�D]&}tdkr td|�|j|ddd�q
dS�Nrr�r�Trgr�r�r8r8r9�$test_run_module_in_namespace_package�sz6RunModuleTestCase.test_run_module_in_namespace_packagecCs0tdd�D] }tdkr td|�|�|�q
dS)Nrr�r��r�rrsr�r�r8r8r9�test_run_package�sz"RunModuleTestCase.test_run_packagecCs~|�ddd�}|\}}}}|�dd�}|�|j|�tj�|dd�}ttt	t
f}|D�]"}|j}|�|���d�
|�}	t|dd	d
��}
|
�|	�Wd�n1s�0Yzt|�Wn4|y�}z|�dt
|��WYd}~nd}~00|�d�
|��zt|d
�Wn6|�yF}z|�dt
|��WYd}~nd}~00|�d�
|��Wd�qT1�sn0YqTdS)NrLrr��	.__main__rir]z raise {0}('{0} in __init__.py.')Zwt�ascii��encodingzfinding speczNothing raised; expected {}z
.submodule)r}�replace�
addCleanupr�r^r`rarV�AttributeError�	TypeErrorr�rZsubTest�formatrurvr
ZassertNotInrW)r2rrb�_rN�init�
exceptions�	exceptionr ryr|�errr8r8r9� test_run_package_init_exceptions�s,

(&&z2RunModuleTestCase.test_run_package_init_exceptionsc	Csp|�dd�\}}}}zJt|�|�td��t|�Wd�n1sH0YW|�|�n|�|�0dS)NrLr�found in sys\.modules)r}r��assertWarnsRegex�RuntimeWarningr
r�)r2rbr�rNr8r8r9�test_submodule_imported_warning�s�(z1RunModuleTestCase.test_submodule_imported_warningcCs�|�ddd�\}}}}|�|j|�|�dd�}t|�|�|tj�t�	��$t�
dt�t|�Wd�n1sx0Yt|�|�
td��t|�Wd�n1s�0YdS)NrLrr�r��errorr�)r}r�r�r�r�r�rr>�warnings�catch_warnings�simplefilterr�r
r�)r2rbr�rN�packager8r8r9� test_package_imported_no_warning�s
&z2RunModuleTestCase.test_package_imported_no_warningcCs4tdd�D]$}tdkr td|�|j|dd�q
dS)Nrr�r�T)rhr�r�r8r8r9�%test_run_package_in_namespace_package�sz7RunModuleTestCase.test_run_package_in_namespace_packagecCs4tdd�D]$}tdkr td|�|j|dd�q
dS)Nrr�r�T)rcr�r�r8r8r9�test_run_namespace_package�sz,RunModuleTestCase.test_run_namespace_packagecCs6tdd�D]&}tdkr td|�|j|ddd�q
dSr�r�r�r8r8r9�/test_run_namespace_package_in_namespace_package�szARunModuleTestCase.test_run_namespace_package_in_namespace_packagecCs2td�D]$}tdkrtd|�|j|dd�qdS)Nr�rr�Tr�r�r�r8r8r9�test_run_module_alter_syssz+RunModuleTestCase.test_run_module_alter_syscCs4tdd�D]$}tdkr td|�|j|dd�q
dS)Nrr�r�Tr�r�r�r8r8r9�test_run_package_alter_sys	sz,RunModuleTestCase.test_run_package_alter_syscCs0tdd�D] }tdkr td|�|�|�q
dS)N��rz"Testing relative imports at depth:�r�rrsr�r�r8r8r9�test_explicit_relative_importsz/RunModuleTestCase.test_explicit_relative_importcCs2tdd�D]"}tdkr td|�|�|d�q
dS)Nr�r�rz'Testing main relative imports at depth:r�r�r�r8r8r9�test_main_relative_importsz+RunModuleTestCase.test_main_relative_importc	s�d}d�|�t|�\}}�}t��t��}|��|tj�|���	d�d|d����fdd�}z|�
||�W|�|�n|�|�0dS)Nrz*And now for something completely differentrmrr�cst�|��SrEr�rG�rNr@r8r9rH&sz2RunModuleTestCase.test_run_name.<locals>.create_ns)r}rFrrIr'rJrPrwr�r�rAr�)r2rzrbrSrOr4rHr8r�r9�
test_run_names"
�

�zRunModuleTestCase.test_run_namecCs|ddl}d}d}ddg}d|dg}t�}t�}td|�D]V}d	�|g|�}	|�|	�|D]}
|�|	d	|
�q\|D]}
|�|	d	|
�qxq:d	�|g|�}	|�|	�|�|	d
�|�d|�\}}}
}|�|j|�td|d�D]}|�|d|�q�|�	|g�D]H}|�
||j�|�
|jt
jj�|j�rD|�|j�n|�|j��q
|�t|�d|�|�t|�d|�dS)
Nrr�rir�zuncle.cousinzuncle.cousin.nephewz.siblingrrmz.runpy_testrLr�)�pkgutilr1r�ra�addr}r�r�r�Z
walk_packagesZassertIsInstanceZ
ModuleInfoZ
module_finderrPrQ�
FileFinderZispkgr�r r-�len)r2r�Z	max_depth�	base_nameZpackage_suffixesZmodule_suffixesZexpected_packagesZexpected_modulesrzr{r rbrSrNrOZ
moduleinfor8r8r9�test_pkgutil_walk_packages-s@


�
�z,RunModuleTestCase.test_pkgutil_walk_packages)F)rf)F)F)N)rrBrCrrXr[r\rer}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r8r8r8r9rU�sB
��(�)
(
rUc@s�eZdZdZd#dd�Zd$dd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zedd ��Zd!d"�ZdS)%�RunPathTestCasezUnit tests for runpy.run_pathNFcCs|durt}t||||�SrE)rFr	)r2�
script_dirZscript_basenamery�omit_suffixr8r8r9�_make_test_scriptTs
�z!RunPathTestCase._make_test_scriptTc
s��fdd�}t��}	|dur"|}
n|}
|rJtj�|
|�}|j}|sRd|_nd}}|	�|||d||ddd��|�||	�d���fdd�}|r�|dur�tj��|�}|s�d|_||	d<�|	d	<��	d
�d|	d<|�||	�dS)
Ncs
t�|�SrE�rrG)�script_namer8r9rH_sz0RunPathTestCase._check_script.<locals>.create_nsrLT)rrrrrrrrzprove.issue15230.is.fixedcst�|��SrEr�rG�r@r�r8r9rH|srrrmrr)
rIr'rPrwrxr#r,rJrAr�)
r2r�r�Z
expected_fileZexpected_argv0rN�expect_spec�check_loaderrHr4Z	spec_namerOZ
mod_cachedr8r�r9�
_check_script[sH��
�zRunPathTestCase._check_scriptcCst�|�}|�t|t|�dSrE)�re�escapeZassertRaisesRegexrVr)r2r��msgr8r8r9�_check_import_error�s
z#RunPathTestCase._check_import_errorcCsNt��4}d}|�||�}|j|d||dd�Wd�n1s@0YdS�N�script�
<run_path>F�r��rr�r��r2r�rNr�r8r8r9�test_basic_script�s
�z!RunPathTestCase.test_basic_scriptcCsTt��:}d}t�|�||��}|j|d||dd�Wd�n1sF0YdSr�)r�pathlib�Pathr�r�r�r8r8r9�"test_basic_script_with_path_object�s
�
�z2RunPathTestCase.test_basic_script_with_path_objectcCsRt��8}d}|j||dd�}|j|d||dd�Wd�n1sD0YdS)Nr�T)r�r�Fr�r�r�r8r8r9�test_basic_script_no_suffix�s�
�z+RunPathTestCase.test_basic_script_no_suffixcCsft��L}d}|�||�}tj|dd�}t�|�|j|d||dd�Wd�n1sX0YdS)Nr�T��doraiser�Fr�)rr��
py_compile�compiler^r�r�)r2r�rNr��
compiled_namer8r8r9�test_script_compiled�s

�z$RunPathTestCase.test_script_compiledcCsNt��4}d}|�||�}|j|d|||d�Wd�n1s@0YdS)Nr�r��rNr�r�r8r8r9�test_directory�s
�zRunPathTestCase.test_directorycCstt��Z}d}|�||�}tj|dd�}t�|�tjsRt|�}|j	|d|||d�Wd�n1sf0YdS)Nr�Tr�r�r�)
rr�r�r�r^r�rr�rr�)r2r�rNr�r�Z
legacy_pycr8r8r9�test_directory_compiled�s

�z'RunPathTestCase.test_directory_compiledcCsNt��4}d}|�||�}d|}|�||�Wd�n1s@0YdS)N�not_main�"can't find '__main__' module in %r)rr�r�)r2r�rNr�r�r8r8r9�test_directory_error�s
z$RunPathTestCase.test_directory_errorc	Cs`t��F}d}|�||�}t|d|�\}}|j|d|||dd�Wd�n1sR0YdS)Nr��test_zipr�F�rNr�)rr�r
r�)r2r�rNr��zip_name�fnamer8r8r9�test_zipfile�s�zRunPathTestCase.test_zipfilec	Csnt��T}d}|�||�}tj|dd�}t|d|�\}}|j|d|||dd�Wd�n1s`0YdS)Nr�Tr�rr�Fr)rr�r�r�r
r�)r2r�rNr�r�rrr8r8r9�test_zipfile_compiled�s��z%RunPathTestCase.test_zipfile_compiledcCs^t��D}d}|�||�}t|d|�\}}d|}|�||�Wd�n1sP0YdS)Nrrr)rr�r
r�)r2r�rNr�rrr�r8r8r9�test_zipfile_error�sz"RunPathTestCase.test_zipfile_errorc	Cs�t��n}t��H}d}d|}|�|||�}t|d|�\}}|�tt|�Wd�n1s\0YWd�n1sz0YdS)Nr�z import runpy
runpy.run_path(%r)
r)rr�r
ZassertRaises�RecursionErrorr)r2r�Z	dummy_dirrNryr�rrr8r8r9�test_main_recursion_error�s�z)RunPathTestCase.test_main_recursion_errorc	Cs�t��n}tj�|d�}t|ddd��}|�d�Wd�n1sD0Yt|�}|�|dd�Wd�n1sz0YdS)Nz	script.pyrl�latin1r�u%
#coding:latin1
s = "non-ASCII: hé"
�sunon-ASCII: hé)rr^r`rarurvrr-)r2r��filename�frr8r8r9�
test_encoding�s(zRunPathTestCase.test_encoding)NF)NTT)rrBrCrr�r�r�r�r�r�r�rrrr	r
rrr
rr8r8r8r9r�Qs(�
�
-	

	r�cs�eZdZdZejdkrenejZe	e
jdd���Z�fdd�Z
dd�Zd	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Z�ZS)�TestExitl:�win32cos6t��}t�|�VWd�n1s(0YdSrE)rr�r�)�args�kwargsZtmp_fnr8r8r9�tmp_path�szTestExit.tmp_pathcs\|���@}|d|_}|�t�d��t�j|i|��Wd�n1sN0YdS)Nzham.pyz@                    raise KeyboardInterrupt
                    )r�ham�
write_text�textwrap�dedent�super�run)r2rr�tmpr��	__class__r8r9rs
��zTestExit.runcOsBtj|i|�dtjd���}|�|j�d��|�|j|j�dS)NT)�text�stderrz
KeyboardInterrupt
)	�
subprocessr�PIPEZ
assertTruer"r*r-�
returncode�
EXPECTED_CODE)r2rr�procr8r8r9�assertSigIntszTestExit.assertSigIntcCs|�tj|jg�dSrE)r(r�
executablerrZr8r8r9�test_pymain_run_fileszTestExit.test_pymain_run_filecCs8|jj}|d}|�t�d��|jtj|g|d�dS)Nz
run_module.pyzU                import runpy
                runpy.run_module("ham")
                ��cwd�rr!rrrr(rr))r2rr
r8r8r9�%test_pymain_run_file_runpy_run_modules��z.TestExit.test_pymain_run_file_runpy_run_modulecCs8|jj}|d}|�t�d��|jtj|g|d�dS)Nzrun_module_as_main.pyz^                import runpy
                runpy._run_module_as_main("ham")
                r+r-)r2rZrun_module_as_mainr8r8r9�-test_pymain_run_file_runpy_run_module_as_main$s��z6TestExit.test_pymain_run_file_runpy_run_module_as_maincCs|jtjddg|jjd�dS)N�-cz%import runpy; runpy.run_module('ham')r+�r(rr)rr!rZr8r8r9�"test_pymain_run_command_run_module1s
�z+TestExit.test_pymain_run_command_run_modulecCs|jtjddg|jjd�dS)Nr0�
import hamr+r1rZr8r8r9�test_pymain_run_command7sz TestExit.test_pymain_run_commandcCs|jtjgd|jjd�dS)Nr3)�inputr,r1rZr8r8r9�test_pymain_run_stdin:szTestExit.test_pymain_run_stdincCs$|j}|jtjd|jg|jd�dS)Nz-mr+)rr(rr)�stemr!)r2rr8r8r9�test_pymain_run_module=szTestExit.test_pymain_run_module)rrBrCZSTATUS_CONTROL_C_EXITr�platform�signal�SIGINTr&�staticmethod�
contextlib�contextmanagerrrr(r*r.r/r2r4r6r8�
__classcell__r8r8rr9r�s"��

rr�).r=Zimportlib.machineryrP�importlib.utilZos.pathr^r�r�r�r:r#rrqrZunittestr�Ztest.supportrrrrrrrZtest.support.script_helperr	r
rrrr
rrFZimplicit_namespacer=�dictrIrJrZTestCaserDrUr�rr�mainr8r8r8r9�<module>s\$�	��

O'%M


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