Ë
    _§1hµ  ã                  óÐ  — d dl mZ d dlZd dlZd dlmZ d dlmZ d dlZd dl	Z	d dl
mZmZ d dlmZ ej                  dk  rd dlmZmZ erd d	lmZ d&d
„Z	 d'	 	 	 	 	 d(d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Zd)d„Z d)d„Z!d)d„Z"d)d„Z#ejH                  jK                  dejL                  v d¬«      d)d„«       Z'd)d„Z(d)d„Z)d)d„Z*d)d „Z+d)d!„Z,d)d"„Z-d)d#„Z.d)d$„Z/d*d%„Z0y)+é    )ÚannotationsN)ÚTracebackType)ÚTYPE_CHECKING)ÚMatcherÚRaisesGroup)Úrepr_callable)é   é   )ÚBaseExceptionGroupÚExceptionGroup)ÚRaisesContextc                ó8   — dt        j                  | «      z   dz   S )Nú^ú$)ÚreÚescape)Úss    úb/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/trio/_tests/test_testing_raisesgroup.pyÚwrap_escaper      s   € Ø”—‘˜1“Ñ Ñ#Ð#ó    c                óz   — | d   dk7  sJ d«       ‚|rdnd}t        j                  t        t        || z   «      ¬«      S )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#      sE   € ð 	ˆB‰�4ŠðFàEóFØá9CÑ5È€FÜ�=‰=œ¬{¸6ÀC¹<Ó/HÔIÐIr   c                 ó(  — t        j                  t        t        dt	        «       ›d�«      ¬«      5  t        t	        «       «       d d d «       t        t        «      5  t        dt        «       f«      ‚# 1 sw Y   Œ.xY w# 1 sw Y   nxY wt        d«      5  t        t        «      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        t        t        «      5  t        dt        «       t        «       f«      ‚# 1 sw Y   nxY wt        t        t        «      5  t        dt        «       t        «       f«      ‚# 1 sw Y   nxY wt        t        t        «      «      5  t        dt        dt        «       f«      f«      ‚# 1 sw Y   nxY wt        t        t        t        «      t        t        «      «      5  t        dt        «       t        dt        «       f«      t        dt        «       f«      f«      ‚# 1 sw Y   y xY w)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Ó	 ñ 5Ü˜U¤Z£\ OÓ4Ð4÷!ð !ú÷5ð 5úô 	ÐFÓGñ6ä”JÓñ6ô ˜U¤[£]Ð$4Ó5Ð5÷	6ð 6ú÷ 6÷ 6ñ 6úô 
”Z¤Ó	-ñ CÜ˜U¤Z£\´;³=Ð$AÓBÐB÷Cð Cúô 
”[¤*Ó	-ñ CÜ˜U¤Z£\´;³=Ð$AÓBÐB÷Cð Cúô 
”[¤Ó,Ó	-ñ OÜ˜U¤^°E¼J»L¸?Ó%KÐ$MÓNÐN÷Oð Oúô 
ÜÜ”JÓÜ”LÓ!ó
ñ 
ô
 Øä“Ü˜u¤z£| oÓ6Ü˜r¤L£NÐ#4Ó5ðó
ð 	
÷
ð 
úse   ±A2ÁA>Á2A;Á>BÂCÂ%B;Â;C	Ã CÃCÃ0DÄDÄ/EÅEÅ2!FÆFÇ
>HÈHc                 óŠ  — t        d«      5  t        t        «      5  t        dt	        «       t        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t
        «      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        «      5  t        dt        «       t        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      5  t        dt        «       t        «       g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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.   O   s¸  € ô 	ØLó	
ñAô 	”JÓñ	Aô ˜R¤,£.´*³,Ð!?Ó@Ð@÷Að Aú÷ A÷ Añ Aúô 	Øaó	
ñ2ô 	”J¤Ó,ñ	2ô ˜R¤*£, Ó1Ð1÷2ð 2ú÷ 2÷ 2ñ 2úô 	ðMó	
ñ2ô 	”J¤
Ó+ñ2ô ˜R¤*£, Ó1Ð1÷2ð 2ú÷ 2÷ 2ñ 2úô 	ðMó	
ñ?ô 	”JÓñ?ô ˜R¤*£,´
³Ð!=Ó>Ð>÷?ð ?ú÷ ?÷ ?ñ ?úô 	ð<ó		
ñ@ô 	”J¤
Ó+ñ@ô ˜R¤*£,´³Ð!>Ó?Ð?÷@ð @ú÷ @÷ @ñ @ús’   ŒAœ;»A	Á AÁAÁ'B'Á<BÂB	ÂB'Â'B0Â>C>ÃC)Ã)C2	Ã.C>Ã>DÄEÄ%EÅE	Å	EÅE"Å0F9ÆF$Æ$F-	Æ)F9Æ9Gc                 óˆ	  — t        t        d¬«      5  t        dt        dt        «       f«      f«      ‚# 1 sw Y   nxY wt        t        t        d¬«      5  t        dt        dt        «       t        «       f«      f«      ‚# 1 sw Y   nxY wt        t        t        d¬«      5  t        dt        dt        «       g«      t        «       g«      ‚# 1 sw Y   nxY wt        t        t        d¬«      «      5  t        dt        dt        «       f«      f«      ‚# 1 sw Y   nxY wt        t        t        d¬«      «      5  t        dt        dt        dt        «       f«      f«      f«      ‚# 1 sw Y   nxY wt	        j
                  t        d¬«      5  t        t        t        «      d¬«       d d d «       n# 1 sw Y   nxY wt        d«      5  t        t        d¬«      5  t        ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        d¬«      «      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd	¬
