opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
nose
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-312.pyc
634 bytes
Rename
Delete
__main__.cpython-312.pyc
450 bytes
Rename
Delete
case.cpython-312.pyc
16.52 KB
Rename
Delete
commands.cpython-312.pyc
7.20 KB
Rename
Delete
config.cpython-312.pyc
30.73 KB
Rename
Delete
core.cpython-312.pyc
16.78 KB
Rename
Delete
exc.cpython-312.pyc
572 bytes
Rename
Delete
failure.cpython-312.pyc
2.29 KB
Rename
Delete
importer.cpython-312.pyc
7.76 KB
Rename
Delete
inspector.cpython-312.pyc
8.42 KB
Rename
Delete
loader.cpython-312.pyc
26.48 KB
Rename
Delete
proxy.cpython-312.pyc
10.12 KB
Rename
Delete
pyversion.cpython-312.pyc
9.99 KB
Rename
Delete
result.cpython-312.pyc
8.92 KB
Rename
Delete
selector.cpython-312.pyc
11.74 KB
Rename
Delete
suite.cpython-312.pyc
27.26 KB
Rename
Delete
twistedtools.cpython-312.pyc
6.74 KB
Rename
Delete
util.cpython-312.pyc
27.33 KB
Rename
Delete
� ��g� � �r � d Z ddlZddlmZ ej e� Zd� Z G d� de� Z G d� de� Z y) a� Result Proxy ------------ The result proxy wraps the result instance given to each test. It performs two functions: enabling extended error/failure reporting and calling plugins. As each result event is fired, plugins are called with the same event; however, plugins are called with the nose.case.Test instance that wraps the actual test. So when a test fails and calls result.addFailure(self, err), the result proxy calls addFailure(self.test, err) for each plugin. This allows plugins to have a single stable interface for all test types, and also to manipulate the test object itself by setting the `test` attribute of the nose.case.Test that they receive. � N)�Configc �F � �� � �fd�}� �fd�}� �fd�}t ||||� S )znCreate a property that proxies attribute ``proxied_attr`` through the local attribute ``local_attr``. c �0 �� t t | �� �� S �N)�getattr��self� local_attr�proxied_attrs ���9/opt/hc_python/lib/python3.12/site-packages/nose/proxy.py�fgetzproxied_attribute.<locals>.fget s �� ��w�t�Z�0�,�?�?� c �4 �� t t | �� �|� y r )�setattrr )r �valuer r s ��r �fsetzproxied_attribute.<locals>.fset s �� ����j�)�<��?r c �2 �� t t | �� �� y r )�delattrr r s ��r �fdelzproxied_attribute.<locals>.fdel! s �� ����j�)�<�8r )�property)r r �docr r r s `` r �proxied_attributer s% �� �@�@�9��D�$��c�*�*r c � � e Zd ZdZdd�Zd� Zy)�ResultProxyFactoryzrFactory for result proxies. Generates a ResultProxy bound to each test and the result passed to the test. Nc �F � |� t � }|| _ d| _ d | _ y )NF)r �config�_ResultProxyFactory__prepared�_ResultProxyFactory__result)r r s r �__init__zResultProxyFactory.__init__* s# � ��>��X�F��������� r c �� � | j s7d| _ | j j j |� }|� |x| _ }| j �| j }t ||| j �� S )a Return a ResultProxy for the current test. On first call, plugins are given a chance to replace the result used for the remaining tests. If a plugin returns a value from prepareTestResult, that object will be used as the result for all tests. T)r )r r �plugins�prepareTestResultr �ResultProxy)r �result�test�plug_results r �__call__zResultProxyFactory.__call__1 sd � � ���"�D�O��+�+�-�-�?�?��G�K��&�)4�4�� ���=�=�$��]�]�F��6�4����<�<r r )�__name__� __module__�__qualname__�__doc__r r'