XylotrechusZ
�
���g$
� � � d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m
Z
ddlmZ ej e� Z G d� 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 � � e Zd ZdZdZdZdZdZd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Z eeddd� 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 � |j ddd|j | j � dd�� y)z%Register commandline options
z-sz--nocapture�store_falser zUDon'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'