«      5  t        t        t        «      5  t        dt        dt        «       t        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd	¬
«      5  t        t        t        d„ ¬«      5  t        dt        dt        «       t        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd	¬
«      5  t        t        «      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        «      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      «      5  t        dt        dt        dt        «       g«      g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        «      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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   — t        | j                  «      dk(  S )Né   )ÚlenÚ
exceptions)Úegs    r   ú<lambda>z(test_flatten_subgroups.<locals>.<lambda>Ù   s   € œS §¡Ó/°1Ñ4€ r   ©Ú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ñ IÜ˜R¤.°´j³l°_Ó"EÐ!GÓHÐH÷Ið Iúô 
”Z¤¸dÔ	Cñ UÜ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!SÓTÐT÷Uð Uúä	”Z¤¸dÔ	Cñ TÜ˜R¤.°´j³l°^Ó"DÄiÃkÐ!RÓSÐS÷Tð Túô 
”[¤¸tÔDÓ	Eñ IÜ˜R¤.°´j³l°_Ó"EÐ!GÓHÐH÷Ið Iúä	”[¤¸tÔDÓ	Eñ 
ÜØÜ˜B¤°´Z³\°OÓ!DÐ FÓGÐIó
ð 	
÷
ð 
úô 
�‰ÜØQô
ñ Eô 	”K¤
Ó+¸tÕD÷	E÷ Eñ Eúô 	Øaó	
ñô 	”J°$Ô7ñ	ô Ð÷ð ú÷ ÷ ñ úô 	ð Só	
ñ2ô 	”K¤
¸dÔCÓDñ	2ô ˜R¤*£, Ó1Ð1÷2ð 2ú÷ 2÷ 2ñ 2úô 	ð<ð ô	
ñTô 	”J¤	Ó*ñTô ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷Tð Tú÷ T÷ Tñ Túô$ 	ð<ð ô	
ñTô 	ÜÜÙ4ô	
ñTô& ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷'Tð Tú÷ T÷ Tñ Túô. 	ð>àô	
ñGô 	”JÓñGô ˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷Gð Gú÷ G÷ Gñ Gúô 	ÐVÓWñFä”JÓñFô ˜R¤.°´i³k°]Ó"CÐ!DÓEÐE÷	Fð Fú÷ F÷ Fñ Fúô 	ð>ó	
ñ

ô
 	”K¤
Ó+Ó,ñ

ô ØÜ˜B¤°´Z³\°NÓ!CÐ DÓEÐFó
ð 	
÷

ð 

ú÷ 

÷ 

ñ 

úô  	ÐQÓRñVä”NÓ#ñVô ! Ô&8¸Ô>OÓ>QÐ=RÓ&SÐ%TÓUÐU÷	Vð Vú÷ V÷ Vñ Vús4  ’!3³<Á*A?Á?BÂ!*CÃCÃ1!DÄDÄ8,E$Å$E-ÆF/Æ/F8ÇG4ÇGÇG(	Ç$G4Ç4G=ÈIÈ&H<È<I	ÉIÉIÉ*J>É?*J)Ê)J2	Ê.J>Ê>KËL.Ë/*LÌL"	ÌL.Ì.L7ÍNÍ!M8Í8N	Í=NÎNÎ$O*Î4!OÏO	ÏO*Ï*O3ÐQÐ,QÑQ	ÑQÑQ$Ñ2R8Ò!R#Ò#R,	Ò(R8Ò8Sc            
     óf  — t        t        d¬«      5  t        ‚# 1 sw Y   nxY wt        j                  t        d¬«      5  t        t        t        d¬«       d d d «       n# 1 sw Y   nxY wt        t        d„ ¬«      d¬«      5  t        ‚# 1 sw Y   nxY wt        j                  t        d¬«      5  t        t        t        «      d¬«       d d d «       n# 1 sw Y   nxY wt        t        t        d¬«      «      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wt        t        t        d¬«      «      5  t        dt        «       g«      ‚# 1 sw Y   nxY wt        d	«      5  t        t        «      5  t        d
«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        d¬«      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        t        dd¬«      5  t        dt        dt        «       g«      g«      ‚# 1 sw Y   nxY wt        dd¬«      5  t        t        d¬«      5  t        d«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        t        «      d¬«      5  t        ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      «      5  t        ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)NT©Úallow_unwrappedz,^You cannot specify multiple exceptions withr   c                ó.   — t        | t        t        f«      S ©N)Ú
isinstancer)   r'   ©Úes    r   r8   z1test_catch_unwrapped_exceptions.<locals>.<lambda>  s   € ¤
¨1¬{¼JÐ.GÓ H€ r   r9   zhas no effect when expectingr   r1   zvalue error textziUnexpected nested 'ExceptionGroup', expected 'ValueError'
  Did you mean to use `flatten_subgroups=True`?r%   r&   )r?   r0   zORaised exception (group) did not match: 'TypeError' is not of type 'ValueError'Fr2   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ñ ÜÐ÷ð úô 
