+
    üÐjk&  ã                  óÌ   € ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
  ! R R]
P                  4      t ! R R	]
P                  4      t ! R
 R]
P                  4      tR# )é    )ÚannotationsN)ÚSequence)Úerror)Úunittestc                  óÈ  € ] tR t^t$ Rt. R]P                  . / 3NR]P                  R./ 3NR]P                  RR./ 3NR]P                  RR	]P
                  ! R
4      3/ 3NR]P                  . / 3NR]P                  RR./ 3NR]P                  . / 3NR]P                  RR./ 3NR]P                  . / 3NR]P                  R./ 3NR]P                  . RR/3NR]P                  RR./ 3NR]P                  . / 3NR]P                  R./ 3NR]P                  RR./ 3NR]P                  . / 3NR]P                  . / 3NR]P                  . / 3NR]P                   . / 3NR]P"                  . / 3NR]P$                  . / 3NR]P&                  . / 3NR]P(                  . / 3NR ]P*                  . / 3NR!]P,                  . / 3NR"]P,                  RR./ 3NR#]P.                  . / 3NR$]P.                  RR./ 3NR%]P0                  . / 3NR&]P2                  . / 3NR']P2                  RR./ 3NR(]P4                  . / 3NR)]P4                  R*R+./ 3NR,]P6                  R-./ 3NR.]P8                  . / 3NR/]P8                  . R0^*/3NR1]P8                  . R2R3/3NR4]P:                  . / 3NR5]P:                  R*R6./ 3NR7]P<                  . / 3NR8]P<                  R9R:./ 3NtR;] R<&   R= R> lt!R? R@ lt"RAt#R-# )BÚStringificationTestsz6Test that the exceptions have useful stringifications.z*An error occurred binding to an interface.z/An error occurred binding to an interface: foo.Úfooz3An error occurred binding to an interface: foo bar.Úbarz"Couldn't listen on eth0:4242: Foo.Úeth0i’  ÚFoozMessage is too long to send.z%Message is too long to send: foo bar.zDNS lookup failed.zDNS lookup failed: foo bar.z#An error occurred while connecting.z0An error occurred while connecting: someOsError.ÚsomeOsErrorz(An error occurred while connecting: foo.Ústringz5An error occurred while connecting: someOsError: foo.zCouldn't bind.zCouldn't bind: someOsError.z Couldn't bind: someOsError: foo.zHostname couldn't be looked up.zNo route to host.z%Connection was refused by other side.zTCP connection timed out.z%File used for UNIX socket is no good.z&Service name given as port is unknown.zUser aborted connection.z'User timeout caused connection failure.zAn SSL error occurred.z=Connection to the other side was lost in a non-clean fashion.zFConnection to the other side was lost in a non-clean fashion: foo bar.zConnection was closed cleanly.z'Connection was closed cleanly: foo bar.zUh.z(Tried to cancel an already-called event.z1Tried to cancel an already-called event: foo bar.z+Tried to cancel an already-cancelled event.z0Tried to cancel an already-cancelled event: x 2.ÚxÚ2zOA process has ended without apparent errors: process finished with exit code 0.NzCA process has ended with a probable error condition: process ended.zUA process has ended with a probable error condition: process ended with exit code 42.ÚexitCodezTA process has ended with a probable error condition: process ended by signal SIGBUS.ÚsignalÚSIGBUSzFThe Connector was not connecting when it was asked to stop connecting.zLThe Connector was not connecting when it was asked to stop connecting: x 13.Ú13z?The Port was not listening when it was asked to stop listening.zEThe Port was not listening when it was asked to stop listening: a 12.ÚaÚ12z_list[tuple[str, type[Exception], Sequence[str | int | Exception | None], dict[str, str | int]]]ÚlistOfTestsc               ó   € V ^8„  d   QhRR/# ©é   ÚreturnÚNone© )Úformats   "Ú9/usr/lib/python3/dist-packages/twisted/test/test_error.pyÚ__annotate__Ú!StringificationTests.__annotate__¸   s   € ÷ Fñ F˜Tñ Fó    c           
     	ó¶   € V P                    FH  pV^ ,          pV^,          pV^,          pV^,          pV P                  \        V! V/ VB 4      V4       KJ  	  R# )r   N)r   ÚassertEqualÚstr)ÚselfÚentryÚoutputÚ	exceptionÚargsÚkwargss   &     r   ÚtestThemAllÚ StringificationTests.testThemAll¸   sU   € Ø×%Ô%ˆEØ˜1•XˆFØ˜a�ˆIØ˜•8ˆDØ˜1•XˆFà×ÑœS¡¨DÐ!;°FÑ!;Ó<¸fÖEó &r"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    r!   Á   s   € ÷ *ñ *¨tñ *r"   c                ó~   € \        4       p\        P                  ! V4      pV P                  VP                  V4       R# )z@
