/usr/lib/python3.10/test/support/__pycache__
Edit: /usr/lib/python3.10/test/support/__pycache__/warnings_helper.cpython-310.pyc (6352B)
o
9j @ s d dl Z d dlZd dlZd dlZd dlZddddddZdd ZG d d
d
eZe j dd Z
e j ded
fddZe j dd Z
dddZe j dd Zdd ZdS ) N linenooffsetc C s ddl m} tjdd}tdt t|dd W d n1 s#w Y | t|d| |\}| t
|jt|j |rJ| t
|j| | |jd | |j |d urb| |j| tjdd}td t || ||||d
W d n1 sw Y | |g d S )Nr )check_syntax_errorTrecordalwaysz
execr errorr )test.supportr warningscatch_warningssimplefilter
SyntaxWarningcompileassertEquallen
assertTrue
issubclasscategoryassertRegexstrmessagefilenameassertIsNotNoner )testcase statementerrtextr r r warnswarn r" 3/usr/lib/python3.10/test/support/warnings_helper.pycheck_syntax_warning s. r$ c s fdd}|S )zDecorator to suppress warnings.
Use of context managers to hide warnings make diffs
more noisy and tools like 'git blame' less useful.
c s t fdd}|S )Nc sP t t jd d | g|R i |W d S 1 s!w Y d S )Nignorer )r r r )selfargskwargs)r testr" r# wrapper- s
$z3ignore_warnings..decorator..wrapper) functoolswraps)r* r+ r&