�‰ÜØ=ô
ñ Cô 	”K¤¸TÕB÷	C÷ Cñ Cúô 
ÜÑHÔIØô
ñ ô Ð÷	ð úô 
�‰”zÐ)GÔ	Hñ CÜ”K¤
Ó+¸TÕB÷C÷ Cñ Cúô
 
”[¤¸TÔBÓ	Cñ GÜ˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷Gð Gúä	”[¤¸TÔBÓ	Cñ 1Ü˜R¤*£, Ó0Ð0÷1ð 1úô
 	Øaó	
ñ-ô 	”JÓñ	-ô Ð+Ó,Ð,÷-ð -ú÷ -÷ -ñ -úô 	ð>ó	
ñMô
 	”J°Ô5ñMô ˜U¤^°E¼J»L¸>Ó%JÐ$KÓLÐL÷Mð Mú÷ M÷ Mñ Múô 
”Z°ÈÔ	Nñ GÜ˜R¤.°´j³l°^Ó"DÐ!EÓFÐF÷Gð Gúô
 	Ø]Øô	
ñJô
 	”J°Ô5ñJô ÐHÓIÐI÷Jð Jú÷ J÷ Jñ Júô 	ØrØô	
ñô
 	”GœJÓ'¸Ô>ñô ˆ÷ð ú÷ ÷ ñ úô 	ÐCÓDñä”K¤
Ó+Ó,ñô Ð÷	ð ú÷ ÷ ñ úsæ   ’™"Á A Á A)ÂBÂBÂ2CÃCÃ<!DÄD&ÅEÅE"Å0F!Æ FÆF	ÆF!Æ!F*Æ8H Ç
!G+Ç+G4	Ç0H È H	È!H?È?IÉJÉ*I6É6I?	É;JÊJÊ$KÊ?KËK	ËKËK$Ë2L'ÌLÌL	ÌL'Ì'L0c                 ó8  — t        t        d¬«      5  t        dt        «       f«      ‚# 1 sw Y   nxY wt        t        d¬«      5  t        dt        «       f«      ‚# 1 sw Y   nxY wt        t        d¬«      5  t        dt        «       f«      } | j                  d«       | ‚# 1 sw Y   nxY wt        t        d¬«      5  t        dt        «       f«      } | j                  d«       | ‚# 1 sw Y   nxY wt	        d«      5  t        t        d¬«      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt	        d«      5  t        t        d¬«      5  t        dt        d«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)	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#   rC   s    r   Ú
test_matchrI   X  s~  € ä	”Z uÔ	-ñ 5Ü˜U¤Z£\ OÓ4Ð4÷5ð 5úô 
”Z wÔ	/ñ 5Ü˜U¤Z£\ OÓ4Ð4÷5ð 5úô 
”Z yÔ	1ñ Ü˜5¤:£< /Ó2ˆØ	�
‰
�9ÔØˆ÷ð úô 
”ZÐ'7Ô	8ñ Ü˜5¤:£< /Ó2ˆØ	�
‰
�9ÔØˆ÷ð úô 	ØIó	
ñ5ô 	”J eÔ,ñ	5ô ˜U¤Z£\ OÓ4Ð4÷5ð 5ú÷ 5÷ 5ñ 5úô 	ð oó	
ñ9ô 	”J eÔ,ñ	9ô ˜U¤Z°Ó%6Ð$7Ó8Ð8÷9ð 9ú÷ 9÷ 9ñ 9úsh   ’(¨1ÁAÁA$Á8)B!Â!B*Â>)C'Ã'C0Ã>D;ÄD&Ä&D/	Ä+D;Ä;EÅFÅ$E;Å;F	Æ FÆFc                 ó@  ‡— t        dt        «       f«      Šdˆfd„} t        | «      }t        t        | ¬«      5  ‰‚# 1 sw Y   nxY wt	        d|› d�«      5  t        t        | ¬«      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)Nr   c                ó   •— | ‰u S rA   r+   )rD   Úexcs    €r   Úis_excztest_check.<locals>.is_exc†  s   ø€ Ø�Cˆxˆr   r9   zcheck z did not return True)rD   zExceptionGroup[ValueError]ÚreturnÚbool)r   r'   r   r   r#   )rM   Úis_exc_reprrL   s     @r   Ú
test_checkrQ   ƒ  s™   ø€ Ü
˜œj›l˜_Ó
-€Cõô   Ó'€KÜ	”Z vÔ	.ñ Øˆ	÷ð úô 	˜V K =Ð0DÐEÓFñ2ä”J fÔ-ñ2ô ˜R¤*£, Ó1Ð1÷	2ð 2ú÷ 2÷ 2ñ 2ús'   ¹<¼AÁBÁ)A?Á?B	ÂBÂBc                 ó  — dd„} d}t        j                  t        t        j                  |«      ¬«      5  t        t        dd¬«       d d d «       t        j                  t        t        j                  |«      ¬«      5  t        t        d| ¬«       d d d «       t        t        t        d¬«      d¬	«      }|5  t        d«      ‚# 1 sw Y   Œ|xY w# 1 sw Y   Œ?xY w# 1 sw Y   nxY w|5  t        d
t        d«      g«      ‚# 1 sw Y   nxY wt        t        d¬	«      5 }t        dt        d«      g«      ‚# 1 sw Y   nxY wt        j                  t        «      r-t        t        d¬«      j                  |j                  «      sJ ‚y y )Nc                 ó   — y)NTr+   rC   s    r   Úmy_checkz,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?   r:   z^foo$r>   r   r&   )rD   ÚobjectrN   rO   )r   r   r'   r   r   r   r   r   rB   ÚvalueÚmatches)rT   r    ÚrgrL   s       r   Útest_unwrapped_match_checkrY   ”  sJ  € óð	Cð ô 
�‰”z¬¯©°3«Ô	8ñ CÜ”J°¸EÕB÷Cä	�‰”z¬¯©°3«Ô	8ñ FÜ”J°¸HÕE÷Fô 
”WœZ¨wÔ7ÈÔ	N€BØ	ñ  Ü˜ÓÐ÷Cð Cú÷Fð Fú÷
 ð  úà	ñ 6Ü˜R¤*¨UÓ"3Ð!4Ó5Ð5÷6ð 6úô 
