/snap/core24/1587/usr/lib/python3.12/unittest/__pycache__
Edit: /snap/core24/1587/usr/lib/python3.12/unittest/__pycache__/runner.cpython-312.pyc (16487B)
Цi( d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z dZ
G d d e Z G d
dej Z G d d
e Zy)z
Running tests N )result)_SubTest)registerResultTc $ e Zd ZdZd Zd ZddZy)_WritelnDecoratorz@Used to decorate file-like objects with a handy 'writeln' methodc || _ y N)stream)selfr s &/usr/lib/python3.12/unittest/runner.py__init__z_WritelnDecorator.__init__ s c L |dv rt | t | j | S )N)r __getstate__)AttributeErrorgetattrr )r attrs r
__getattr__z_WritelnDecorator.__getattr__ s' -- &&t{{4((r Nc L |r| j | | j d y N
)write)r args r
writelnz_WritelnDecorator.writeln s JJsO
4r r
)__name__
__module____qualname____doc__r r r r r
r r s J)
r r c e Zd ZdZdZdZdd fd
Zd Z fdZd Z fd
Z
fdZ fdZ fd
Z
fdZ fdZ fdZd Zd Z xZS )TextTestResultzhA test result class that can print formatted text results to a stream.
Used by TextTestRunner.
zF======================================================================zF----------------------------------------------------------------------N durationsc t t | ||| || _ |dkD | _ |dk( | _ || _ d| _ || _ y)zwConstruct a TextTestResult. Subclasses should accept **kwargs
to ensure compatibility as the interface changes.r TN) superr" r r showAlldotsdescriptions_newliner$ )r r r) verbosityr$ __class__s r
r zTextTestResult.__init__&