L{error.ConnectingCancelledError} has an C{address} attribute.
N)Úobjectr   ÚConnectingCancelledErrorÚassertIsÚaddress)r&   r3   Úes   &  r   Útest_connectingCancelledErrorÚ2StringificationTests.test_connectingCancelledErrorÁ   s-   € ô “(ˆÜ×*Ò*¨7Ó3ˆØ�‰�a—i‘i Ö)r"   r   )$Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú	BindErrorÚCannotListenErrorÚsocketÚMessageLengthErrorÚDNSLookupErrorÚConnectErrorÚConnectBindErrorÚUnknownHostErrorÚNoRouteErrorÚConnectionRefusedErrorÚTCPTimedOutErrorÚBadFileErrorÚServiceNameUnknownErrorÚ	UserErrorÚTimeoutErrorÚSSLErrorÚConnectionLostÚConnectionDoneÚConnectionFdescWentAwayÚAlreadyCalledÚAlreadyCancelledÚProcessDoneÚProcessTerminatedÚNotConnectingErrorÚNotListeningErrorr   Ú__annotations__r,   r5   Ú__static_attributes__r   r"   r   r   r      sc  ‡ Ù@ð^	à	5°u·±ÈÈBÐOð^	ð >Ø�O‰OØˆGØð		
ð^	ð BØ�O‰OØ�EˆNØð		
ð^	ð  1Ø×#Ñ#Ø�T˜6Ÿ<š<¨Ó.Ð/Øð		
ð^	ð* 
(¨×)AÑ)AÀ2ÀrÐJð+^	ð. 4Ø×$Ñ$Ø�EˆNØð		
ð-^	ð8 
˜u×3Ñ3°R¸Ð<ð9^	ð: 
'¨×(<Ñ(<¸uÀe¸nÈbÐQð;^	ð< 
/°×0BÑ0BÀBÈÐKð=^	ð@ ?Ø×ÑØˆOØð		
ð?^	ðL 7Ø×ÑØØ�uÐð		
ðK^	ðX DØ×ÑØ˜EÐ"Øð		
ðW^	ðb 
˜5×1Ñ1°2°rÐ:ðc^	ðd 
'¨×(>Ñ(>ÀÀÐQSÐTðe^	ðh /Ø×"Ñ"Ø˜EÐ"Øð		
ðg^	ðr 
+¨E×,BÑ,BÀBÈÐKðs^	ðt 
˜e×0Ñ0°"°bÐ9ðu^	ðv 
1°%×2NÑ2NÐPRÐTVÐWðw^	ðx 
% e×&<Ñ&<¸bÀ"ÐEðy^	ðz 
1°%×2DÑ2DÀbÈ"ÐMð{^	ð~ 5Ø×)Ñ)ØØð		
ð}^	ðH 
$ U§_¡_°b¸"Ð=ðI^	ðJ 
3°E×4FÑ4FÈÈBÐOðK^	ðL 
" 5§>¡>°2°rÐ:ðM^	ðP LØ× Ñ ØØð		
ðO^	ð\ UØ× Ñ Ø�EˆNØð		
ð[^	ðf 
*¨5×+?Ñ+?ÀÀRÐHðg^	ðj 6Ø× Ñ Ø�EˆNØð		
ði^	ðv Ø×)Ñ)ØØð		
ðu^	ð@ 
4°U×5HÑ5HÈ"ÈbÐQðA^	ðD @Ø×ÑØ�EˆNØð		
ðC^	ðN 
7¸×8NÑ8NÐPRÐTVÐWðO^	ðR ?Ø×"Ñ"Ø�#ˆJØð		
ðQ^	ð^ ^Ø×ÑØˆFØð		
ð]^	ðj RØ×#Ñ#ØØð		
ði^	ðv dØ×#Ñ#ØØ˜Ðð		
ðu^	ðB cØ×#Ñ#ØØ�xÐ ð		
ðA^	ðN UØ×$Ñ$ØØð		
ðM^	ðZ [Ø×$Ñ$Ø�$ˆKØð		
ðY^	ðf NØ×#Ñ#ØØð		
ðe^	ðr TØ×#Ñ#Ø�$ˆKØð		
ðq^	ð ð ó eõNF÷*ñ *r"   r   c                  ó>   € ] tR t^ÊtRtR R ltR R ltR R ltRtR	# )
ÚSubclassingTestsz5
Some exceptions are subclasses of other exceptions.
c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    ÚSubclassingTests.__annotate__Ï   ó   € ÷ Rñ R¸tñ Rr"   c                ót   € V P                  \        \        P                  \        P                  4      4       R# )zG
L{error.ConnectionClosed} is a superclass of L{error.ConnectionLost}.
N)Ú
assertTrueÚ
issubclassr   rL   ÚConnectionClosed©r&   s   &r   Ú-test_connectionLostSubclassOfConnectionClosedÚ>SubclassingTests.test_connectionLostSubclassOfConnectionClosedÏ   ó#   € ð 	�‰œ
¤5×#7Ñ#7¼×9OÑ9OÓPÖQr"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    rZ   Õ   r[   r"   c                ót   € V P                  \        \        P                  \        P                  4      4       R# )zG
L{error.ConnectionClosed} is a superclass of L{error.ConnectionDone}.
N)r]   r^   r   rM   r_   r`   s   &r   Ú-test_connectionDoneSubclassOfConnectionClosedÚ>SubclassingTests.test_connectionDoneSubclassOfConnectionClosedÕ   rc   r"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    rZ   Û   s   € ÷ Kñ K¸dñ Kr"   c                ó`   € V P                  \        \        P                  \        4      4       R# )z@
L{ValueError} is a superclass of L{error.InvalidAddressError}.
N)r]   r^   r   ÚInvalidAddressErrorÚ
ValueErrorr`   s   &r   Ú,test_invalidAddressErrorSubclassOfValueErrorÚ=SubclassingTests.test_invalidAddressErrorSubclassOfValueErrorÛ   s   € ð 	�‰œ
¤5×#<Ñ#<¼jÓIÖJr"   r   N)	r7   r8   r9   r:   r;   ra   rf   rl   rV   r   r"   r   rX   rX   Ê   s   † ñõRõR÷Kñ Kr"   rX   c                  óV   € ] tR t^âtRtR R ltR R ltR R ltR R	 ltR
 R lt	Rt
R# )ÚGetConnectErrorTestsz’
Given an exception instance thrown by C{socket.connect},
L{error.getConnectError} returns the appropriate high-level Twisted
exception instance.
c               ó$   € V ^8„  d   QhRRRRRR/# )r   ÚerrnoÚintÚexpectedClassútype[error.ConnectError]r   r   r   )r   s   "r   r    Ú!GetConnectErrorTests.__annotate__é   s)   € ÷ 
Lñ 
LØð
LØ)Að
Là	ñ
Lr"   c                ó`   € VR3p\         P                  ! V4      pV P                  VRWB4       R# )zŠ
When called with a tuple with the given errno,
L{error.getConnectError} returns an exception which is an instance of
the expected class.
ÚlalalaN)r   ÚgetConnectErrorÚassertCorrectException)r&   rq   rs   r4   Úresults   &&&  r   ÚassertErrnoExceptionÚ)GetConnectErrorTests.assertErrnoExceptioné   s0   € ð �HÐˆÜ×&Ò& qÓ)ˆØ×#Ñ# E¨8°VÖKr"   c          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )r   rq   z
int | NoneÚmessager0   rz   zerror.ConnectErrorrs   rt   r   r   r   )r   s   "r   r    ru   õ   s<   € ÷ 2ñ 2àð2ð ð2ð #ð	2ð
 0ð2ð 
ñ2r"   c                ó°   € V P                  VP                  V4       V P                  VP                  V4       V P                  VP                  V34       R# )zˆ
The given result of L{error.getConnectError} has the given attributes
(C{osError} and C{args}), and is an instance of the given class.
N)r$   Ú	__class__ÚosErrorr*   )r&   rq   r~   rz   rs   s   &&&&&r   ry   Ú+GetConnectErrorTests.assertCorrectExceptionõ   sD   € ð 	×Ñ˜×)Ñ)¨=Ô9Ø×Ñ˜Ÿ™¨Ô/Ø×Ñ˜Ÿ™ w jÖ1r"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    ru     s   € ÷ Pñ P˜Dñ Pr"   c                ó   € V P                  \        P                  \        P                  4       V P                  \        P
                  \        P                  4       V P                  \        P                  \        P                  4       \        P                  R8X  d_   V P                  \        P                  \        P                  4       V P                  \        P                  \        P                  4       R# R# )zG
L{error.getConnectError} converts based on errno for C{socket.error}.
Úwin32N)r{   rq   ÚENETUNREACHr   rD   ÚECONNREFUSEDrE   Ú	ETIMEDOUTrF   ÚsysÚplatformÚWSAECONNREFUSEDÚWSAENETUNREACHr`   s   &r   Ú
test_errnoÚGetConnectErrorTests.test_errno  s¤   € ð 	×!Ñ!¤%×"3Ñ"3´U×5GÑ5GÔHØ×!Ñ!¤%×"4Ñ"4´e×6RÑ6RÔSØ×!Ñ!¤%§/¡/´5×3IÑ3IÔJÜ�<‰<˜7Ô"Ø×%Ñ%Ü×%Ñ%¤u×'CÑ'Côð ×%Ñ%¤e×&:Ñ&:¼E×<NÑ<NÖOñ	 #r"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    ru     s   € ÷ Qñ Q˜tñ Qr"   c                ó    € \         P                  ! \        P                  ! ^R4      4      pV P	                  ^RV\         P
                  4       R# )zg
L{error.getConnectError} converts to a L{error.UnknownHostError} given
a C{socket.gaierror} instance.
ÚhelloN)r   rx   r>   Úgaierrorry   rC   )r&   rz   s   & r   Útest_gaierrorÚ"GetConnectErrorTests.test_gaierror  s9   € ô
 ×&Ò&¤v§¢°r¸7Ó'CÓDˆØ×#Ñ# B¨°¼×9OÑ9OÖPr"   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r    ru     s   € ÷ Iñ I˜tñ Ir"   c                óˆ   € \        4       p\        P                  ! V4      pV P                  RW\        P                  4       R# )zi
L{error.getConnectError} converts to a L{error.ConnectError} given
an argument that cannot be unpacked.
N)Ú	Exceptionr   rx   ry   rA   )r&   r4   rz   s   &  r   Útest_nonTupleÚ"GetConnectErrorTests.test_nonTuple  s3   € ô
 ‹KˆÜ×&Ò& qÓ)ˆØ×#Ñ# D¨!´U×5GÑ5GÖHr"   r   N)r7   r8   r9   r:   r;   r{   ry   r�   r“   r˜   rV   r   r"   r   ro   ro   â   s*   † ñõ
Lõ2õ"PõQ÷Iñ Ir"   ro   )Ú
__future__r   rq   r>   r‰   Útypingr   Útwisted.internetr   Útwisted.trialr   ÚSynchronousTestCaser   rX   ro   r   r"   r   Ú<module>rŸ      s[   ðõ #ã Û Û 
Ý å "Ý "ôy*˜8×7Ñ7ô y*ôxK�x×3Ñ3ô Kô0@I˜8×7Ñ7ö @Ir"   