”Z°Ô	6ð 9¸#Ü˜U¤Z°Ó%6Ð$7Ó8Ð8÷9ð 9úä�#—)‘)œ^Ô,Üœ:¨UÔ3×;Ñ;¸C¿I¹IÔFÐFÑFð -s;   µCÁ>CÂ7CÃCÃCÃC$Ã)D Ä D	ÄD4Ä4D=c                 óÊ   — t        t        «      } | j                  d «      rJ ‚| j                  t        «       «      rJ ‚| j                  t        dt        «       f«      «      sJ ‚y )Nr   )r   r'   rW   r   )rX   s    r   Útest_RaisesGroup_matchesr[   ³  sO   € Ü	”ZÓ	 €BØ�z‰z˜$ÔÐÐØ�z‰zœ*›,Ô'Ð'Ð'Ø�:‰:”n R¬*«,¨Ó9Ô:Ð:Ñ:r   c            	     ó2  — 	 	 	 	 	 	 dd„}  | dt        t        «      «        | dt        t        t        «      «        | dt        t        t        «      «      «        | dt        t        t        d«      «      «        | dt        t        d¬«      «      «        | d	t        t        «      «        | d
t        t        t        «      «      «        | dt        t        t        «      «      «        | dt        t        t        «      t        t        «      «      «       y )Nc                óÂ   — t        j                  t        dt        j                  | «      › d�¬«      5  |5  	 d d d «       d d d «       y # 1 sw Y   ŒxY w# 1 sw Y   y xY w)Nz'^DID NOT RAISE any exception, expected r   r   )r   r   r   r   r   )ÚmessageÚbodys     r   Úcheck_messagez#test_message.<locals>.check_message»  s^   € ô
 �M‰MÜØ?ÄÇ	Á	È'Ó@RÐ?SÐSTÐUôñ	ð
 ñ	ð ÷	÷ 	÷ 	ñ 	ú÷ 	ð 	ú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^   Ústrr_   zRaisesGroup[BaseException]rN   ÚNone)r   r'   r   r;   )r`   s    r   Útest_messagerd   º  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                 ó   — t        d«      5  t        t        «      5  t        dt	        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        t        «      t        t        d¬«      «      5  t        dt        dt        «       g«      t        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        t        t        «      t        t
        «      t        t        «      «      5  t        dt        «       t	        «       t        d	«      t        d
«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      5  t        dt        «       t        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      «      5  t        dt	        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        d¬«      5  t        dt        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        d¬«      «      5  t        dt        d«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        t        t        t        «      5  t        dt        dt        «       t	        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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 groupFr2   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_messagerg   õ  s(  € ô
 	ÐDÓEñ1ä”JÓñ1ô ˜S¤9£; -Ó0Ð0÷	1ð 1ú÷ 1÷ 1ñ 1úô 	ð
_ð ô	
ñ
ô 	”K¤
Ó+¬[¼È3Ô-OÓPñ
ô" ØÜ˜B¤£Ð 0Ó1´<³>ÐBó
ð 	
÷#
ð 
ú÷ 
÷ 
ñ 
úô. 	ðð ô!	
ñ
ô& 	ÜÜ”IÓÜœÓ%Üœ
Ó#ó		
ñ'
ô4 ØÜ‹^œY›[¬*°UÓ*;¼ZÈÓ=NÐOó
ð 	
÷5
ð 
ú÷ 
÷ 
ñ 
úô@ 	ØNó	
ñDô 	”J¤	Ó*ñ	Dô ˜S¤:£<´Ó1AÐ"BÓCÐC÷Dð Dú÷ D÷ Dñ Dúô 	ØJó	
ñ1ô 	”GœJÓ'Ó(ñ	1ô ˜S¤9£; -Ó0Ð0÷1ð 1ú÷ 1÷ 1ñ 1úô 	ð9àô	
ñ8ô 	”J iÔ0ñ8ô ˜Y¬«¨Ó7Ð7÷8ð 8ú÷ 8÷ 8ñ 8úô 	ð9ó	
ñ:ô
 	”G )Ô,Ó-ñ:ô ˜R¤*¨YÓ"7Ð!8Ó9Ð9÷:ð :ú÷ :÷ :ñ :úô 	ðLð ô	
ñTô  	”J¤
¬J¼
ÓCñ!Tô$ ˜R¤.°´j³lÄIÃKÐ5PÓ"QÐ!RÓSÐS÷%Tð Tú÷ T÷ Tñ Túsê   ŒAœ2²;	·AÁAÁ )CÂ	*B3Â3B<	Â8CÃCÃ!:E#Ä3EÅE	ÅE#Å#E,Å:GÆF.Æ.F7	Æ3GÇGÇHÇ3H	È	H	ÈHÈH'È7I4É	IÉI(	É$I4É4I=ÊKÊ!J8Ê8K	Ê=KËKË&MÌ*L/Ì/L8	Ì4MÍMc                 óö  — t        dd¬«      5  t        t        t        t        «      t        «      5  t        dt        dt	        «       t        «       g«      t	        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        dd¬«      5  t        t        t        t        «      «      5  t        dt        dt	        «       t        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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'Fr2   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_indentri   k  sù   € äð:ð. ô1	
ñ&
ô6 	Üœ
¤JÓ/Üó	
ñ7&
ô@ Øä˜r¤I£K´³Ð#@ÓAÜ“ðó
ð 	
÷A&
ð &
ú÷ &
÷ &
ñ &
úôP 	ð?ð ô	
ñ
ô  	Üœ
¤JÓ/ó	
ñ!
ô( Øä˜r¤I£K´³Ð#@ÓAðó
ð 	
÷)
ð 
ú÷ 
÷ 
ñ 
ús:   Ž#A9±3A$Á$A-	Á)A9Á9BÂC/Â0*CÃC#	ÃC/Ã/C8c                 óÐ  — t        d«      5  t        t        t        «      t        «      5  t        dt        dt        dt        «       g«      g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        t        «      t        «      5  t        dt        dt        «       t        dt        «       g«      g«      g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      5  t        t        t        d¬«      t        «      5  t        dt        dt	        «       g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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_errorrl   ¯  sZ  € ô 	ðLó
	
ñ
ô 	”K¤
Ó+¬ZÓ8ñ
ô ØÜ˜B¤°´Z³\°NÓ!CÐ DÓEÐFó
ð 	
÷
ð 
ú÷ 
÷ 
ñ 
úô( 	ðLó	
ñ
ô& 	”K¤
¬JÓ7¼ÓDñ'
ô* ØÜ˜B¤£¬~¸bÄ:Ã<À.Ó/QÐ RÓSÐTó
ð 	
÷+
ð 
ú÷ 
÷ 
ñ 
úô8 	ðLó
	
ñLô 	”K¤	°Ô:¼JÓGñLô ˜R¤.°¼I»K¸=Ó"IÐ!JÓKÐK÷Lð Lú÷ L÷ Lñ LúsX   ŒA+ª,AÁA	ÁA+Á+A4Â#C/Â%5CÃC#	ÃC/Ã/C8Ä EÄ&!EÅE	ÅEÅE%c                 ó¬  — t        dd¬«      5  t        t        t        «      t        t        t        «      «      t        t        t        d¬«      «      t        t        t        «      «      5  t        dt	        d«      t        dt	        d	«      g«      t        dt	        d
«      t	        d«      g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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'Fr2   r%   r   r   Ú(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazExceptions from Trio nurseryÚ(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbÚ(ccccccccccccccccccccccccccccccccccccccccÚ(dddddddddddddddddddddddddddddddddddddddd)r#   r   r'   r   r(   r   r+   r   r   Útest_assert_message_nestedrr   ð  sÜ   € ô 	ð1@ðd ôg4	
ñM
ôl 	Üœ
Ó#Üœ¤JÓ/Ó0Üœ¤	°Ô7Ó8Üœ	¤:Ó.ó		
ñmM
ôz ØäÐDÓEÜØ2ÜÐIÓJÐKóô Ø2ä!Ð"LÓMÜ!Ð"LÓMðóðó
ð 	
÷{M
ð M
ú÷ M
÷ M
ñ M
ús   ŽAC
Á*AB5Â5B>	Â:C
Ã
CÚ
hypothesisz-hypothesis may have monkeypatched _check_repr)Úreasonc            	     óô   — t        j                  t        d¬«      5  t        t	        d„ ¬«      t
        «      5  t        dt        d«      t        d«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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                 ó   — y)NFr+   )Úxs    r   r8   z,test_check_no_patched_repr.<locals>.<lambda>]  s   � r   r9   r   r%   r&   )r   r   r   r   r   r(   r   r'   r+   r   r   Útest_check_no_patched_reprrx   C  st   € ô 	�‰Üð
@ô	
ñIô" 	”G¡/Ô2´IÓ>ñ#Iô& ˜R¤*¨UÓ"3´ZÀÓ5FÐ!GÓHÐH÷'Ið Iú÷ I÷ Iñ Iús   œA.¸!AÁA"	ÁA.Á.A7c                 ó  — t        d«      5  t        t        t        t        t        t        d¬«      «      5  t	        dt        d«      t        d«      t        d«      t        d«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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_examplerz   b  s†   € äðfó	
ñ
ô" 	Üœ
¤J´¼
È%Ô0Pó	
ñ#
ô* Øä˜5Ó!Ü˜5Ó!Ü˜5Ó!Ü˜5Ó!ð	ó
ð 	
÷+
ð 
ú÷ 
÷ 
ñ 
ús   Œ*B ¶5A+Á+A4	Á0B Â B	c                 óB  — t        d«      5  t        t        t        «      5  t	        dt        «       t        «       g«      ‚# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      5  t	        dt        «       t        «       g«      ‚# 1 sw Y   nxY wddd«       n# 1 sw Y   nxY wt        d«      5  t        t        t        «      5  t	        dt        «       t        «       g«      ‚# 1 sw Y   nxY wddd«       y# 1 sw Y   yxY w)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(   rk   r+   r   r   Útest_brief_error_on_one_failr|   ƒ  s  € ô
 	ØLó	
ñ>ô 	”J¤Ó-ñ	>ô ˜R¤*£,´	³Ð!<Ó=Ð=÷>ð >ú÷ >÷ >ñ >úô 	ð<ó		
ñ>ô 	”Iœ|Ó,ñ>ô ˜R¤*£,´	³Ð!<Ó=Ð=÷>ð >ú÷ >÷ >ñ >úô" 	ð:ó		
ñ>ô 	”J¤
Ó+ñ>ô ˜R¤*£,´	³Ð!<Ó=Ð=÷>ð >ú÷ >÷ >ñ >úsX   ŒA¡A Á A		ÁAÁAÁ,B5ÂB Â B)	Â%B5Â5B>ÃDÃ!D Ä D		ÄDÄDc            
     ó¼  — t        d«      5  t        t        t        t        t        «      5  t	        dt        «       t        «       t        «       t        «       g«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        d«      } t        d¬«      }t        d«      5  t        |||«      5  t	        d| | | g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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   )rD   Úms     r   Útest_identity_oopsiesr   °  sÕ   € ô 	ØMó	
ñ
ô 	”J¤
¬J¼	ÓBñ	
ô Ø”“œz›|¬Z«\¼<»>ÐJó
ð 	
÷
ð 
ú÷ 
÷ 
ñ 
úô 	�5Ó€AÜ�eÔ€AäðPó	
ñ,ô* 	�A�q˜!Óñ+,ô. ˜R ! Q¨ Ó+Ð+÷/,ð ,ú÷ ,÷ ,ñ ,ús:   ŒA1«1AÁA%	Á!A1Á1A:ÂCÂ-B=Â=C	ÃCÃCc            	     óf  — t        j                  t        d¬«      5  t        «        d d d «       t        j                  t        dt	        j
                  t        t        «      «      › d�¬«      5  t        t        «       d d d «       t        t        t        «      «      5  t        dt        «       f«      ‚# 1 sw Y   ŒŽxY w# 1 sw Y   ŒCxY w# 1 sw Y   nxY wt        d«      5  t        t        t        «      «      5  t        dt        «       f«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)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   ÚreprrU   r   r   r#   r(   r+   r   r   Útest_matcherr‚   Û  sþ   € Ü	�‰ÜØGô
ñ ô 	Œ	÷	ô
 
�‰ÜØ ¤§¡¬4´«<Ó!8Ð 9Ð9^Ð_ô
ñ ô 	”Œ÷	ô 
”WœZÓ(Ó	)ñ 2Ü˜R¤*£, Ó1Ð1÷ð ú÷
ð ú÷2ð 2úô 	ØIó	
ñ2ô 	”GœIÓ&Ó'ñ	2ô ˜R¤*£, Ó1Ð1÷2ð 2ú÷ 2÷ 2ñ 2úsA   œB4Á.C ÂCÂ4B=Ã C	ÃCÃ#D'Ã<DÄD	ÄD'Ä'D0c                 óŒ  — t        t        t        d«      «      5  t        dt        d«      f«      ‚# 1 sw Y   nxY wt	        d«      5  t        t        t        d«      «      5  t        dt        d«      f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        t        d¬«      «      5  t        dt        d«      f«      ‚# 1 sw Y   nxY wt	        d«      5  t        t        d¬«      «      5  t        dt        d«      f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt        t        t        d¬«      «      5  t        dt        d«      g«      ‚# 1 sw Y   nxY wt	        d«      5  t        t        t        d¬«      «      5  t        dt        d	«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)
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…   ò  s¬  € Ü	”WœZ¨Ó/Ó	0ñ 7Ü˜R¤*¨UÓ"3Ð!5Ó6Ð6÷7ð 7úô 	ØWó	
ñ7ô 	”GœJ¨Ó.Ó/ñ	7ô ˜R¤*¨UÓ"3Ð!5Ó6Ð6÷7ð 7ú÷ 7÷ 7ñ 7úô 
”W 5Ô)Ó	*ñ 7Ü˜R¤*¨UÓ"3Ð!5Ó6Ð6÷7ð 7úô 	ØKó	
ñ7ô 	”G %Ô(Ó)ñ	7ô ˜R¤*¨UÓ"3Ð!5Ó6Ð6÷7ð 7ú÷ 7÷ 7ñ 7úô 
”WœZ¨wÔ7Ó	8ñ 6Ü˜R¤*¨UÓ"3Ð!4Ó5Ð5÷6ð 6úô 	Ø\ó	
ñ7ô 	”GœJ¨gÔ6Ó7ñ	7ô ˜R¤*¨VÓ"4Ð!5Ó6Ð6÷7ð 7ú÷ 7÷ 7ñ 7úsz   š1±:ÁBÁ"A9Á9B	Á>BÂBÂ/CÃCÃDÃ3D
Ä
D	ÄDÄD(ÅEÅE%Å3F:ÆF%Æ%F.	Æ*F:Æ:Gc                 óº  — dd„} t        t        | ¬«      «      5  t        dt        dd«      f«      ‚# 1 sw Y   nxY wdd„}t        t        t        |¬«      «      5  t        dt        dd«      f«      ‚# 1 sw Y   nxY wt	        d|›d�«      5  t        t        t        |¬«      «      5  t        dt        dd«      f«      ‚# 1 sw Y   nxY wd d d «       n# 1 sw Y   nxY wt	        d	|›d
|›d�«      5  t        t        t        t        |¬«      «      «      5  t        dt        dt        dd«      g«      g«      ‚# 1 sw Y   nxY wd d d «       y # 1 sw Y   y xY w)Nc                óD   — t        | t        «      xr | j                  dk(  S ©Né   )rB   ÚOSErrorÚerrnorC   s    r   Úcheck_oserror_and_errno_is_5z8test_Matcher_check.<locals>.check_oserror_and_errno_is_5  s   € Ü˜!œWÓ%Ò6¨!¯'©'°Q©,Ð6r   r9   r   r‰   c                ó    — | j                   dk(  S rˆ   )r‹   rC   s    r   Úcheck_errno_is_5z,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=)rD   ÚBaseExceptionrN   rO   )rD   rŠ   rN   rO   )r   r   r   rŠ   r#   )rŒ   rŽ   s     r   Útest_Matcher_checkr‘     sp  € ó7ô 
”WÐ#?Ô@Ó	Añ 4Ü˜R¤'¨!¨R£.Ð!2Ó3Ð3÷4ð 4úóô 
”WœWÐ,<Ô=Ó	>ñ 4Ü˜R¤'¨!¨R£.Ð!2Ó3Ð3÷4ð 4úô
 	Ø%Ð&6Ð%9Ð9UÐVó	
