ó
    ¸®i£´  ã                  óæ  • S SK Jr  S SKrS SKrS SKJr  S SKrS SKrS SKJ	r	J
r
  S SKJr  \R                  S:  a  S SKJrJr  S$S jr S%     S&S	 jjrS'S
 jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jrS'S jr\R@                  RC                  S\RD                  ;   SS9S'S j5       r#S'S jr$S'S jr%S'S jr&S'S jr'S'S jr(S'S  jr)S'S! jr*S'S" jr+S(S# jr,g))é    )ÚannotationsN)ÚTracebackType)ÚMatcherÚRaisesGroup)Úrepr_callable)é   é   )ÚBaseExceptionGroupÚExceptionGroupc                ó:   • S[         R                  " U 5      -   S-   $ )NÚ^Ú$)ÚreÚescape)Úss    ÚQC:\des-py\RoboSAPF\venv\Lib\site-packages\trio/_tests/test_testing_raisesgroup.pyÚwrap_escaper      s   € Ø”—’˜1“Ñ Ñ#Ð#ó    c                ó€   • U S   S:w  d   S5       eU(       a  SOSn[         R                  " [        [        X -   5      S9$ )NéÿÿÿÿÚ
z<developer error, expected string should not end with newlinez&Raised exception group did not match: Ú ©Úmatch)ÚpytestÚraisesÚAssertionErrorr   )ÚmsgÚ
add_prefixÚprefixs      r   Úfails_raises_groupr!      sC   € ð 	ˆB‰�4‹ðFàEóFØæ9CÑ5È€FÜ�=Š=œ¬{¸6¹<Ó/HÑIÐIr   c                 óx  • [         R                  " [        [        S[	        5       < S35      S9   [        [	        5       5        S S S 5        [        [        5         [        S[        5       45      e! , (       d  f       N3= f! , (       d  f       O= f[        S5         [        [        5         [        S[        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        [        [        5         [        S[        5       [        5       45      e! , (       d  f       O= f[        [        [        5         [        S[        5       [        5       45      e! , (       d  f       O= f[        [        [        5      5         [        S[        S[        5       45      45      e! , (       d  f       O= f[        [        [        [        5      [        [        5      5         [        S[        5       [        S[        5       45      [        S[        5       45      45      e! , (       d  f       g = f)NzInvalid argument "z2" must be exception type, Matcher, or RaisesGroup.r   Úfooz)'SyntaxError' is not of type 'ValueError'Úbarr   )
r   r   Ú
ValueErrorr   Ú	TypeErrorr   r   r!   ÚSyntaxErrorÚRuntimeError© r   r   Útest_raises_groupr*      s�  € Ü	�ŠÜÜØ ¤£¡Ð/aÐbó
ó
ô 	”I“KÔ ÷
ô 
”ZÕ	 Ü˜U¤Z£\ OÓ4Ð4÷
õ 
ú÷ 
!Õ	 úô 	ÐFÕGÜ”JÕä˜U¤[£]Ð$4Ó5Ð5÷ 	 ÕúÐ÷ 	H×GÖGúô 
”Z¤Õ	-Ü˜U¤Z£\´;³=Ð$AÓBÐB÷ 
.Õ	-úô 
”[¤*Õ	-Ü˜U¤Z£\´;³=Ð$AÓBÐB÷ 
.Õ	-úô 
”[¤Ó,Õ	-Ü˜U¤^°E¼J»L¸?Ó%KÐ$MÓNÐN÷ 
.Õ	-úô 
ÜÜ”JÓÜ”LÓ!õ
ô
 Øä“Ü˜u¤z£| oÓ6Ü˜r¤L£NÐ#4Ó5ðó
ð 	
÷
õ 
úse   °A1ÁBÁ1
A?Â
BÂCÂ.CÃ
C	ÃCÃ
C-ÄD#Ä#
D1ÅE'Å'
E5Æ!F1Æ1
F?Ç->H+È+
H9c                 óø  • [        S5         [        [        5         [        S[	        5       [        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [
        5         [        S[        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5         [        S[        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        5         [        S[        5       [        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5         [        S[        5       [        5       /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nz>1 matched exception. Unexpected exception(s): [RuntimeError()]r   zS1 matched exception. Too few exceptions raised, found no match for: ['SyntaxError']z·
1 matched exception. 
Too few exceptions raised!
The following expected exceptions did not find a match:
  'ValueError'
    It matches ValueError() which was paired with 'ValueError'z³
1 matched exception. 
Unexpected exception(s)!
The following raised exceptions did not find a match
  ValueError():
    It matches 'ValueError' which was paired with ValueError()a  
1 matched exception. 
The following expected exceptions did not find a match:
  'ValueError'
    It matches ValueError() which was paired with 'ValueError'
The following raised exceptions did not find a match
  SyntaxError():
    'SyntaxError' is not of type 'ValueError')r!   r   r%   r   r(   r'   r)   r   r   Ú test_incorrect_number_exceptionsr,   K   ss  € ô 	ØLõ	
ô 	”JÕä˜R¤,£.´*³,Ð!?Ó@Ð@÷ 	 ÕúÐ÷	
÷ 	
ö 	
úô 	Øaõ	
ô 	”J¤Õ,ä˜R¤*£, Ó1Ð1÷ 	-Õ,úÐ,÷	
÷ 	
ö 	
úô 	ðMõ	
ô 	”J¤
Õ+ä˜R¤*£, Ó1Ð1÷ 	,Õ+úÐ+÷	
÷ 	
ö 	
úô 	ðMõ	
ô 	”JÕä˜R¤*£,´
³Ð!=Ó>Ð>÷ 	 ÕúÐ÷	
÷ 	
ö 	
úô 	ð<õ		
ô 	”J¤
Õ+ä˜R¤*£,´³Ð!>Ó?Ð?÷ 	,Õ+úÐ+÷		
÷ 		
ö 		
ús’   ŒAœ;»
A		ÁAÁ
A$Á2B8ÂBÂ
B+	Â'B8Â8
CÃDÃ)C?Ã?
D	Ä	DÄ
D(Ä6F ÅE%Å%
E3	Å/F Æ 
FÆG+Æ1GÇ
G	ÇG+Ç+
G9c                 ó(
  • [        [        SS9   [        S[        S[        5       45      45      e! , (       d  f       O= f[        [        [        SS9   [        S[        S[        5       [        5       45      45      e! , (       d  f       O= f[        [        [        SS9   [        S[        S[        5       /5      [        5       /5      e! , (       d  f       O= f[        [        [        SS95         [        S[        S[        5       45      45      e! , (       d  f       O= f[        [        [        SS95         [        S[        S[        S[        5       45      45      45      e! , (       d  f       O= f[        R
                  " [        SS9   [        [        [        5      SS9  S S S 5        O! , (       d  f       O= f[        S5         [        [        SS9   [        e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        SS95         [        S[        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SS	S
9   [        [        [        5         [        S[        S[        5       [        5       /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SS	S
9   [        [        [        S S9   [        S[        S[        5       [        5       /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SS	S
9   [        [        5         [        S[        S[        5       /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        5         [        S[        S[        5       /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5      5         [        S[        S[        S[        5       /5      /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        5         [        S[        S[        5       /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)NT)Úflatten_subgroupsr   z@^You cannot specify a nested structure inside a RaisesGroup withr   úS'ValueError' is not an exception group, but would match with `allow_unwrapped=True`z„RaisesGroup(ValueError, flatten_subgroups=True): 'ValueError' is not an exception group, but would match with `allow_unwrapped=True`aŒ  Raised exception group did not match: 
The following expected exceptions did not find a match:
  'ValueError'
  'TypeError'
The following raised exceptions did not find a match
  ExceptionGroup('', [ValueError(), TypeError()]):
    Unexpected nested 'ExceptionGroup', expected 'ValueError'
    Unexpected nested 'ExceptionGroup', expected 'TypeError'
Did you mean to use `flatten_subgroups=True`?F©r   c                ó2   • [        U R                  5      S:H  $ )Né   )ÚlenÚ
exceptions)Úegs    r   Ú<lambda>Ú(test_flatten_subgroups.<locals>.<lambda>Õ   s   € œS §¡Ó/°1Ò4r   ©Úcheckz�Raised exception group did not match: Unexpected nested 'ExceptionGroup', expected 'ValueError'
  Did you mean to use `flatten_subgroups=True`?z9Unexpected nested 'ExceptionGroup', expected 'ValueError'z‚RaisesGroup(ValueError): Unexpected nested 'ExceptionGroup', expected 'ValueError'
  Did you mean to use `flatten_subgroups=True`?z4'BaseExceptionGroup' is not of type 'ExceptionGroup')	r   r%   r   r&   r   r   r!   r
   ÚKeyboardInterruptr)   r   r   Útest_flatten_subgroupsr;   ‰   så  € ä	”Z°4Ó	8Ü˜R¤.°´j³l°_Ó"EÐ!GÓHÐH÷ 
9Õ	8úô 
”Z¤¸dÓ	CÜ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!SÓTÐT÷ 
DÕ	Cúä	”Z¤¸dÓ	CÜ˜R¤.°´j³l°^Ó"DÄiÃkÐ!RÓSÐS÷ 
DÕ	Cúô 
”[¤¸tÑDÕ	EÜ˜R¤.°´j³l°_Ó"EÐ!GÓHÐH÷ 
FÕ	Eúä	”[¤¸tÑDÕ	EÜØÜ˜B¤°´Z³\°OÓ!DÐ FÓGÐIó
ð 	
÷ 
FÕ	Eúô 
�ŠÜØQó
ô 	”K¤
Ó+¸tÒD÷	
÷ 
ö 
úô 	Øaõ	
ô 	”J°$Ó7äÐ÷ 	8Õ7úÐ7÷	
÷ 	
ö 	
úô 	ð Sõ	
ô 	”K¤
¸dÑCÕDä˜R¤*£, Ó1Ð1÷ 	EÕDúÐD÷	
÷ 	
ö 	
úô 	ð<ð ó	
ô 	”J¤	Õ*ä˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷ 	+Õ*úÐ*÷	
÷ 	
ö 	
úô" 	ð<ð ó	
ô 	ÜÜÙ4ó	
ô ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷	
õ 	
úð 	
÷	
÷ 	
ö 	
úô, 	ð>àó	
ô
 	”JÕä˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷ 	 ÕúÐ÷	
÷ 	
ö 	
úô 	ÐVÕWÜ”JÕä˜R¤.°´i³k°]Ó"CÐ!DÓEÐE÷ 	 ÕúÐ÷ 	X×WÖWúô 	ð>õ	
ô 	”K¤
Ó+Õ,äØÜ˜B¤°´Z³\°NÓ!CÐ DÓEÐFó
ð 	
÷ 	-Õ,úÐ,÷		
÷ 	
ö 	
úô 	ÐQÕRÜ”NÕ#ä  Ô&8¸Ô>OÓ>QÐ=RÓ&SÐ%TÓUÐU÷ 	$Õ#úÐ#÷ 	S×RÖRús4  �!0°
>Á*A>Á>
BÂ"*CÃ
CÃ4!DÄ
D#Ä=,E)Å)
E7ÆF4Æ4
GÇHÇG&Ç&
G4	Ç0HÈ
HÈI&È5IÉ
I	ÉI&É&
I4ÊKÊ*K Ë 
K	Ë
KË
K)Ë6MÌ*L5Ì5
M	Ì?MÍ
MÍ+N7Í;!NÎ
N*	Î&N7Î7
OÏPÏ#!PÐ
P	ÐPÐ
P-Ð;RÑ,R Ò 
R	Ò
RÒ
R)Ò7TÓ!S(Ó(
S6	Ó2TÔ
Tc            
     óÄ  • [        [        SS9   [        e! , (       d  f       O= f[        R                  " [        SS9   [        [        [        SS9  S S S 5        O! , (       d  f       O= f[        [        S S9SS9   [        e! , (       d  f       O= f[        R                  " [        SS9   [        [        [        5      SS9  S S S 5        O! , (       d  f       O= f[        [        [        SS95         [        S[        S[        5       /5      /5      e! , (       d  f       O= f[        [        [        SS95         [        S[        5       /5      e! , (       d  f       O= f[        S	5         [        [        5         [        S
5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        SS9   [        S[        S[        5       /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        [        SSS9   [        S[        S[        5       /5      /5      e! , (       d  f       O= f[        SSS9   [        [        SS9   [        S5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        [        5      SS9   [        e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5      5         [        e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)NT©Úallow_unwrappedz,^You cannot specify multiple exceptions withr   c                ó.   • [        U [        [        45      $ ©N)Ú
isinstancer'   r%   ©Úes    r   r6   Ú1test_catch_unwrapped_exceptions.<locals>.<lambda>  s   € ¤
¨1¬{¼JÐ.GÔ Hr   r8   zhas no effect when expectingr   r/   zvalue error textziUnexpected nested 'ExceptionGroup', expected 'ValueError'
  Did you mean to use `flatten_subgroups=True`?r#   r$   )r>   r.   zORaised exception (group) did not match: 'TypeError' is not of type 'ValueError'Fr0   z.this text doesn't show up in the error messagezdRaised exception (group) did not match: Matcher(ValueError): 'TypeError' is not of type 'ValueError'z&'ValueError' is not an exception group)	r   r%   r   r   r'   r   r   r!   r&   r)   r   r   Útest_catch_unwrapped_exceptionsrE     s†  € ô 
”Z°Ó	6ÜÐ÷ 
7Õ	6úô 
�ŠÜØ=ó
ô 	”K¤¸TÒB÷	
÷ 
ö 
úô 
ÜÑHÑIØó
ô Ð÷	
õ 
úô 
�Š”zÐ)GÓ	HÜ”K¤
Ó+¸TÒB÷ 
I×	HÖ	Húô
 
”[¤¸TÑBÕ	CÜ˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷ 
DÕ	Cúä	”[¤¸TÑBÕ	CÜ˜R¤*£, Ó0Ð0÷ 
DÕ	Cúô
 	Øaõ	
ô 	”JÕäÐ+Ó,Ð,÷ 	 ÕúÐ÷	
÷ 	
ö 	
úô 	ð>õ	
ô 	”J°Ó5ä˜U¤^°E¼J»L¸>Ó%JÐ$KÓLÐL÷ 	6Õ5úÐ5÷		
÷ 	
ö 	
úô 
”Z°ÈÓ	NÜ˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷ 
OÕ	Núô
 	Ø]Øó	
ô 	”J°Ó5äÐHÓIÐI÷ 	6Õ5úÐ5÷		
÷ 	
ö 	
úô 	ØrØó	
ô 	”GœJÓ'¸Ó>äˆ÷ 	?Õ>úÐ>÷		
÷ 	
ö 	
úô 	ÐCÕDÜ”K¤
Ó+Õ,äÐ÷ 	-Õ,úÐ,÷ 	E×DÖDúsæ   �–
$Á AÁ
A+Â BÂ
BÂ1CÃ
C Ã:!DÄ
D)ÅEÅ
E'Å5F,ÆFÆ
F	ÆF,Æ,
F:ÇHÇ!G8Ç8
H	ÈHÈ
H!È3!IÉ
I"É/J%É>J
Ê

J	ÊJ%Ê%
J3Ë K:ËKË
K-	Ë)K:Ë:
LÌMÌ/L6Ì6
M	Í MÍ
Mc                 óh  • [        [        SS9   [        S[        5       45      e! , (       d  f       O= f[        [        SS9   [        S[        5       45      e! , (       d  f       O= f[        [        SS9   [        S[        5       45      n U R                  S5        U e! , (       d  f       O= f[        [        SS9   [        S[        5       45      n U R                  S5        U e! , (       d  f       O= f[	        S5         [        [        SS9   [        S[        5       45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[	        S5         [        [        SS9   [        S[        S5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)	Nr$   r   ú^bar$zmy notez^bar
my note$z;Regex pattern 'foo' did not match 'bar' of 'ExceptionGroup'r#   z Regex pattern 'foo' did not match 'bar' of 'ExceptionGroup', but matched the expected 'ValueError'. You might want RaisesGroup(Matcher(ValueError, match='foo')))r   r%   r   Úadd_noter!   rB   s    r   Ú
test_matchrI   T  sL  € ä	”Z uÓ	-Ü˜U¤Z£\ OÓ4Ð4÷ 
.Õ	-úô 
”Z wÓ	/Ü˜U¤Z£\ OÓ4Ð4÷ 
0Õ	/úô 
”Z yÓ	1Ü˜5¤:£< /Ó2ˆØ	�
‰
�9ÔØˆ÷ 
2Õ	1úô 
”ZÐ'7Ó	8Ü˜5¤:£< /Ó2ˆØ	�
‰
�9ÔØˆ÷ 
9Õ	8úô 	ØIõ	
ô 	”J eÓ,ä˜U¤Z£\ OÓ4Ð4÷ 	-Õ,úÐ,÷	
÷ 	
ö 	
úô 	ð oõ	
ô 	”J eÓ,ä˜U¤Z°Ó%6Ð$7Ó8Ð8÷ 	-Õ,úÐ,÷	
÷ 	
ö 	
úsh   �%¥
3ÁAÁ
A(Á9)B"Â"
B0Ã)C*Ã*
C8ÄEÄD+Ä+
D9	Ä5EÅ
EÅ"F#Å1FÆ
F	ÆF#Æ#
F1c                 óX  ^• [        S[        5       45      mSU4S jjn [        U 5      n[        [        U S9   Te! , (       d  f       O= f[	        SU S35         [        [        U S9   [        S[        5       45      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nr   c                ó   >• U TL $ r@   r)   )rC   Úexcs    €r   Úis_excÚtest_check.<locals>.is_exc‚  s   ø€ Ø�Cˆxˆr   r8   zcheck z did not return True)rC   zExceptionGroup[ValueError]ÚreturnÚbool)r   r%   r   r   r!   )rM   Úis_exc_reprrL   s     @r   Ú
test_checkrR     s„   ø€ Ü
˜œj›l˜_Ó
-€C÷ô   Ó'€KÜ	”Z vÓ	.Øˆ	÷ 
/Õ	.úô 	˜V K =Ð0DÐEÕFÜ”J fÓ-ä˜R¤*£, Ó1Ð1÷ 	.Õ-úÐ-÷ 	G×FÖFús'   ¸;»
A	ÁBÁ*B Â 
B	Â
BÂ
B)c                 ó0  • SS jn Sn[         R                  " [        [        R                  " U5      S9   [        [        SSS9  S S S 5        [         R                  " [        [        R                  " U5      S9   [        [        SU S9  S S S 5        [        [        [        SS9SS	9nU   [        S5      e! , (       d  f       Nw= f! , (       d  f       NC= f! , (       d  f       O= fU   [        S
[        S5      /5      e! , (       d  f       O= f[        [        SS	9 n[        S[        S5      /5      e! , (       d  f       O= f[        WR                  [        5      (       a/  [        [        SS9R                  UR                  5      (       d   eg g )Nc                ó   • g)NTr)   rB   s    r   Úmy_checkÚ,test_unwrapped_match_check.<locals>.my_check‘  s   € Ør   av  `allow_unwrapped=True` bypasses the `match` and `check` parameters if the exception is unwrapped. If you intended to match/check the exception you should use a `Matcher` object. If you want to match/check the exceptiongroup when the exception *is* wrapped you need to do e.g. `if isinstance(exc.value, ExceptionGroup): assert RaisesGroup(...).matches(exc.value)` afterwards.r   Tr#   )r>   r   )r>   r9   z^foo$r=   r   r$   )rC   ÚobjectrO   rP   )r   r   r%   r   r   r   r   r   rA   ÚvalueÚmatches)rU   r   ÚrgrL   s       r   Útest_unwrapped_match_checkr[   �  s!  € ôð	Cð ô 
�Š”z¬¯ª°3«Ó	8Ü”J°¸EÒB÷ 
9ä	�Š”z¬¯ª°3«Ó	8Ü”J°¸HÒE÷ 
9ô 
”WœZ¨wÑ7ÈÑ	N€BÚ	Ü˜ÓÐ÷ 
9Õ	8úç	8Õ	8ú÷
 
�úâ	Ü˜R¤*¨UÓ"3Ð!4Ó5Ð5÷ 
�úô 
”Z°Ò	6¸#Ü˜U¤Z°Ó%6Ð$7Ó8Ð8÷ 
7Õ	6úä�#—)‘)œ^×,Ñ,Üœ:¨UÑ3×;Ñ;¸C¿I¹I×FÑFÐFÑFð -s;   µB6Á:CÂ*CÂ6
CÃ
CÃ
C&Ã+DÄ
DÄ!D8Ä8
Ec                 óè   • [        [        5      n U R                  S 5      (       a   eU R                  [        5       5      (       a   eU R                  [        S[        5       45      5      (       d   eg )Nr   )r   r%   rY   r   )rZ   s    r   Útest_RaisesGroup_matchesr]   ¯  sX   € Ü	”ZÓ	 €BØ�z‰z˜$×ÑÐÐØ�z‰zœ*›,×'Ñ'Ð'Ð'Ø�:‰:”n R¬*«,¨Ó9×:Ñ:Ð:Ñ:r   c            	     ó.  •       SS jn U " S[        [        5      5        U " S[        [        [        5      5        U " S[        [        [        5      5      5        U " S[        [        [        S5      5      5        U " S[        [        SS95      5        U " S	[        [        5      5        U " S
[        [        [        5      5      5        U " S[        [        [        5      5      5        U " S[        [        [        5      [        [        5      5      5        g )Nc                óÔ   • [         R                  " [        S[        R                  " U 5       S3S9   U    S S S 5        S S S 5        g ! , (       d  f       N= f! , (       d  f       g = f)Nz'^DID NOT RAISE any exception, expected r   r   )r   r   r   r   r   )ÚmessageÚbodys     r   Úcheck_messageÚ#test_message.<locals>.check_message·  sT   € ô
 �MŠMÜØ?ÄÇ	Â	È'Ó@RÐ?SÐSTÐUóò à÷ ÷	ð ÷ �Dú÷	õ ús!   ²AµA·AÁ
A	ÁAÁ
A'zExceptionGroup(ValueError)z&ExceptionGroup(ValueError, ValueError)z*ExceptionGroup(ExceptionGroup(ValueError))z3ExceptionGroup(Matcher(ValueError, match='my_str'))Úmy_strz'ExceptionGroup(Matcher(match='my_str'))r   z%BaseExceptionGroup(KeyboardInterrupt)z.BaseExceptionGroup(Matcher(KeyboardInterrupt))z9BaseExceptionGroup(BaseExceptionGroup(KeyboardInterrupt))zUBaseExceptionGroup(BaseExceptionGroup(KeyboardInterrupt), ExceptionGroup(ValueError)))r`   Ústrra   zRaisesGroup[BaseException]rO   ÚNone)r   r%   r   r:   )rb   s    r   Útest_messagerg   ¶  s  € ðØðà(ðð 
ôñ Ð.´¼JÓ0GÔHáØ0Ü”J¤
Ó+ôñ
 Ø4Ü”K¤
Ó+Ó,ôñ Ø=Ü”GœJ¨Ó1Ó2ôñ Ø1Ü”G (Ñ+Ó,ôñ Ø/ÜÔ%Ó&ôñ
 Ø8Ü”GÔ-Ó.Ó/ôñ
 ØCÜ”KÔ 1Ó2Ó3ôñ
 Ø_Ü”KÔ 1Ó2´KÄ
Ó4KÓLõr   c                 ó&  • [        S5         [        [        5         [        S[	        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        [        5      [        [        SS95         [        S[        S[        5       /5      [        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        [        [        5      [        [
        5      [        [        5      5         [        S[        5       [	        5       [        S	5      [        S
5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5         [        S[        5       [        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        5      5         [        S[	        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        SS9   [        S[        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        SS95         [        S[        S5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        [        [        [        5         [        S[        S[        5       [	        5       /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nz''TypeError' is not of type 'ValueError'ÚaaJ  Raised exception group did not match: 
The following expected exceptions did not find a match:
  RaisesGroup(ValueError)
  RaisesGroup(ValueError, match='a')
The following raised exceptions did not find a match
  ExceptionGroup('', [RuntimeError()]):
    RaisesGroup(ValueError): 'RuntimeError' is not of type 'ValueError'
    RaisesGroup(ValueError, match='a'): Regex pattern 'a' did not match '' of 'ExceptionGroup'
  RuntimeError():
    RaisesGroup(ValueError): 'RuntimeError' is not an exception group
    RaisesGroup(ValueError, match='a'): 'RuntimeError' is not an exception groupFr0   r   r   a½  Raised exception group did not match: 
2 matched exceptions. 
The following expected exceptions did not find a match:
  RaisesGroup(RuntimeError)
  RaisesGroup(ValueError)
The following raised exceptions did not find a match
  RuntimeError():
    RaisesGroup(RuntimeError): 'RuntimeError' is not an exception group, but would match with `allow_unwrapped=True`
    RaisesGroup(ValueError): 'RuntimeError' is not an exception group
  ValueError('bar'):
    It matches 'ValueError' which was paired with ValueError('foo')
    RaisesGroup(RuntimeError): 'ValueError' is not an exception group
    RaisesGroup(ValueError): 'ValueError' is not an exception group, but would match with `allow_unwrapped=True`r#   r$   z@1 matched exception. 'AssertionError' is not of type 'TypeError'z<Matcher(ValueError): 'TypeError' is not of type 'ValueError'z”Raised exception group did not match: Regex pattern 'h(ell)o' did not match 'h(ell)o' of 'ExceptionGroup'
  Did you mean to `re.escape()` the regex?zh(ell)oztMatcher(match='h(ell)o'): Regex pattern 'h(ell)o' did not match 'h(ell)o'
  Did you mean to `re.escape()` the regex?aú  Raised exception group did not match: 
The following expected exceptions did not find a match:
  'ValueError'
  'ValueError'
  'ValueError'
  'ValueError'
The following raised exceptions did not find a match
  ExceptionGroup('', [ValueError(), TypeError()]):
    Unexpected nested 'ExceptionGroup', expected 'ValueError'
    Unexpected nested 'ExceptionGroup', expected 'ValueError'
    Unexpected nested 'ExceptionGroup', expected 'ValueError'
    Unexpected nested 'ExceptionGroup', expected 'ValueError')r!   r   r%   r   r&   r(   r   r   r)   r   r   Útest_assert_messagerj   ñ  sÆ  € ô
 	ÐDÕEÜ”JÕä˜S¤9£; -Ó0Ð0÷ 	 ÕúÐ÷ 	F×EÖEúô
 	ð
_ð ó	
ô 	”K¤
Ó+¬[¼È3Ñ-OÕPäØÜ˜B¤£Ð 0Ó1´<³>ÐBó
ð 	
÷ 	QÕPúÐP÷	
÷ 	
ö 	
úô, 	ðð ó!	
ô$ 	ÜÜ”IÓÜœÓ%Üœ
Ó#õ		
ô ØÜ‹^œY›[¬*°UÓ*;¼ZÈÓ=NÐOó
ð 	
÷	
õ 	
úð 	
÷%	
÷ 	
ö 	
úô> 	ØNõ	
ô 	”J¤	Õ*ä˜S¤:£<´Ó1AÐ"BÓCÐC÷ 	+Õ*úÐ*÷	
÷ 	
ö 	
úô 	ØJõ	
ô 	”GœJÓ'Õ(ä˜S¤9£; -Ó0Ð0÷ 	)Õ(úÐ(÷	
÷ 	
ö 	
úô 	ð9àó	
ô
 	”J iÓ0ä˜Y¬«¨Ó7Ð7÷ 	1Õ0úÐ0÷	
÷ 	
ö 	
úô 	ð9õ	
ô 	”G )Ñ,Õ-ä˜R¤*¨YÓ"7Ð!8Ó9Ð9÷ 	.Õ-úÐ-÷		
÷ 	
ö 	
úô 	ðLð ó	
ô 	”J¤
¬J¼
ÕCä˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷ 	DÕCúÐC÷	
÷ 	
ö 	
úsë   ŒAœ2²
A 	¼AÁ
AÁ(&CÂ*B8Â8
C	ÃCÃ
C!Ã.:E6Ä(3EÅ
E)	Å%E6Å6
FÆG!Æ'GÇ
G	ÇG!Ç!
G/Ç=IÈH,È,
H:	È6IÉ
IÉ"J"É1JÊ
J	ÊJ"Ê"
J0Ê>LËK(Ë(
K6	Ë2LÌ
LÌNÌ=*M'Í'
M5	Í1NÎ
Nc                 ó  • [        SSS9   [        [        [        [        5      [        5         [        S[        S[	        5       [        5       /5      [	        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        SSS9   [        [        [        [        5      5         [        S[        S[	        5       [        5       /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Na�  Raised exception group did not match: 
The following expected exceptions did not find a match:
  RaisesGroup(ValueError, ValueError)
  'ValueError'
The following raised exceptions did not find a match
  ExceptionGroup('', [TypeError(), RuntimeError()]):
    RaisesGroup(ValueError, ValueError): 
      The following expected exceptions did not find a match:
        'ValueError'
        'ValueError'
      The following raised exceptions did not find a match
        TypeError():
          'TypeError' is not of type 'ValueError'
          'TypeError' is not of type 'ValueError'
        RuntimeError():
          'RuntimeError' is not of type 'ValueError'
          'RuntimeError' is not of type 'ValueError'
    Unexpected nested 'ExceptionGroup', expected 'ValueError'
  TypeError():
    RaisesGroup(ValueError, ValueError): 'TypeError' is not an exception group
    'TypeError' is not of type 'ValueError'Fr0   r   aÂ  Raised exception group did not match: 
RaisesGroup(ValueError, ValueError): 
  The following expected exceptions did not find a match:
    'ValueError'
    'ValueError'
  The following raised exceptions did not find a match
    TypeError():
      'TypeError' is not of type 'ValueError'
      'TypeError' is not of type 'ValueError'
    RuntimeError():
      'RuntimeError' is not of type 'ValueError'
      'RuntimeError' is not of type 'ValueError')r!   r   r%   r   r&   r(   r)   r   r   Útest_message_indentrl   g  sí   € äð:ð. ó1	
ô4 	Üœ
¤JÓ/Üõ	
ô
 Øä˜r¤I£K´³Ð#@ÓAÜ“ðó
ð 	
÷	
õ 	
úð 	
÷5	
÷ 	
ö 	
úôN 	ð?ð ó	
ô 	Üœ
¤JÓ/õ	
ô Øä˜r¤I£K´³Ð#@ÓAðó
ð 	
÷		
õ 	
úð 	
÷	
÷ 	
ö 	
ús:   ‹#A<®3A!Á!
A/	Á+A<Á<
B
ÂC:Â5*CÃ
C-	Ã)C:Ã:
Dc                 ó  • [        S5         [        [        [        5      [        5         [        S[        S[        S[        5       /5      /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        [        5      [        5         [        S[        S[        5       [        S[        5       /5      /5      /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5         [        [        [        SS9[        5         [        S[        S[	        5       /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Na›  
The following expected exceptions did not find a match:
  RaisesGroup(ValueError)
  'ValueError'
The following raised exceptions did not find a match
  ExceptionGroup('', [ExceptionGroup('', [ValueError()])]):
    RaisesGroup(ValueError): Unexpected nested 'ExceptionGroup', expected 'ValueError'
      Did you mean to use `flatten_subgroups=True`?
    Unexpected nested 'ExceptionGroup', expected 'ValueError'r   aç  
The following expected exceptions did not find a match:
  RaisesGroup(ValueError, ValueError)
  'ValueError'
The following raised exceptions did not find a match
  ExceptionGroup('', [ValueError(), ExceptionGroup('', [ValueError()])]):
    RaisesGroup(ValueError, ValueError): 
      1 matched exception. 
      The following expected exceptions did not find a match:
        'ValueError'
          It matches ValueError() which was paired with 'ValueError'
      The following raised exceptions did not find a match
        ExceptionGroup('', [ValueError()]):
          Unexpected nested 'ExceptionGroup', expected 'ValueError'
      Did you mean to use `flatten_subgroups=True`?
    Unexpected nested 'ExceptionGroup', expected 'ValueError'a«  
The following expected exceptions did not find a match:
  RaisesGroup(Exception, match='^hello')
  'ValueError'
The following raised exceptions did not find a match
  ExceptionGroup('^hello', [Exception()]):
    RaisesGroup(Exception, match='^hello'): Regex pattern '^hello' did not match '^hello' of 'ExceptionGroup'
      Did you mean to `re.escape()` the regex?
    Unexpected nested 'ExceptionGroup', expected 'ValueError'z^hellor   )r!   r   r%   r   Ú	Exceptionr)   r   r   Ú)test_suggestion_on_nested_and_brief_errorro   «  s4  € ô 	ðLõ
	
ô 	”K¤
Ó+¬ZÕ8äØÜ˜B¤°´Z³\°NÓ!CÐ DÓEÐFó
ð 	
÷ 	9Õ8úÐ8÷
	
÷ 
	
ö 
	
úô& 	ðLõ	
ô$ 	”K¤
¬JÓ7¼ÕDäØÜ˜B¤£¬~¸bÄ:Ã<À.Ó/QÐ RÓSÐTó
ð 	
÷ 	EÕDúÐD÷%	
÷ 	
ö 	
úô6 	ðLõ
	
ô 	”K¤	°Ñ:¼JÕGä˜R¤.°¼I»K¸=Ó"IÐ!JÓKÐK÷ 	HÕGúÐG÷
	
÷ 
	
ö 
	
úsX   ŒA1ª,AÁ
A$	Á A1Á1
A?Â#D Â05C%Ã%
C3	Ã/D Ä 
DÄE5Ä9!EÅ
E(	Å$E5Å5
Fc                 ó¶  • [        SSS9   [        [        [        5      [        [        [        5      5      [        [        [        SS95      [        [        [        5      5         [        S[	        S5      [        S[	        S	5      /5      [        S[	        S
5      [	        S5      /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)NaÅ  Raised exception group did not match: 
The following expected exceptions did not find a match:
  RaisesGroup(ValueError)
  RaisesGroup(RaisesGroup(ValueError))
  RaisesGroup(Matcher(TypeError, match='foo'))
  RaisesGroup(TypeError, ValueError)
The following raised exceptions did not find a match
  TypeError('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'):
    RaisesGroup(ValueError): 'TypeError' is not an exception group
    RaisesGroup(RaisesGroup(ValueError)): 'TypeError' is not an exception group
    RaisesGroup(Matcher(TypeError, match='foo')): 'TypeError' is not an exception group
    RaisesGroup(TypeError, ValueError): 'TypeError' is not an exception group
  ExceptionGroup('Exceptions from Trio nursery', [TypeError('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb')]):
    RaisesGroup(ValueError): 'TypeError' is not of type 'ValueError'
    RaisesGroup(RaisesGroup(ValueError)): RaisesGroup(ValueError): 'TypeError' is not an exception group
    RaisesGroup(Matcher(TypeError, match='foo')): Matcher(TypeError, match='foo'): Regex pattern 'foo' did not match 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
    RaisesGroup(TypeError, ValueError): 1 matched exception. Too few exceptions raised, found no match for: ['ValueError']
  ExceptionGroup('Exceptions from Trio nursery', [TypeError('cccccccccccccccccccccccccccccccccccccccc'), TypeError('dddddddddddddddddddddddddddddddddddddddd')]):
    RaisesGroup(ValueError): 
      The following expected exceptions did not find a match:
        'ValueError'
      The following raised exceptions did not find a match
        TypeError('cccccccccccccccccccccccccccccccccccccccc'):
          'TypeError' is not of type 'ValueError'
        TypeError('dddddddddddddddddddddddddddddddddddddddd'):
          'TypeError' is not of type 'ValueError'
    RaisesGroup(RaisesGroup(ValueError)): 
      The following expected exceptions did not find a match:
        RaisesGroup(ValueError)
      The following raised exceptions did not find a match
        TypeError('cccccccccccccccccccccccccccccccccccccccc'):
          RaisesGroup(ValueError): 'TypeError' is not an exception group
        TypeError('dddddddddddddddddddddddddddddddddddddddd'):
          RaisesGroup(ValueError): 'TypeError' is not an exception group
    RaisesGroup(Matcher(TypeError, match='foo')): 
      The following expected exceptions did not find a match:
        Matcher(TypeError, match='foo')
      The following raised exceptions did not find a match
        TypeError('cccccccccccccccccccccccccccccccccccccccc'):
          Matcher(TypeError, match='foo'): Regex pattern 'foo' did not match 'cccccccccccccccccccccccccccccccccccccccc'
        TypeError('dddddddddddddddddddddddddddddddddddddddd'):
          Matcher(TypeError, match='foo'): Regex pattern 'foo' did not match 'dddddddddddddddddddddddddddddddddddddddd'
    RaisesGroup(TypeError, ValueError): 
      1 matched exception. 
      The following expected exceptions did not find a match:
        'ValueError'
      The following raised exceptions did not find a match
        TypeError('dddddddddddddddddddddddddddddddddddddddd'):
          It matches 'TypeError' which was paired with TypeError('cccccccccccccccccccccccccccccccccccccccc')
          'TypeError' is not of type 'ValueError'Fr0   r#   r   r   Ú(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazExceptions from Trio nurseryÚ(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbÚ(ccccccccccccccccccccccccccccccccccccccccÚ(dddddddddddddddddddddddddddddddddddddddd)r!   r   r%   r   r&   r   r)   r   r   Útest_assert_message_nestedru   ì  sÎ   € ô 	ð1@ðd óg4	
ôj 	Üœ
Ó#Üœ¤JÓ/Ó0Üœ¤	°Ñ7Ó8Üœ	¤:Ó.õ		
ô ØäÐDÓEÜØ2ÜÐIÓJÐKóô Ø2ä!Ð"LÓMÜ!Ð"LÓMðóðó
ð 	
÷	
õ 	
úð 	
÷k4	
÷ 4	
ö 4	
ús   ‹AC
Á$AB/Â/
B=	Â9C
Ã

CÚ
hypothesisz-hypothesis may have monkeypatched _check_repr)Úreasonc            	     ó   • [         R                  " [        SS9   [        [	        S S9[
        5         [        S[        S5      [        S5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Na`  ^Raised exception group did not match: \nThe following expected exceptions did not find a match:\n  Matcher\(check=<function test_check_no_patched_repr.<locals>.<lambda> at .*>\)\n  'TypeError'\nThe following raised exceptions did not find a match\n  ValueError\('foo'\):\n    Matcher\(check=<function test_check_no_patched_repr.<locals>.<lambda> at .*>\): check did not return True\n    'ValueError' is not of type 'TypeError'\n  ValueError\('bar'\):\n    Matcher\(check=<function test_check_no_patched_repr.<locals>.<lambda> at .*>\): check did not return True\n    'ValueError' is not of type 'TypeError'$r   c                ó   • g)NFr)   )Úxs    r   r6   Ú,test_check_no_patched_repr.<locals>.<lambda>Y  s   € ¨Er   r8   r   r#   r$   )r   r   r   r   r   r&   r   r%   r)   r   r   Útest_check_no_patched_reprr|   ?  sb   € ô 	�ŠÜð
@ó	
ô  	”G¡/Ñ2´IÕ>ä˜R¤*¨UÓ"3´ZÀÓ5FÐ!GÓHÐH÷ 	?Õ>úÐ>÷!	
÷ 	
ö 	
ús   šA/³!AÁ
A"	ÁA/Á/
A=c                 ó(  • [        S5         [        [        [        [        [        [        SS95         [	        S[        S5      [        S5      [        S5      [        S5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Naz  
3 matched exceptions. 
The following expected exceptions did not find a match:
  Matcher(ValueError, match='foo')
    It matches ValueError('foo') which was paired with 'ValueError'
    It matches ValueError('foo') which was paired with 'ValueError'
    It matches ValueError('foo') which was paired with 'ValueError'
The following raised exceptions did not find a match
  ValueError('bar'):
    It matches 'ValueError' which was paired with ValueError('foo')
    It matches 'ValueError' which was paired with ValueError('foo')
    It matches 'ValueError' which was paired with ValueError('foo')
    Matcher(ValueError, match='foo'): Regex pattern 'foo' did not match 'bar'
There exist a possible match when attempting an exhaustive check, but RaisesGroup uses a greedy algorithm. Please make your expected exceptions more stringent with `Matcher` etc so the greedy algorithm can function.r#   r   r   r$   )r!   r   r%   r   r   r)   r   r   Útest_misordering_exampler~   ^  s�   € äðfõ	
ô  	Üœ
¤J´¼
È%Ñ0Põ	
ô Øä˜5Ó!Ü˜5Ó!Ü˜5Ó!Ü˜5Ó!ð	ó
ð 	
÷		
õ 	
úð 	
÷!	
÷ 	
ö 	
ús   Œ'B³5A(Á(
A6	Á2BÂ
Bc                 ó„  • [        S5         [        [        [        5         [	        S[        5       [        5       /5      e! , (       d  f       O= f SSS5        O! , (       d  f       O= f[        S5         [        [        [        5         [	        S[        5       [        5       /5      e! , (       d  f       O= f SSS5        O! , (       d  f       O= f[        S5         [        [        [        5         [	        S[        5       [        5       /5      e! , (       d  f       O= f SSS5        g! , (       d  f       g= f)z if only one raised and one expected fail to match up, we print a full table iff
the raised exception would match one of the expected that previously got matchedz>1 matched exception. 'TypeError' is not of type 'RuntimeError'r   Na  
1 matched exception. 
The following expected exceptions did not find a match:
  'RuntimeError'
The following raised exceptions did not find a match
  TypeError():
    It matches 'Exception' which was paired with ValueError()
    'TypeError' is not of type 'RuntimeError'a  
1 matched exception. 
The following expected exceptions did not find a match:
  'ValueError'
    It matches ValueError() which was paired with 'ValueError'
The following raised exceptions did not find a match
  TypeError():
    'TypeError' is not of type 'ValueError')r!   r   r%   r(   r   r&   rn   r)   r   r   Útest_brief_error_on_one_failr€     sç   € ô
 	ØLõ	
ô 	”J¤Õ-ä˜R¤*£,´	³Ð!<Ó=Ð=÷ 	.Õ-úÐ-÷	
÷ 	
ö 	
úô 	ð<õ		
ô 	”Iœ|Õ,ä˜R¤*£,´	³Ð!<Ó=Ð=÷ 	-Õ,úÐ,÷		
÷ 		
ö 		
úô  	ð:õ		
ô 	”J¤
Õ+ä˜R¤*£,´	³Ð!<Ó=Ð=÷ 	,Õ+úÐ+÷		
÷ 		
ö 		
úsX   ŒA¡A Á 
A	Á
AÁ
A)Á7CÂB+Â+
B9	Â5CÃ
CÃ"D1Ã7DÄ
D$	Ä D1Ä1
D?c            
     óÞ  • [        S5         [        [        [        [        [        5         [	        S[        5       [        5       [        5       [        5       /5      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        S5      n [        SS9n[        S5         [        XU5         [	        SX U /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nz?3 matched exceptions. 'RuntimeError' is not of type 'TypeError'r   r#   r$   r   aC  
The following expected exceptions did not find a match:
  Matcher(match='bar')
  Matcher(match='bar')
  Matcher(match='bar')
The following raised exceptions did not find a match
  ValueError('foo'):
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
  ValueError('foo'):
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
  ValueError('foo'):
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo'
    Matcher(match='bar'): Regex pattern 'bar' did not match 'foo')r!   r   r%   r&   r   r(   r   )rC   Úms     r   Útest_identity_oopsiesrƒ   ¬  s¼   € ô 	ØMõ	
ô 	”J¤
¬J¼	ÕBäØ”“œz›|¬Z«\¼<»>ÐJó
ð 	
÷ 	CÕBúÐB÷	
÷ 	
ö 	
úô 	�5Ó€AÜ�eÑ€AäðPõ	
ô( 	�A˜!Õä˜R !¨ Ó+Ð+÷ 	ÕúÐ÷)	
÷ 	
ö 	
ús:   ŒA7«1AÁ
A*	Á&A7Á7
BÂ'CÂ4CÃ
C	ÃCÃ
C,c            	     ó”  • [         R                  " [        SS9   [        5         S S S 5        [         R                  " [        S[        R
                  " [        [        5      5       S3S9   [        [        5        S S S 5        [        [        [        5      5         [        S[        5       45      e! , (       d  f       N’= f! , (       d  f       NM= f! , (       d  f       O= f[        S5         [        [        [        5      5         [        S[        5       45      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nz6^You must specify at least one parameter to match on.$r   z^exception_type z% must be a subclass of BaseException$r   z;Matcher(TypeError): 'ValueError' is not of type 'TypeError')r   r   r%   r   r   r   ÚreprrW   r   r   r!   r&   r)   r   r   Útest_matcherr†   ×  sâ   € Ü	�ŠÜØGó
ô 	Œ	÷	
ô
 
�ŠÜØ ¤§¢¬4´«<Ó!8Ð 9Ð9^Ð_ó
ô 	”Œ÷	
ô 
”WœZÓ(Õ	)Ü˜R¤*£, Ó1Ð1÷
õ 
ú÷

õ 
ú÷ 
*Õ	)úô 	ØIõ	
ô 	”GœIÓ&Õ'ä˜R¤*£, Ó1Ð1÷ 	(Õ'úÐ'÷	
÷ 	
ö 	
úsA   šB1Á+CÂCÂ1
B?Ã
CÃ
C!Ã/D9ÄDÄ
D,	Ä(D9Ä9
Ec                 óÔ  • [        [        [        S5      5         [        S[        S5      45      e! , (       d  f       O= f[	        S5         [        [        [        S5      5         [        S[        S5      45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        [        SS95         [        S[        S5      45      e! , (       d  f       O= f[	        S5         [        [        SS95         [        S[        S5      45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[        [        [        SS95         [        S[        S5      /5      e! , (       d  f       O= f[	        S5         [        [        [        SS95         [        S[        S	5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)
Nr#   r   zIMatcher(ValueError, match='foo'): Regex pattern 'foo' did not match 'bar'r$   r   z=Matcher(match='foo'): Regex pattern 'foo' did not match 'bar'rG   zNMatcher(ValueError, match='^bar$'): Regex pattern '^bar$' did not match 'barr'Úbarr)r   r   r%   r   r!   r)   r   r   Útest_matcher_matchr‰   î  sv  € Ü	”WœZ¨Ó/Õ	0Ü˜R¤*¨UÓ"3Ð!5Ó6Ð6÷ 
1Õ	0úô 	ØWõ	
ô 	”GœJ¨Ó.Õ/ä˜R¤*¨UÓ"3Ð!5Ó6Ð6÷ 	0Õ/úÐ/÷	
÷ 	
ö 	
úô 
”W 5Ñ)Õ	*Ü˜R¤*¨UÓ"3Ð!5Ó6Ð6÷ 
+Õ	*úô 	ØKõ	
ô 	”G %Ñ(Õ)ä˜R¤*¨UÓ"3Ð!5Ó6Ð6÷ 	*Õ)úÐ)÷	
÷ 	
ö 	
úô 
”WœZ¨wÑ7Õ	8Ü˜R¤*¨UÓ"3Ð!4Ó5Ð5÷ 
9Õ	8úô 	Ø\õ	
ô 	”GœJ¨gÑ6Õ7ä˜R¤*¨VÓ"4Ð!5Ó6Ð6÷ 	8Õ7úÐ7÷	
÷ 	
ö 	
úsz   š1±
?ÁBÁ'A>Á>
B	ÂBÂ
B'Â<CÃ
C!Ã/D4ÄDÄ
D'	Ä#D4Ä4
EÅE3Å3
FÆGÆ'F>Æ>
G	ÇGÇ
G'c                 óì  • SS jn [        [        U S95         [        S[        SS5      45      e! , (       d  f       O= fSS jn[        [        [        US95         [        S[        SS5      45      e! , (       d  f       O= f[	        SU< S35         [        [        [        US95         [        S[        SS5      45      e! , (       d  f       O= f S S S 5        O! , (       d  f       O= f[	        S	U< S
U< S35         [        [        [        [        US95      5         [        S[        S[        SS5      /5      /5      e! , (       d  f       O= f S S S 5        g ! , (       d  f       g = f)Nc                óN   • [        U [        5      =(       a    U R                  S:H  $ ©Né   )rA   ÚOSErrorÚerrnorB   s    r   Úcheck_oserror_and_errno_is_5Ú8test_Matcher_check.<locals>.check_oserror_and_errno_is_5  s   € Ü˜!œWÓ%×6¨!¯'©'°Q©,Ð6r   r8   r   r�   c                ó    • U R                   S:H  $ rŒ   )r�   rB   s    r   Úcheck_errno_is_5Ú,test_Matcher_check.<locals>.check_errno_is_5  s   € Ø�w‰w˜!‰|Ðr   zMatcher(OSError, check=z): check did not return Trueé   z#RaisesGroup(Matcher(OSError, check=z)): Matcher(OSError, check=)rC   ÚBaseExceptionrO   rP   )rC   rŽ   rO   rP   )r   r   r   rŽ   r!   )r�   r“   s     r   Útest_Matcher_checkr—     sG  € ô7ô 
”WÐ#?Ñ@Õ	AÜ˜R¤'¨!¨R£.Ð!2Ó3Ð3÷ 
BÕ	Aúôô 
”WœWÐ,<Ñ=Õ	>Ü˜R¤'¨!¨R£.Ð!2Ó3Ð3÷ 
?Õ	>úô
 	Ø%Ð&6Ñ%9Ð9UÐVõ	
ô 	”GœGÐ+;Ñ<Õ=ä˜R¤'¨!¨R£.Ð!2Ó3Ð3÷ 	>Õ=úÐ=÷	
÷ 	
ö 	
úô 	Ø1Ð2BÑ1EÐE`ÐaqÑ`tð  uQð  Rõ	
ô 	”K¤¬Ð7GÑ HÓIÕJä˜R¤.°´g¸aÀ³nÐ5EÓ"FÐ!GÓHÐH÷ 	KÕJúÐJ÷	
÷ 	
ö 	
úsP   ˜0°
>ÁA5Á5
BÂC!Â.CÃ
C	ÃC!Ã!
C/Ä!E%Ä'#E
Å

E	ÅE%Å%
E3c                 ó¨  • [        [        [        5      5      S:X  d   e[        [        SS95      S:X  d   e[        R                  " SS5      n [        [        U S95      S:X  d   e[        R                  " S[        R
                  5      n[        [        US95      SU< S	3:X  d   e[        [        [        S
[        S95      S[        < S	3:X  d   eg )NzMatcher(ValueError)ú[a-z]r   zMatcher(match='[a-z]')Únoflagr   zMatcher(match='noflag')zMatcher(match=Ú)r   ©r   r9   z&Matcher(ValueError, match='re', check=)re   r   r%   r   ÚcompileÚ
IGNORECASErP   )Úpattern_no_flagsÚpattern_flagss     r   Útest_matcher_tostringr¡   2  sÂ   € ÜŒw”zÓ"Ó#Ð'<Ó<Ð<Ð<ÜŒw˜WÑ%Ó&Ð*BÓBÐBÐBÜ—z’z )¨QÓ/ÐÜŒwÐ-Ñ.Ó/Ð3LÓLÐLÐLÜ—J’J˜y¬"¯-©-Ó8€MÜŒw˜]Ñ+Ó,°.ÀÑ@QÐQRÐ0SÓSÐSÐSäŒG”J d´$Ñ7Ó8Ø3´D±8¸1Ð=ó	>ðñ	>r   c                 ó´   • SS jn U " S5        U " S5        U " S5        U " S5        U " S5        [        [        [        S[        S95      S	[        < S
3:X  d   eg )Nc                ób   • [        U 5      nU [        U5      s=:X  a  [        U5      :X  d   e   eg r@   )Úevalre   r…   )r   Úevaleds     r   Úcheck_str_and_reprÚ5test_raisesgroup_tostring.<locals>.check_str_and_repr@  s,   € Ü�a“ˆØ”C˜“KÕ/¤4¨£<Ó/Ð/Ñ/Ð/Ñ/r   zRaisesGroup(ValueError)z$RaisesGroup(RaisesGroup(ValueError))z RaisesGroup(Matcher(ValueError))z-RaisesGroup(ValueError, allow_unwrapped=True)z%RaisesGroup(ValueError, match='aoeu')r™   rœ   z-RaisesGroup(ValueError, match='[a-z]', check=r›   )r   re   rO   rf   )re   r   r%   rP   )r¦   s    r   Útest_raisesgroup_tostringr¨   ?  sf   € ô0ñ Ð0Ô1ÙÐ=Ô>ÙÐ9Ô:ÙÐFÔGÙÐ>Ô?ô 	ŒKœ
¨'¼Ñ>Ó?Ø:¼4¹(À!ÐDó	Eðñ	Er   c                óò  • U R                  [        R                  R                  S[        R                  R                  R                  5        [        R                  R                  [        5       n[        S[        S5      45      e! , (       d  f       O= fWR                  [        L d   eUR                  R                  S   R                  S:X  d   e[        UR                  [        5      (       d   eg )NÚExceptionInfor   Úhellor   )r«   )ÚsetattrÚtrioÚtestingÚ_raises_groupÚ_ExceptionInfor   r%   r   ÚtyperX   r4   ÚargsrA   Útbr   )ÚmonkeypatchÚexcinfos     r   Útest__ExceptionInfor¶   P  s³   € Ø×ÑÜ�‰×"Ñ"ØÜ�‰×"Ñ"×1Ñ1ôô
 
�‰×	!Ñ	!¤*Ô	-°Ü˜R¤*¨WÓ"5Ð!7Ó8Ð8÷ 
.Õ	-úà�<‰<œ>Ò)Ð)Ð)Ø�=‰=×#Ñ# AÑ&×+Ñ+¨zÓ9Ð9Ð9Ü�g—j‘j¤-×0Ñ0Ð0Ñ0s   Á1BÂ
B)r   re   rO   re   )T)r   re   r   rP   rO   z pytest.RaisesExc[AssertionError])rO   rf   )r´   zpytest.MonkeyPatchrO   rf   )-Ú
__future__r   r   ÚsysÚtypesr   r   r­   Útrio.testingr   r   Útrio.testing._raises_groupr   Úversion_infoÚexceptiongroupr
   r   r   r!   r*   r,   r;   rE   rI   rR   r[   r]   rg   rj   rl   ro   ru   ÚmarkÚskipifÚmodulesr|   r~   r€   rƒ   r†   r‰   r—   r¡   r¨   r¶   r)   r   r   Ú<module>rÁ      s  ðÝ "ã 	Û 
Ý ã ã ß -Ý 4à×Ñ�gÓßAô$ð
 "&ðJØ	ðJØðJà%õJô)
ôX;@ô|xVôvMô`(9ôV2ô"Gô>;ô8ôvsTôlA
ôH>LôBP
ðf ‡�×ÑØ�C—K‘KÑØ:ð ð óIó	ðIô6
ôB*>ôZ(,ôV2ô.7ôDIôD
ôõ"
1r   