$14 GRAYBYTE WORDPRESS FILE MANAGER $60

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/nose/plugins/__pycache__/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/nose/plugins/__pycache__//capture.cpython-312.pyc
�

H��g$
���dZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZeje�ZGd�de�Zy)	a_
This plugin captures stdout during test execution. If the test fails
or raises an error, the captured output will be appended to the error
or failure output. It is enabled by default but can be disabled with
the options ``-s`` or ``--nocapture``.

:Options:
  ``--nocapture``
    Don't capture stdout (any stdout output will be printed immediately)

�N)�Plugin)�exc_to_unicode�
force_unicode)�ln)�StringIOc��eZdZdZdZdZdZdZd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zeeddd�Zy)�Capturea
    Output capture plugin. Enabled by default. Disable with ``-s`` or
    ``--nocapture``. This plugin captures stdout during test execution,
    appending any output captured to the error or failure output,
    should the test fail or raise an error.
    T�NOSE_NOCAPTURE�capturei@c� �g|_d|_y�N)�stdout�_buf��selfs �C/opt/hc_python/lib/python3.12/site-packages/nose/plugins/capture.py�__init__zCapture.__init__#s�������	�c�f�|jddd|j|j�dd��y)z%Register commandline options
        z-sz--nocapture�store_falserzUDon't capture stdout (any stdout output will be printed immediately) [NOSE_NOCAPTURE])�action�default�dest�helpN)�
add_option�get�env_opt)r�parser�envs   r�optionszCapture.options's8��	����-�
�������-�-�I�<�	�	=rc�:�||_|jsd|_yy)z8Configure plugin. Plugin is enabled by default.
        FN)�confr�enabled)rr r"s   r�	configurezCapture.configure0s����	���� �D�L�rc�2�|j�d|_y)zClear capture buffer.
        N)�endr�r�tests  r�	afterTestzCapture.afterTest7s��	
���
���	rc�$�|j�y)z0Replace sys.stdout with capture buffer.
        N��startrs r�beginz
Capture.begin=�
��	
�
�
�rc�$�|j�y)zFlush capture buffer.
        Nr+r's  r�
beforeTestzCapture.beforeTestBr.rc�t�|jx|_}d|_|s|S|\}}}||j||�|fS)z-Add captured output to error report.
        N)�buffer�capturedOutputr�addCaptureToErr)rr(�err�output�ec�ev�tbs       r�formatErrorzCapture.formatErrorGsK��(,�{�{�2���f���	���J��
��B���D�(�(��V�4�b�9�9rc�&�|j||�S)z/Add captured output to failure report.
        )r:)rr(r5s   r�
formatFailurezCapture.formatFailureTs������c�*�*rc�|�t|�}t|�}dj|td�|td�g�S)N�
z>> begin captured stdout <<z>> end captured stdout <<)rr�joinr)rr8r6s   rr4zCapture.addCaptureToErrYsD��
�B�
���v�&���y�y�"�b�!>�?�!�2�&A�#B�D�E�	Erc��|jjtj�t�|_|jt_yr
)r�append�sysrrrs rr,z
Capture.start_s,�������3�:�:�&��J��	��Y�Y��
rc�d�|jr$|jj�t_yyr
)r�poprBrs rr&zCapture.endds ���;�;������*�C�J�rc�X�|jr|j�|jr�yy)zRestore stdout.
        N)rr&)r�results  r�finalizezCapture.finalizehs���k�k��H�H�J��k�krc�P�|j�|jj�Syr
)r�getvaluers r�_get_bufferzCapture._get_bufferns$���9�9� ��9�9�%�%�'�'�!rNzCaptured stdout output.)�__name__�
__module__�__qualname__�__doc__r#r�name�scorerr r$r)r-r0r:r<r4r,r&rGrJ�propertyr2�rrr	r	st����G��G��D��E��=�!���
�
:�+�
E��
+��(��k�4��3�5�Frr	)rN�logging�osrB�nose.plugins.baser�nose.pyversionrr�	nose.utilr�ior�	getLoggerrK�logr	rRrr�<module>r[sC��
��	�
�$�8����g����!��\5�f�\5r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.cpython-312.pyc
6.404 KB
4 Apr 2025 8.03 AM
root / root
0644
allmodules.cpython-312.pyc
2.301 KB
4 Apr 2025 8.03 AM
root / root
0644
attrib.cpython-312.pyc
9.89 KB
4 Apr 2025 8.03 AM
root / root
0644
base.cpython-312.pyc
30.225 KB
4 Apr 2025 8.03 AM
root / root
0644
builtin.cpython-312.pyc
1.157 KB
4 Apr 2025 8.03 AM
root / root
0644
capture.cpython-312.pyc
5.098 KB
4 Apr 2025 8.03 AM
root / root
0644
collect.cpython-312.pyc
4.975 KB
4 Apr 2025 8.03 AM
root / root
0644
cover.cpython-312.pyc
13.917 KB
4 Apr 2025 8.03 AM
root / root
0644
debug.cpython-312.pyc
3.077 KB
4 Apr 2025 8.03 AM
root / root
0644
deprecated.cpython-312.pyc
2.106 KB
4 Apr 2025 8.03 AM
root / root
0644
doctests.cpython-312.pyc
21.004 KB
4 Apr 2025 8.03 AM
root / root
0644
errorclass.cpython-312.pyc
9.29 KB
4 Apr 2025 8.03 AM
root / root
0644
failuredetail.cpython-312.pyc
2.273 KB
4 Apr 2025 8.03 AM
root / root
0644
isolate.cpython-312.pyc
5.177 KB
4 Apr 2025 8.03 AM
root / root
0644
logcapture.cpython-312.pyc
12.53 KB
4 Apr 2025 8.03 AM
root / root
0644
manager.cpython-312.pyc
21.718 KB
4 Apr 2025 8.03 AM
root / root
0644
multiprocess.cpython-312.pyc
38.254 KB
4 Apr 2025 8.03 AM
root / root
0644
plugintest.cpython-312.pyc
17.021 KB
4 Apr 2025 8.03 AM
root / root
0644
prof.cpython-312.pyc
6.642 KB
4 Apr 2025 8.03 AM
root / root
0644
skip.cpython-312.pyc
2.459 KB
4 Apr 2025 8.03 AM
root / root
0644
testid.cpython-312.pyc
11.73 KB
4 Apr 2025 8.03 AM
root / root
0644
xunit.cpython-312.pyc
16.276 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF