§ v<ˆjP ã ó¸ — d dl mZ d dlmZ d dlmZmZmZ d dlm Z m Z eeee f ZdZ G d„ de¦ « Z G d„ d ¦ « Zed efd„¦ « ZdS ) é )Úcontextmanager©Úwraps)ÚUnionÚTypeÚCallable)ÚdiffÚcomparea+ :param exception: This can be one of the following: * `None`, indicating that an exception must be raised, but the type is unimportant. * An exception class, indicating that the type of the exception is important but not the parameters it is created with. * An exception instance, indicating that an exception exactly matching the one supplied should be raised. :param unless: Can be passed a boolean that, when ``True`` indicates that no exception is expected. This is useful when checking that exceptions are only raised on certain versions of Python. c ó: — e Zd Zdez ZdZd dedefd„Zd„ Z d„ Z dS ) ÚShouldRaisezs This context manager is used to assert that an exception is raised within the context it is managing. NFÚ exceptionÚunlessc ó$ — || _ | | _ d S ©N)r Úexpected©Úselfr r s új/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/testfixtures/shouldraise.pyÚ__init__zShouldRaise.__init__* s € Ø"ˆŒØ"˜ ˆŒ ˆ ˆ ó c ó — | S r © )r s r Ú __enter__zShouldRaise.__enter__. s € ؈r c óJ — d}|| _ | j rŽ| j ru|�Zt | j t ¦ « rt |¦ « }| j |urdS n%t | j ¦ « t |¦ « urdS t | j |dd¬¦ « n|st d¦ « ‚n|rdS dS )NTFr Úraised©Úx_labelÚy_labelzNo exception raised!)r r r Ú isinstanceÚtyper ÚAssertionError)r Útype_ÚactualÚ tracebackÚ__tracebackhide__s r Ú__exit__zShouldRaise.__exit__1 sÚ € Ø ÐØˆŒØŒ=ð ØŒ~ð =ØÐ%Ý! $¤.µ$Ñ7Ô7ð )Ý!% f¡¤˜Øœ>°Ð7Ð7Ø#( 5ð 8õ ¤Ñ/Ô/µt¸F±|´|ÐCÐCØ#( 5ݘœØØ *Ø (ð*ñ *ô *ð *ð *ð ð =Ý$Ð%;Ñ<Ô<Ð<ð =à ð Ø�5؈tr )NF)Ú__name__Ú __module__Ú__qualname__Ú param_docsÚ__doc__r ÚExceptionOrTypeÚboolr r r&