ñ4ô 	”GœGÐ+;Ô<Ó=ñ	4ô ˜R¤'¨!¨R£.Ð!2Ó3Ð3÷4ð 4ú÷ 4÷ 4ñ 4úô 	Ø1Ð2BÐ1EÐE`ÐaqÐ`tð  uQð  Ró	
ñIô 	”K¤¬Ð7GÔ HÓIÓJñ	Iô ˜R¤.°´g¸aÀ³nÐ5EÓ"FÐ!GÓHÐH÷Ið Iú÷ I÷ Iñ IúsP   š2²;ÁA4Á4A=ÂCÂ*CÃC	ÃCÃC Ã5$EÄ#D<Ä<E	ÅEÅEc                 ó®  — t        t        t        «      «      dk(  sJ ‚t        t        d¬«      «      dk(  sJ ‚t        j                  dd«      } t        t        | ¬«      «      dk(  sJ ‚t        j                  dt        j
                  «      }t        t        |¬«      «      d|›d	�k(  sJ ‚t        t        t        d
t        ¬«      «      dt        ›d	�k(  sJ ‚y )NzMatcher(ValueError)ú[a-z]r   zMatcher(match='[a-z]')Únoflagr   zMatcher(match='noflag')zMatcher(match=ú)r   ©r   r:   z&Matcher(ValueError, match='re', check=)rb   r   r'   r   ÚcompileÚ
IGNORECASErO   )Úpattern_no_flagsÚpattern_flagss     r   Útest_matcher_tostringr›   6  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                 ó´   — dd„}  | d«        | d«        | d«        | d«        | d«       t        t        t        dt        ¬«      «      d	t        ›d
�k(  sJ ‚y )Nc                ó^   — t        | «      }| t        |«      cxk(  rt        |«      k(  sJ ‚ J ‚y rA   )Úevalrb   r�   )r   Úevaleds     r   Úcheck_str_and_reprz5test_raisesgroup_tostring.<locals>.check_str_and_reprD  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   rb   rN   rc   )rb   r   r'   rO   )r    s    r   Útest_raisesgroup_tostringr¡   C  sf   € ó0ñ Ð0Ô1ÙÐ=Ô>ÙÐ9Ô:ÙÐFÔGÙÐ>Ô?ô 	ŒKœ
¨'¼Ô>Ó?Ø:¼4¸(À!ÐDò	Eðñ	Er   c                óÚ  — | j                  t        j                  j                  dt        j                  j                  j                  «       t        j                  j                  t        «      5 }t        dt        d«      f«      ‚# 1 sw Y   nxY wj                  t        u sJ ‚|j                  j                  d   j                  dk(  sJ ‚t        |j                  t        «      sJ ‚y )NÚExceptionInfor   Úhellor   )r¤   )ÚsetattrÚtrioÚtestingÚ_raises_groupÚ_ExceptionInfor   r'   r   ÚtyperV   r6   ÚargsrB   Útbr   )ÚmonkeypatchÚexcinfos     r   Útest__ExceptionInfor¯   T  s·   € Ø×ÑÜ�‰×"Ñ"ØÜ�‰×"Ñ"×1Ñ1ôô
 
�‰×	!Ñ	!¤*Ó	-ð 9°Ü˜R¤*¨WÓ"5Ð!7Ó8Ð8÷9ð 9úà�<‰<œ>Ñ)Ð)Ð)Ø�=‰=×#Ñ# AÑ&×+Ñ+¨zÒ9Ð9Ð9Ü�g—j‘j¤-Ô0Ð0Ñ0s   Á1BÂB)r   rb   rN   rb   )T)r    rb   r!   rO   rN   zRaisesContext[AssertionError])rN   rc   )r­   zpytest.MonkeyPatchrN   rc   )1Ú
__future__r   r   ÚsysÚtypesr   Útypingr   r   r¦   Útrio.testingr   r   Útrio.testing._raises_groupr   Úversion_infoÚexceptiongroupr   r   Ú_pytest.python_apir   r   r#   r,   r.   r<   rE   rI   rQ   rY   r[   rd   rg   ri   rl   rr   ÚmarkÚskipifÚmodulesrx   rz   r|   r   r‚   r…   r‘   r›   r¡   r¯   r+   r   r   ú<module>r¼      s#  ðÝ "ã 	Û 
Ý Ý  ã ã ß -Ý 4à×Ñ�gÒßAáÝ0ó$ð
 "&ð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   