+
    ôÉÍjàà  ã                   ó   € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIHt ^ RIHt ^ RIHt ^ R	IH t  ^ R
IH!t! ^ RIH"t" ^ RIH#t# ^ RI$H%t% ^ RI$H&t& ^ RI$H't' ^ RI(H)t) ^ RI(H*t* ^ RI(H+t+ ^ RI(H,t, ^ RI(H-t- ^ RI(H.t. ^ RI(H/t/ ^ RI(H0t0 ]+'       d   ^ RI1t1M^ RI2t1 ^ RI1H3t3 ]Pn                  R´8¼  d   ^ RI8t8MRt8. RNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NR3NR4NR5NR6NR7NR8NR9NR:NR;NR<NR=NR>NR?NR@NRANRBNRCNRDNRENRFNRGNRHNRINRJNRKNRLNRMNRNNRONRPNRQNRRNRSNRTNRUNRVNRWNRXNRYNRZNR[NR\NR]NR^Nt9R_]Pt                  9   t;R]
Px                  9   t=R`]
Px                  9   ;'       g    Ra]
Px                  9   t>]=;'       g    ]>t?]P€                  Rµ8„  tA^
tBR¶tCR·tD^tE]?'       d%   ]B^,          tB]E^,          tE]C^,          tC]D^,          tD]
PŒ                  Rb8X  d   Rc]
PŽ                  ! 4       ,          tHMRd]
PŽ                  ! 4       ,          tH].! Re4      tI]+'       d   RfP•                  RgRh4      tKMRitK]P˜                  ! 4       P›                  4       R¸9   tN]
Pž                  P¡                  ]
Pž                  P£                  ]
Pž                  P¥                  ]S4      RjRj4      4      tT]
Pž                  P£                  ]TRk4      tU]
Pž                  P¡                  ]
Pž                  P¥                  ]S4      4      tV]!;'       d    ]"'       * tW]X! ]P²                  Rl4      tZ]X! ]Rm4      t[]X! ]Rn4      t\]X! ]P²                  Ro4      t]]X! ]P²                  Rp4      t^]X! ]P²                  Rq4      t_]X! ]Rr4      t`]X! ]P²                  Rs4      ta]X! ]P²                  Rt4      tb]X! ]P²                  Ru4      tc]X! ]Rv4      td ]d;'       d    ]e! ]PÌ                  ! 4       4      tg]X! ]Rx4      ti]X! ]Ry4      tj]X! ]P²                  Rz4      tk] ;'       g    ];'       d    ]
PØ                  ! 4       ^ 8g  tmR{ tn]n! 4       to]p! ]
Pâ                  R|4      tr]Pæ                  ! ]rPè                  4       ]u! ]4       U u. uF%  p T Pí                  R}4      '       g   K  ]w! ]T 4      NK'  	  up tx]w! ]R~]y! 4       4      tz]{! 4       t|]{! 4       t} ! R R€]Pü                  4      tR� t€]€R¹R‚ l4       t�]€Rƒ 4       t‚R„ tƒ]€R… 4       t„]€R† 4       t…]EP                  ]E3R‡ lt‡RºRˆ ltˆR‰ t‰RŠ tŠ ! R‹ RŒ]y4      t‹]‹! ]EP                  R]ER�RŽ7      R� 4       t�]‹! ]*]Ž3R]ER�RŽ7      R»R� l4       t�]‹! ]ŽR]ER�RŽ7      R‘ 4       t�R’ t‘R“ t’]EP&                  R” 4       t”R¹R• lt•R¼R– lt– ! R— R˜]1EP.                  4      t—]—]1n—         ! R™ RB]—4      t˜]1EP2                  ! ];Rš4       ! R› RA]˜4      4       tšRœ t›R� tœ ! Rž RC4      t� ! RŸ RD4      tžR  tŸ]B3R¡ lt R¹R¢ lt¡R¹R£ lt¢R½R¤ lt£]]R3R¥ lt¤]P6                  3R¦ lt¥R¾R§ lt¦R¨ t§]EP&                  R© 4       t¨Rª t©R« tªR¬ t«R­ t¬R® t­R¯ t®]!'       d   ]EP&                  R¿R° l4       t¯M]EP&                  R¿R± l4       t¯]Pæ                  R² 4       t°]!'       d"   ]P                  ! ]EP                  R³ 4       R# R#   ]4 dS    ]Pj                  ! 4       ;_uu_ 4        ]Pl                  ! R4       ^ RI3t3RRR4        EKW    + '       g   i      ELi; ii ; i  ]h d    Rwtg ELAi ; iu up i )Àz
Test utilities.
)Úprint_functionN)ÚAF_INET)ÚAF_INET6)ÚSOCK_STREAM)ÚAIX)ÚFREEBSD)ÚLINUX)ÚMACOS)ÚPOSIX)ÚSUNOS)ÚWINDOWS)Úbytes2human)Úprint_color)Úsupports_ipv6)ÚFileExistsError)ÚFileNotFoundError)ÚPY3)Úrange)Úsuper)Úu)Úunicode)Úwhich)ÚmockÚignoreÚAPPVEYORÚDEVNULLÚGLOBAL_TIMEOUTÚTOLERANCE_SYS_MEMÚ
NO_RETRIESÚPYPYÚ
PYTHON_EXEÚROOT_DIRÚSCRIPTS_DIRÚTESTFN_PREFIXÚUNICODE_SUFFIXÚINVALID_UNICODE_SUFFIXÚ
CI_TESTINGÚVALID_PROC_STATUSESÚTOLERANCE_DISK_USAGEÚIS_64BITÚHAS_CPU_AFFINITYÚHAS_CPU_FREQÚHAS_ENVIRONÚHAS_PROC_IO_COUNTERSÚ
HAS_IONICEÚHAS_MEMORY_MAPSÚHAS_PROC_CPU_NUMÚ
HAS_RLIMITÚHAS_SENSORS_BATTERYÚHAS_BATTERYÚHAS_SENSORS_FANSÚHAS_SENSORS_TEMPERATURESÚHAS_MEMORY_FULL_INFOÚpyrunÚ	terminateÚreap_childrenÚspawn_testprocÚspawn_zombieÚspawn_children_pairÚThreadTaskunittestÚskip_on_access_deniedÚskip_on_not_implementedÚretry_on_failureÚTestMemoryLeakÚPsutilTestCaseÚprocess_namespaceÚsystem_namespaceÚprint_sysinfoÚinstall_pipÚinstall_test_depsÚchdirÚsafe_rmpathÚ
create_exeÚdecode_pathÚencode_pathÚ
get_testfnÚ
get_winverÚkernel_versionÚ
call_untilÚwait_for_pidÚwait_for_fileÚcheck_net_addressÚget_free_portÚbind_socketÚbind_unix_socketÚtcp_socketpairÚunix_socketpairÚcreate_socketsÚreload_moduleÚimport_module_by_pathÚwarnÚcopyload_shared_libÚis_namedtupleÚ__pypy__ÚGITHUB_ACTIONSÚCIBUILDWHEELÚjavaz$psutil-%s-z@psutil-%s-u   -Æ’Å‘Å‘s   fÀ€Úutf8Úsurrogateescapeu   fÃ€Â€z..ÚscriptsÚcpu_affinityÚcpu_freqÚ
getloadavgÚenvironÚioniceÚmemory_mapsÚnet_io_countersÚcpu_numÚio_countersÚrlimitÚsensors_batteryFÚsensors_fansÚsensors_temperaturesÚthreadsc                  ój  € R  p \         '       ds   \        '       d#   \        '       d   \        R4      # \        R4      # \        '       d.   \
        P                  P                  \        P                  4      # \        R4      # \        '       dÍ   V ! \        P                  4      ;'       gš    V ! \
        P                  P                  \        P                  4      4      ;'       g_    V ! \        R\        P                  R,          ,          4      4      ;'       g*    V ! \        P                  ! 4       P                  4       4      pV'       g   \        R4      hV# \
        P                  P                  \        P                  4      p\
        P                  P!                  V4      '       g   Q V4       hV# )c                 óš   €  \         P                  ! V R .\         P                  \         P                  R7       V #   \         d     R# i ; i)z-V)ÚstdoutÚstderrN)Ú
subprocessÚ
check_callÚPIPEÚ	Exception)Úexes   &ÚK/opt/data/home/.local/lib/python3.14/site-packages/psutil/tests/__init__.pyÚattemptÚ_get_py_exe.<locals>.attemptÄ   sD   € ð	Ü×!Ò!Ø�d�¤J§O¡O¼J¿O¹OõMð
 ˆJøô ô 	Úð	ús   ‚7; »A
Á	A
Úpypy3ÚpypyÚpythonzpython%s.%sºNé   Nz"can't find python exe real abspath)r`   r   r   r   r   ÚosÚpathÚrealpathÚsysÚ
executabler	   Úversion_infoÚpsutilÚProcessr|   Ú
ValueErrorÚexists)r~   r|   s     r}   Ú_get_py_exer�   Ã   s)  € ò÷ ƒ~ß‹4ß%(£S”5˜“>Ð;¬e°F«mÐ;ß‹WÜ—7‘7×#Ñ#¤C§N¡NÓ3Ð3ä˜“?Ð"ß	‹á”C—N‘NÓ#÷ ,ð ,Ù”B—G‘G×$Ñ$¤S§^¡^Ó4Ó5÷,ð ,á”E˜-¬#×*:Ñ*:¸2Õ*>Õ>Ó?Ó@÷,ð ,ñ ”F—N’NÓ$×(Ñ(Ó*Ó+ð	 	÷
 ÜÐAÓBÐBØˆ
ä�g‰g×ÑœsŸ~™~Ó.ˆÜ�w‰w�~‰~˜c×"Ò"Ð' CÓ'Ð"Øˆ
ó    zr+ÚSTATUS_ÚAF_UNIXc                   óZ   a a€ ] tR t^ôt oRtV 3R ltR tR tR tR t	R t
R tR	tVtV ;t# )
Ú
ThreadTaskz6A thread task which does nothing expect staying alive.c                óˆ   <€ \        4       P                  4        R V n        RV n        \        P
                  ! 4       V n        R# )Fçü©ñÒMbP?N)r   Ú__init__Ú_runningÚ	_intervalÚ	threadingÚEventÚ_flag)ÚselfÚ	__class__s   &€r}   r—   ÚThreadTask.__init__÷   s-   ø€ Ü‹×ÑÔØˆŒØˆŒÜ—_’_Ó&ˆŽ
r�   c                ój   € V P                   P                  pR WP                  \        V 4      3,          # )z<%s running=%s at %#x>)rž   Ú__name__r˜   Úid)r�   Únames   & r}   Ú__repr__ÚThreadTask.__repr__ý   s)   € Ø�~‰~×&Ñ&ˆØ'¨4·±ÄÀ4ÃÐ*IÕIÐIr�   c                ó&   € V P                  4        V # ©N)Ústart©r�   s   &r}   Ú	__enter__ÚThreadTask.__enter__  s   € Ø�
‰
ŒØˆr�   c                ó&   € V P                  4        R # r§   )Ústop)r�   ÚargsÚkwargss   &*,r}   Ú__exit__ÚThreadTask.__exit__  s   € Ø�	‰	Žr�   c                ó²   € V P                   '       d   \        R4      h\        P                  P	                  V 4       V P
                  P                  4        R# )zoStart thread and keep it running until an explicit
stop() request. Polls for shutdown every 'timeout' seconds.
zalready startedN)r˜   r�   rš   ÚThreadr¨   rœ   Úwaitr©   s   &r}   r¨   ÚThreadTask.start  s;   € ð �=�=ˆ=ÜÐ.Ó/Ð/Ü×Ñ×Ñ˜tÔ$Ø�
‰
�‰Ör�   c                ó°   € R V n         V P                  P                  4        V P                   '       d#   \        P                  ! V P
                  4       K4  R# )TN)r˜   rœ   ÚsetÚtimeÚsleepr™   r©   s   &r}   ÚrunÚThreadTask.run  s5   € ØˆŒØ�
‰
�‰ÔØ�m�mˆmÜ�JŠJ�t—~‘~Ö&ñ r�   c                ón   € V P                   '       g   \        R4      hRV n         V P                  4        R# )z8Stop thread execution and and waits until it is stopped.zalready stoppedFN)r˜   r�   Újoinr©   s   &r}   r­   ÚThreadTask.stop  s'   € à�}�}ˆ}ÜÐ.Ó/Ð/ØˆŒØ�	‰	Žr�   )rœ   r™   r˜   )r¡   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r—   r¤   rª   r°   r¨   rº   r­   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)rž   Ú__classdict__s   @@r}   r”   r”   ô   s1   ù‡ € Ù@õ'òJòòòò'÷ò r�   r”   c                 óF   a € \         P                  ! S 4      V 3R  l4       pV# )c                  óJ   <€  S! V / VB #   \          d    \        4        h i ; ir§   )r{   r9   )r®   r¯   Úfuns   *,€r}   ÚwrapperÚ&_reap_children_on_err.<locals>.wrapper%  s/   ø€ ð	Ù˜Ð' Ñ'Ð'øÜô 	ÜŒOØð	ús   ƒ ‹"©Ú	functoolsÚwraps)rÉ   rÊ   s   f r}   Ú_reap_children_on_errrÏ   $  s%   ø€ Ü‡_‚_�SÓôó ðð €Nr�   c                ó°  € VP                  R\        4       VP                  R\        4       VP                  R\        P                  ! 4       4       VP                  R\        P                  4       \
        '       d   RpVP                  RV4       V fp   \        4       p \        V4       RV,          p\        RV.p \        P                  ! V 3/ VB p\        P                  V4       \        VR	R	R
7       \        V4       V# \        P                  ! V 3/ VB p\        P                  V4       \        VP                  4       V#   \        T4       i ; i)aa  Creates a python subprocess which does nothing for 60 secs and
return it as a subprocess.Popen instance.
If "cmd" is specified that is used instead of python.
By default stdin and stdout are redirected to /dev/null.
It also attemps to make sure the process is in a reasonably
initialized state.
The process is registered for cleanup on reap_children().
Ústdinrv   ÚcwdÚenvé   Úcreationflagsz:from time import sleep;open(r'%s', 'w').close();sleep(60);z-cT©ÚdeleteÚempty)Ú
setdefaultr   r…   Úgetcwdri   r   rM   rI   r    rx   ÚPopenÚ_subprocesses_startedÚaddrR   rQ   Úpid)ÚcmdÚkwdsÚCREATE_NO_WINDOWÚtestfnÚpylineÚsprocs   &,    r}   r:   r:   /  s  € ð 	‡O�O�GœWÔ%Ø‡O�O�HœgÔ&Ø‡O�O�Eœ2Ÿ9š9›;Ô'Ø‡O�O�Eœ2Ÿ:™:Ô&ßƒwð %ÐØ�‰˜Ð)9Ô:Ø
‚{Ü“ˆð
	 Ü˜Ôð"à$*õ+ˆFô ˜t VÐ,ˆCÜ×$Ò$ SÑ1¨DÑ1ˆEÜ!×%Ñ% eÔ,Ü˜&¨°TÕ:ä˜Ôð
 €Lô × Ò  Ñ-¨Ñ-ˆÜ×!Ñ! %Ô(Ü�U—Y‘YÔØ€Løô ˜Õús   Â!AE ÅEc                 óX  € Rp \        \        P                  ! 4       R7      p \        P                  ! R\        P
                  P                  V4      : R\        : R24      p\        '       d   \        V^ R7      w  r0M\        V4      w  r0\        P                  ! VP                  4      p\        \        VRRR	7      4      p\        P!                  V4       \        P                  ! V4      pWF3\#        V4       V e   \#        V 4       # #   \#        T4       T e   \#        T 4       i i ; i)
zóCreate a subprocess which creates another one as in:
A (us) -> B (child) -> C (grandchild).
Return a (child, grandchild) tuple.
The 2 processes are fully initialized and will live for 60 secs
and are registered for cleanup on reap_children().
N©Údirzl            import subprocess, os, sys, time
            s = "import os, time;"
            s += "f = open('z�', 'w');"
            s += "f.write(str(os.getpid()));"
            s += "f.close();"
            s += "time.sleep(60);"
            p = subprocess.Popen([r'z.', '-c', s])
            p.wait()
            )rÕ   TFrÖ   )rM   r…   rÚ   ÚtextwrapÚdedentr†   Úbasenamer    r   r7   r‹   rŒ   rÞ   ÚintrR   Ú_pids_startedrÝ   rI   )Útfilerâ   ÚsÚsubpÚchildÚgrandchild_pidÚ
grandchilds          r}   r<   r<   W  sê   € ð €EÜœBŸIšI›KÔ(€FðÜ�O‹Oô —7‘7×#Ñ# FÖ+¯Zð	9ó 	:ˆ÷ ‹7Ü °Ô3‰KˆD�%ä ›(‰KˆDÜ—’˜tŸx™xÓ(ˆÜœ]¨6¸$ÀeÔLÓMˆÜ×Ñ˜.Ô)Ü—^’^ NÓ3ˆ
ØÐ"ä�FÔØÒÜ˜Õð øô 	�FÔØÒÜ˜Õð ús   £CD ÄD)c                 ó  a€ \         P                  '       g   Q h\        4       p \        P                  ! RV ,          4      pRp\        V 4      p VP                  \        4       \        V4      w  rBVP                  4       w  rV \        P                  ! VP                  4       .. . \        4       \        VP                  R4      4      p\        P                  V4       \         P                   ! V4      o\#        V3R lR4       VS3VP%                  4        VP%                  4        \'        V 4       Ve   \'        V4       # #   TP%                  4        i ; i  TP%                  4        \'        T 4       Te   \'        T4       i i ; i)z¥Create a zombie process and return a (parent, zombie) process tuple.
In order to kill the zombie parent must be terminate()d first, then
zombie must be wait()ed on.
a          import os, sys, time, socket, contextlib
        child_pid = os.fork()
        if child_pid > 0:
            time.sleep(3000)
        else:
            # this is the zombie process
            s = socket.socket(socket.AF_UNIX)
            with contextlib.closing(s):
                s.connect('%s')
                if sys.version_info < (3, ):
                    pid = str(os.getpid())
                else:
                    pid = bytes(str(os.getpid()), 'ascii')
                s.sendall(pid)
        Né   c                  ó$   <€ S P                  4       # r§   )Ústatus)Úzombies   €r}   Ú<lambda>Úspawn_zombie.<locals>.<lambda>   s   ø€ ˜vŸ}™}œr�   zret == psutil.STATUS_ZOMBIE)r‹   r
   rM   rè   ré   rV   Ú
settimeoutr   r7   ÚacceptÚselectÚfilenorë   Úrecvrì   rÝ   rŒ   rP   ÚcloserI   )	Ú	unix_fileÚsrcrí   ÚsockÚparentÚconnÚ_Úzpidr÷   s	           @r}   r;   r;   ~  s1  ø€ ô
 �<�<ˆ<Ðˆ<Ü“€IÜ
�/Š/ð ð õó €Cð  €EÜ˜IÓ&€DðØ�‰œÔ'Ü˜c›
‰ˆØ—+‘+“-‰ˆð	Ü�MŠM˜4Ÿ;™;›=˜/¨2¨r´>ÔBÜ�t—y‘y “Ó'ˆDÜ×Ñ˜dÔ#Ü—^’^ DÓ)ˆFÜÔ.Ð0MÔNØ˜FÐ#à�J‰JŒLà�
‰
ŒÜ�IÔØÒÜ˜Õð øð	 �J‰J�Lûà�
‰
ŒÜ�IÔØÒÜ˜Õð ús%   Á4E ÂBE ÄE ÅEÅE Å-Fc                ó€  € VP                  RR4       VP                  RR4       \        4       p \        VR4      ;_uu_ 4       pVP                  V 4       RRR4       \	        \
        XP                  .3/ VB p\        VP                  4       WB3#   + '       g   i     LD; i  \         d    \        T4       h i ; i)z‘Run python 'src' code string in a separate interpreter.
Returns a subprocess.Popen instance and the test file where the source
code was written.
rv   Nrw   Úwt)rÙ   rM   ÚopenÚwriter:   r    r£   rQ   rÞ   r{   rI   )r  rà   ÚsrcfileÚfrï   s   &,   r}   r7   r7   «  s›   € ð 	‡O�O�H˜dÔ#Ø‡O�O�H˜dÔ#Ü‹l€GðÜ�'˜4× Ô  AØ�G‰G�CŒL÷ !äœz¨1¯6©6Ð2Ñ;°dÑ;ˆÜ�T—X‘XÔØˆÐ÷	 !× ûô
 ô Ü�GÔØðús#   °B% ÁBÁ;B% ÂB"	ÂB% Â%B=c                ó¾  € \        V \        \        34      '       d   RMRp\        '       d   V'       d   RM^ pVP	                  RV4       VP	                  R\
        P                  4       VP	                  R\
        P                  4       VP	                  RR4       VP	                  RV4       \
        P                  ! V 3/ VB p\        P                  V4       \        '       d   VP                  \        R	7      w  rVMVP                  4       w  rVVP                  ^ 8w  d   \        V4      hV'       d   \        V4       VP!                  R
4      '       d   VRR pV# )zMrun cmd in a subprocess and return its output.
raises RuntimeError on error.
TFrÔ   Úshellrv   rw   Úuniversal_newlinesrÕ   ©ÚtimeoutÚ
Néÿÿÿÿ)Ú
isinstanceÚstrr   r   rÙ   rx   rz   rÛ   rÜ   rÝ   r   Úcommunicater   Ú
returncodeÚRuntimeErrorr\   Úendswith)rß   rà   r  ÚflagsÚprv   rw   s   &,     r}   Úshr  ¿  s   € ô
 ˜s¤S¬' N×3Ò3‰D¸€Eç ›§U‰I°€EØ‡O�O�G˜UÔ#Ø‡O�O�HœjŸo™oÔ.Ø‡O�O�HœjŸo™oÔ.Ø‡O�OÐ(¨$Ô/Ø‡O�O�O UÔ+Ü×Ò˜Ñ% Ñ%€AÜ×Ñ˜aÔ ß
ƒsØŸ™¬~˜Ó>‰ˆ�àŸ™›‰ˆØ‡|�|�qÔÜ˜6Ó"Ð"ßÜˆVŒØ‡��t×ÒØ˜˜�ˆØ€Mr�   c                ó˜  aaa	a
a€ \         '       d   ^ RIHo R o
R oVVV
3R lpVVV
3R lo	V	V3R lpR pT p \        V\        4      '       dˆ   V! Wb4      \        V\
        P                  \        P                  34      '       d	   V! V4       \        V\        4      '       d   TMVP                  p\        P                  ! V4      '       d   Q V4       h# \        V\        P                  \        P                  34      '       dˆ   S	! Wb4      \        V\
        P                  \        P                  34      '       d	   V! V4       \        V\        4      '       d   TMVP                  p\        P                  ! V4      '       d   Q V4       h# \        V\
        P                  4      '       dˆ   V! Wb4      \        V\
        P                  \        P                  34      '       d	   V! V4       \        V\        4      '       d   TMVP                  p\        P                  ! V4      '       d   Q V4       h# \        RV,          4      h  \        T\
        P                  \        P                  34      '       d	   T! T4       \        T\        4      '       d   TMTP                  p\        P                  ! T4      '       d   Q T4       hi ; i)	ax  Terminate a process and wait() for it.
Process can be a PID or an instance of psutil.Process(),
subprocess.Popen() or psutil.Popen().
If it's a subprocess.Popen() or psutil.Popen() instance also closes
its stdin / stdout / stderr fds.
PID is wait()ed even if the process is already gone (kills zombies).
Does nothing if the process does not exist.
Return process exit status.
)Úwait_pidc                 ó–  € \        V \        P                  4      '       d   \        '       g   V P	                  4        MV P	                  V4       \
        '       dS   \        V \        P                  4      '       d1    \        P                  ! V P                  4      P	                  V4      # R # R #   \        P                   d     R # i ; ir§   )
r  rx   rÛ   r   r´   r   r‹   rŒ   rÞ   ÚNoSuchProcess)Úprocr  s   &&r}   r´   Úterminate.<locals>.waitè  s‰   € Ü�dœJ×,Ñ,×-Ò-·c³cØ�I‰I�Kà�I‰I�gÔß‹7”z $¬
×(8Ñ(8×9Ò9ðÜ—~’~ d§h¡hÓ/×4Ñ4°WÓ=Ð=ñ :‰7øô ×'Ñ'ô Úðús   Á<.B/ Â/CÃCc                 óø   € \         '       d   \        '       d   \        P                  p\        '       d5   V\        P                  8w  d    V P                  \        P                  4       V P                  V4       R # r§   )r	   r`   ÚsignalÚSIGKILLr
   Úsend_signalÚSIGCONT)r!  Úsigs   &&r}   ÚsendsigÚterminate.<locals>.sendsigô  sF   € ç‹5—^“^Ü—.‘.ˆC÷ ‹5�SœFŸN™NÔ*Ø×ÑœVŸ^™^Ô,Ø×Ñ˜Ör�   c                 óÜ   <€  S! V S4       S! W4      #   \          dM   p\        '       d   TP                  ^8X  d    Rp?L5TP                  \        P                  8w  d   h  Rp?LZRp?ii ; i)é   N)ÚOSErrorr   ÚwinerrorÚerrnoÚESRCH)r!  r  Úerrr)  r(  r´   s   && €€€r}   Úterm_subprocÚterminate.<locals>.term_subprocþ  s\   ø€ ð	Ù�D˜#Ôñ �DÓ"Ð"øô ô 	ß‹w˜3Ÿ<™<¨1Ô,ÜØ—‘œeŸk™kÔ)Øô *ûð	ús   ƒ	 ”A+ŸA&Á A&Á&A+c                 ó^   <€  S! V S4       S! W4      #   \         P                   d     Li ; ir§   )r‹   r   )r!  r  r)  r(  r´   s   &&€€€r}   Úterm_psprocÚterminate.<locals>.term_psproc  s9   ø€ ð	Ù�D˜#Ôñ �DÓ"Ð"øô ×#Ñ#ô 	Ùð	ús   ƒ	 ”,«,c                 ó¦   <€  \         P                  ! V 4      pS! W!4      #   \         P                   d    \        '       d   S! Y4      u #  R # i ; ir§   )r‹   rŒ   r   r
   )rÞ   r  r!  r5  r  s   && €€r}   Úterm_pidÚterminate.<locals>.term_pid  sO   ø€ ð	.Ü—>’> #Ó&ˆDñ ˜tÓ-Ð-øô ×#Ñ#ô 	.ç‹uÙ Ó-Ò-ò ð	.ús   ƒ! ¡ AÁAÁAc                 ó  € V P                   '       d   V P                   P                  4        V P                  '       d   V P                  P                  4        V P                  '       d   V P                  P                  4        R # R # r§   )rv   rÿ   rw   rÑ   )r!  s   &r}   Úflush_popenÚterminate.<locals>.flush_popen  sR   € Ø�;�;ˆ;Ø�K‰K×ÑÔØ�;�;ˆ;Ø�K‰K×ÑÔà�:�:ˆ:Ø�J‰J×ÑÖñ r�   zwrong type %r)r
   Úpsutil._psposixr  r  rë   rx   rÛ   r‹   rÞ   Ú
pid_existsrŒ   Ú	TypeError)Úproc_or_pidr(  Úwait_timeoutr2  r8  r;  r  rÞ   r)  r5  r´   r  s   &f&     @@@@r}   r8   r8   Û  s  ü€ ÷ ƒuÝ,ò
ò÷#÷#ö.òð 	€Að/Ü�aœ×ÒÙ˜AÓ,ô �aœ*×*Ñ*¬F¯L©LÐ9×:Ò:Ù˜ŒNÜ˜a¤×%Ò%‰a¨1¯5©5ˆÜ×$Ò$ S×)Ò)Ð.¨3Ó.Ð)Ð)ô ˜œFŸN™N¬F¯L©LÐ9×:Ò:Ù˜qÓ/ô �aœ*×*Ñ*¬F¯L©LÐ9×:Ò:Ù˜ŒNÜ˜a¤×%Ò%‰a¨1¯5©5ˆÜ×$Ò$ S×)Ò)Ð.¨3Ó.Ð)Ð)ô ˜œ:×+Ñ+×,Ò,Ù Ó0ô �aœ*×*Ñ*¬F¯L©LÐ9×:Ò:Ù˜ŒNÜ˜a¤×%Ò%‰a¨1¯5©5ˆÜ×$Ò$ S×)Ò)Ð.¨3Ó.Ð)Ð)ô ˜O¨aÕ/Ó0Ð0øä�aœ*×*Ñ*¬F¯L©LÐ9×:Ò:Ù˜ŒNÜ˜a¤×%Ò%‰a¨1¯5©5ˆÜ×$Ò$ S×)Ò)Ð.¨3Ó.Ð)Ð)ús$   »I Ã7I Æ'I È6I ÉA8K	ËK	c                óì  € \         P                  ! 4       P                  V R7      p\        '       d"   \        P	                  4       p\        V4       K-  \        '       d"   \        P	                  4       p\        V4       K-  V'       dm   V F  p\        VRR7       K  	  \         P                  ! V\        R7      w  rVV F0  p\        RV,          4       \        V\        P                  R7       K2  	  R# R# )a  Terminate and wait() any subprocess started by this test suite
and any children currently running, ensuring that no processes stick
around to hog resources.
If resursive is True it also tries to terminate and wait()
all grandchildren started by this process.
©Ú	recursiveN)rA  r  z0couldn't terminate process %r; attempting kill())r(  )r‹   rŒ   ÚchildrenrÜ   Úpopr8   rì   Ú
wait_procsr   r\   r$  r%  )rD  rE  rï   rÞ   r  ÚgoneÚalives   &      r}   r9   r9   3  s¯   € ô �~Š~Ó×(Ñ(°9Ð(Ó=€H÷  Ó
Ü$×(Ñ(Ó*ˆÜ�$Ž÷ ‹-Ü×ÑÓ!ˆÜ�#Ž÷ ÛˆAÜ�a d×+ñ ä×'Ò'¨¼.ÔI‰ˆÛˆAÜÐCÀaÕGÔHÜ�aœVŸ^™^×,ó ñ	 r�   c                 óÞ  € \         '       g   \        R4      hRp \        P                  ! 4       ^,          pV F*  pVP	                  4       '       g   VR8X  d   W,          p K*   M	  V '       g   \        RV,          4      h^ p^ pV P                  R4      p\        V^ ,          4      p\        V4      ^8¼  d   \        V^,          4      p\        V4      ^8¼  d   \        V^,          4      pWcV3# )z"Return a tuple such as (2, 6, 36).z	not POSIXÚ Ú.zcan't parse %r)	r
   ÚNotImplementedErrorr…   ÚunameÚisdigitr�   Úsplitrë   Úlen)rî   rN  ÚcÚminorÚmicroÚnumsÚmajors          r}   rO   rO   X  sÀ   € ç‹5Ü! +Ó.Ð.Ø
€AÜ�HŠH‹J�q�M€EÛˆØ�9‰9�;Š;˜!˜sœ(Ø�FŠAáñ	 ÷
 ÜÐ)¨EÕ1Ó2Ð2Ø€EØ€EØ�7‰7�3‹<€DÜ��Q•‹L€EÜ
ˆ4ƒy�A„~Ü�D˜•G“ˆÜ
ˆ4ƒy�A„~Ü�D˜•G“ˆØ˜%Ð Ð r�   c                  óX  € \         '       g   \        R 4      h\        P                  ! 4       p \	        V R4      '       d   V P
                  ;'       g    ^ pMC\        P                  ! RV ^,          4      pV'       d   \        VP                  ^ 4      4      pM^ pV ^ ,          V ^,          V3# )znot WINDOWSÚservice_pack_majorz\s\d$)
r   rM  rˆ   ÚgetwindowsversionÚhasattrrX  ÚreÚsearchrë   Úgroup)ÚwvÚspÚrs      r}   rN   rN   p  sƒ   € ß‹7Ü! -Ó0Ð0Ü	×	Ò	Ó	 €BÜˆrÐ'×(Ò(Ø×"Ñ"×'Ð' a‰ä�IŠI�h  1¥Ó&ˆßÜ�Q—W‘W˜Q“Z“‰BàˆBØˆq�E�2�a•5˜"ÐÐr�   c                   óJ   a € ] tR tRt o Rt]RRRR3R ltR tR tR t	R	t
V tR# )
Úretryi„  zA retry decorator.Nr–   c                óx   € V'       d   V'       d   \        R 4      hWn        W n        W0n        W@n        WPn        R# )z/timeout and retries args are mutually exclusiveN)r�   Ú	exceptionr  ÚretriesÚintervalÚlogfun)r�   rd  r  re  rf  rg  s   &&&&&&r}   r—   Úretry.__init__‡  s.   € ÷ —wÜÐNÓOÐOØ"ŒØŒØŒØ ŒØŽr�   c              #  ó4  "  € V P                   '       dI   \        P                  ! 4       V P                   ,           p\        P                  ! 4       V8  d   R x € K   R # V P                  '       d#   \        V P                  4       F  pR x € K	  	  R #  R x € K  5ir§   )r  r¸   re  r   )r�   Ústop_atr  s   &  r}   Ú__iter__Úretry.__iter__–  s_   é € Ø�<�<ˆ<Ü—i’i“k D§L¡LÕ0ˆGÜ—)’)“+ Ô'Ýñ (à�\�\ˆ\Ü˜4Ÿ<™<Ö(�Ýó )ð Ýùs   ‚A,BÁ/)Bc                óf   € V P                   e#   \        P                  ! V P                   4       R # R # r§   )rf  r¸   r¹   r©   s   &r}   r¹   Úretry.sleep¢  s!   € Ø�=‰=Ò$Ü�JŠJ�t—}‘}Ö%ñ %r�   c                óX   a a€ \         P                  ! S4      VV 3R  l4       pS Vn        V# )c                  óê   <€ R pS F  p S! V / VB u # 	  \        '       d   Vhh   SP                    d=   pTpSP                  e   SP                  T4       SP                  4         R p?Kg  R p?ii ; ir§   )rd  rg  r¹   r   )r®   r¯   Úexcr  rÉ   r�   s   *,  €€r}   rÊ   Úretry.__call__.<locals>.wrapper§  ss   ø€ àˆCÛ�ðÙ Ð/¨Ñ/Ò/ñ ÷ ‹sØ�	àøð —~‘~ô Ø�CØ—{‘{Ò.ØŸ™ CÔ(Ø—J‘J”LÝûðús   Š%¥A2¶1A-Á-A2)rÍ   rÎ   Ú	decorator)r�   rÉ   rÊ   s   ff r}   Ú__call__Úretry.__call__¦  s-   ù€ Ü	�Š˜Ó	õ	ó 
ð	ð$ !ˆÔØˆr�   )rd  rf  rg  re  r  )r¡   r¿   rÀ   rÁ   rÂ   r{   r—   rk  r¹   rt  rÃ   rÄ   ©rÆ   s   @r}   rb  rb  „  s2   ø‡ € Ùð %ØØØØôò
ò&÷ð r�   rb  r–   )rd  rg  r  rf  c                óz   € \         P                  ! V 4       \        '       d   \        P                  ! R4       R# R# )z|Wait for pid to show up in the process list then return.
Used in the test suite to give time the sub process to initialize.
ç{®Gáz„?N)r‹   rŒ   r   r¸   r¹   )rÞ   s   &r}   rQ   rQ   ¾  s&   € ô ‡N‚N�3Ôßƒwä�
Š
�4Öñ r�   c                óÐ   € \        V R4      ;_uu_ 4       pVP                  4       pRRR4       V'       g   X'       g   Q hV'       d   \        V 4       X#   + '       g   i     L7; i)z8Wait for a file to be written on disk with some content.ÚrbN)r	  ÚreadrI   )Úfnamer×   rØ   r  Údatas   &&&  r}   rR   rR   Ê  sF   € ô 
ˆe�T×	Ô	˜aØ�v‰v‹xˆ÷ 
çßˆˆtßÜ�EÔØ€K÷ 
×	ús   •AÁA%	c                ó:   € V ! 4       p\        V4      '       g   Q hV# )zNKeep calling function for timeout secs and exit if eval()
expression is True.
)Úeval)rÉ   ÚexprÚrets   && r}   rP   rP   ×  s   € ñ ‹%€CÜ��:Š:Ðˆ:Ø€Jr�   c                óz  € R p \         P                  ! V 4      p\        P                  ! VP                  4      '       d'   \        P
                  ! \        P                  V 4      pM%\        P
                  ! \         P                  V 4      p\        '       d
   V! 4        R# V! V4       R#   \         d     R# i ; i)z>Convenience function for removing temporary test files or dirsc                 ó<  € \         P                   ! 4       \        ,           p\         P                   ! 4       V8  d	    V ! 4       # Xh  \         d     M4\         d(   pTp\	        R \        T4      ,          4        Rp?MRp?ii ; i\         P                  ! R4       K}  )zignoring %sNrx  )r¸   r   r   ÚWindowsErrorr\   r  r¹   )rÉ   rj  r  r1  s   &   r}   Ú	retry_funÚsafe_rmpath.<locals>.retry_funé  sy   € ô
 —)’)“+¤Õ.ˆÜ�iŠi‹k˜GÔ#ð1Ù“u�ð ˆ	øô %ô ÙÜô 1Ø�Ü�]¤c¨#£hÕ/×0Ñ0ûð1úô �JŠJ�tÖs#   ¼A ÁBÁBÁBÁA>Á>BN)r…   ÚstatÚS_ISDIRÚst_moderÍ   ÚpartialÚshutilÚrmtreeÚremover
   r   )r†   r…  ÚstrÉ   s   &   r}   rI   rI   ç  s{   € òð"Ü�WŠW�T‹]ˆÜ�<Š<˜Ÿ
™
×#Ò#Ü×#Ò#¤F§M¡M°4Ó8‰Cä×#Ò#¤B§I¡I¨tÓ4ˆCß‹5ÙŽEá�cŽNøÜô Úðús$   …;B+ ÁAB+ ÂB+ Â!B+ Â+B:Â9B:c                óX   €  \         P                  ! V 4       R#   \         d     R# i ; i)z-Convenience function for creating a directoryN)r…   Úmkdirr   ræ   s   &r}   Ú
safe_mkdirr‘    s$   € ðÜ
�Š�ŽøÜô Úðús   ‚ š)¨)c              #  óÐ   "  € \         P                  ! 4       p \         P                  ! V 4       Rx € \         P                  ! V4       R#   \         P                  ! T4       i ; i5i)z@Context manager which temporarily changes the current directory.N)r…   rÚ   rH   )ÚdirnameÚcurdirs   & r}   rH   rH     s>   é € ô �YŠY‹[€FðÜ
�Š�ÔÛä
�Š�ÖøŒ�Š�Õüs   ‚A&™A ³A&ÁA#Á#A&c                ób  € \         P                  P                  V 4      '       d   Q V 4       hV'       dÚ   \        R4      '       g   \	        R4      h\        V\        4      '       d   \        P                  ! R4      p\        V\        4      '       g   Q V4       h\        \        RR7      R4      ;_uu_ 4       pVP                  V4       RRR4        \        P                  ! RXP                  RV .4       \!        VP                  4       R# \"        P$                  ! \&        V 4       \(        '       dN   \         P*                  ! V 4      p\         P,                  ! WP.                  \*        P0                  ,          4       R# R#   + '       g   i     LÂ; i  \!        XP                  4       i ; i)	z1Creates an executable file in the given location.Úgcczgcc is not installedzŸ
                #include <unistd.h>
                int main() {
                    pause();
                    return 1;
                }
                z.c©Úsuffixr  Nz-o)r…   r†   rŽ   r   r�   r  Úboolrè   ré   r  r	  rM   r
  rx   ry   r£   rI   r‹  Úcopyfiler    r
   r‡  Úchmodr‰  ÚS_IEXEC)ÚoutpathÚc_coder  rŽ  s   &&  r}   rJ   rJ     s  € ä�w‰w�~‰~˜g×&Ò&Ð/¨Ó/Ð&ßÜ�U�|Š|ÜÐ3Ó4Ð4Ü�fœd×#Ò#Ü—_’_ðóˆFô ˜&¤#×&Ò&Ð.¨Ó.Ð&Ü”* DÔ)¨4×0Ô0°AØ�G‰G�FŒO÷ 1ð	 Ü×!Ò! 5¨!¯&©&°$¸Ð"@ÔAä˜Ÿ™Öô 	�Šœ
 GÔ,ß‹5Ü—’˜Ó!ˆBÜ�HŠH�WŸj™j¬4¯<©<Õ7Ö8ñ ÷ 1×0ûô
 ˜Ÿ™Õús   Â8FÃ$F ÆF	ÆF.c                óÈ   €  \         P                  ! \        WR7      p\        P                  P                  V4      '       d   KD  \        P                  P                  V4      # )zÞReturn an absolute pathname of a file or dir that did not
exist at the time this call is made. Also schedule it for safe
deletion at interpreter exit. It's technically racy but probably
not really due to the time variant.
)Úprefixr˜  rç   )ÚtempfileÚmktempr#   r…   r†   rŽ   r‡   )r˜  rç   r£   s   && r}   rM   rM   9  s?   € ð Ü�Š¤m¸FÔLˆÜ�w‰w�~‰~˜d×#Ô#Ü—7‘7×#Ñ# DÓ)Ð)r�   c                   ó¦   a € ] tR tRt o R t]! ]P                  R4      '       g   ]P                  P                  t	]
'       g
   R tRtV tR# RtV tR# )ÚTestCaseiJ  c                óÄ   € V P                   P                  pVP                  R 4      '       g
   RV,           pV: RV P                   P                  : RV P                  : 2# )zpsutil.zpsutil.tests.rL  )rž   r¿   Ú
startswithr¡   Ú_testMethodName)r�   Úfqmods   & r}   Ú__str__ÚTestCase.__str__N  sO   € Ø—‘×)Ñ)ˆØ×Ñ 	×*Ò*Ø# eÕ+ˆEã�4—>‘>×*Ô*¨D×,@Ó,@ðBð 	Br�   ÚassertRaisesRegexc                ó   € R # r§   © r©   s   &r}   ÚrunTestÚTestCase.runTest\  s   € Ùr�   r­  N)r¡   r¿   rÀ   rÁ   r©  rZ  Úunittestr¤  ÚassertRaisesRegexpr«  r   r®  rÃ   rÄ   rv  s   @r}   r¤  r¤  J  sG   ø‡ € òBñ �8×$Ñ$Ð&9×:Ò:Ø$×-Ñ-×@Ñ@Ð÷ ÷	ð 	õ r�   r¤  c                   óL   a € ] tR tRt o RtRR ltR tR tR tR t	R	 t
R
tV tR# )rB   id  zMTest class providing auto-cleanup wrappers on top of process
test utilities.
Nc                óJ   € \        WR 7      pV P                  \        V4       V# ))r˜  rç   )rM   Ú
addCleanuprI   )r�   r˜  rç   r|  s   &&& r}   rM   ÚPsutilTestCase.get_testfni  s   € Ü &Ô2ˆØ�‰œ UÔ+Øˆr�   c                óH   € \        V/ VB pV P                  \        V4       V# r§   )r:   r´  r8   )r�   r®   rà   rä   s   &*, r}   r:   ÚPsutilTestCase.spawn_testprocn  s$   € Ü Ð-¨Ñ-ˆØ�‰œ	 5Ô)Øˆr�   c                óx   € \        4       w  rV P                  \        V4       V P                  \        V4       W3# r§   )r<   r´  r8   )r�   Úchild1Úchild2s   &  r}   r<   Ú"PsutilTestCase.spawn_children_pairs  s1   € Ü,Ó.‰ˆØ�‰œ	 6Ô*Ø�‰œ	 6Ô*ØÐÐr�   c                óx   € \        4       w  rV P                  \        V4       V P                  \        V4       W3# r§   )r;   r´  r8   )r�   r  r÷   s   &  r}   r;   ÚPsutilTestCase.spawn_zombiey  s0   € Ü%›‰ˆØ�‰œ	 6Ô*Ø�‰œ	 6Ô*ØÐÐr�   c                óx   € \        V/ VB w  r4V P                  \        V4       V P                  \        V4       V# r§   )r7   r´  rI   r8   )r�   r®   rà   rä   r  s   &*,  r}   r7   ÚPsutilTestCase.pyrun  s4   € Ü Ð-¨Ñ-‰ˆØ�‰œ WÔ-Ø�‰œ	 5Ô)Øˆr�   c                óv  € V P                  \        P                  \        P                  VP                  4       \        V\        P                  \        P                  34      '       d<   VP                  4       '       d   Q h VP                  4       p\        R V,          4      h\        P                  ! VP                  4      '       d   Q VP                  4       hV P                  VP                  \        P                  ! 4       4       R#   \        P                   d     Mi ; iTP                  ^ R7       L–)z3Process.status() didn't raise exception (status=%s)r  N)ÚassertRaisesr‹   r   rŒ   rÞ   r  rÛ   Ú
is_runningrö   ÚAssertionErrorr´   r>  ÚassertNotInÚpids)r�   r!  rö   s   && r}   ÚassertProcessGoneÚ PsutilTestCase.assertProcessGone…  så   € Ø×Ñœ&×.Ñ.´·±ÀÇÁÔIÜ�dœVŸ^™^¬V¯\©\Ð:×;Ò;Ø—‘×(Ò(Ð(Ð(ð=ØŸ™›�ô %ð &3Ø5;õ&<ó =ð =ô ×$Ò$ T§X¡X×.Ò.Ð8°·±Ó8Ð.Ø×Ñ˜Ÿ™¤6§;¢;£=Ö1øô ×'Ñ'ô Ùðúð
 �I‰I˜aˆIÕ s   ÂD ÄD%Ä$D%r­  ©rK  N)r¡   r¿   rÀ   rÁ   rÂ   rM   r:   r<   r;   r7   rÆ  rÃ   rÄ   rv  s   @r}   rB   rB   d  s-   ø‡ € ñôò
ò
 ò ò÷2ð 2r�   zunreliable on PYPYc                   ó¨   a € ] tR tRt o Rt^Èt^
t^ t]'       d   ^
M^t	Rt
]P                  ! 4       tR tR tR tR tR tR	 tR
 tRR ltR tRtV tR# )rA   i•  a�  Test framework class for detecting function memory leaks,
typically functions implemented in C which forgot to free() memory
from the heap. It does so by checking whether the process memory
usage increased before and after calling the function many times.

Note that this is hard (probably impossible) to do reliably, due
to how the OS handles memory, the GC and so on (memory can even
decrease!). In order to avoid false positives, in case of failure
(mem > 0) we retry the test for up to 5 times, increasing call
repetitions each time. If the memory keeps increasing then it's a
failure.

If available (Linux, OSX, Windows), USS memory is used for comparison,
since it's supposed to be more precise, see:
https://gmpy.dev/blog/2016/real-process-memory-and-environ-in-python
If not, RSS memory is used. mallinfo() on Linux and _heapwalk() on
Windows may give even more precision, but at the moment are not
implemented.

PyPy appears to be completely unstable for this framework, probably
because of its JIT, so tests on PYPY are skipped.

Usage:

    class TestLeaks(psutil.tests.TestMemoryLeak):

        def test_fun(self):
            self.execute(some_function)
Tc                ód   € V P                   P                  4       p\        VR VP                  4      # )Úuss)Ú	_thisprocÚmemory_full_infoÚgetattrÚrss)r�   Úmems   & r}   Ú_get_memÚTestMemoryLeak._get_mem¼  s)   € ð �n‰n×-Ñ-Ó/ˆÜ�s˜E 3§7¡7Ó+Ð+r�   c                ó‚   € \         '       d   V P                  P                  4       # V P                  P                  4       # r§   )r
   rÌ  Únum_fdsÚnum_handlesr©   s   &r}   Ú_get_num_fdsÚTestMemoryLeak._get_num_fdsÂ  s-   € ß‹5Ø—>‘>×)Ñ)Ó+Ð+à—>‘>×-Ñ-Ó/Ð/r�   c                óf   € V P                   '       d   \        VR \        P                  R7       R# R# )Úyellow)ÚcolorÚfileN)Úverboser   rˆ   rw   )r�   Úmsgs   &&r}   Ú_logÚTestMemoryLeak._logÈ  s    € Ø�<�<ˆ<Ü˜ 8´#·*±*×=ñ r�   c                ó@  € V P                  4       pV P                  V4       V P                  4       pW2,
          pV^ 8  d   V P                  RV,          4      hV^ 8”  d?   \        '       d   RMRpV^8”  d
   VR,          pV: RV: RV: 2pV P                  V4      hR# )z£Makes sure num_fds() (POSIX) or num_handles() (Windows) does
not increase after calling a function.  Used to discover forgotten
close(2) and CloseHandle syscalls.
zHnegative diff %r (gc probably collected a resource from a previous test)ÚfdÚhandlerî   z
 unclosed z after calling N)rÖ  ÚcallÚfailr
   )r�   rÉ   ÚbeforeÚafterÚdiffÚtype_rÝ  s   &&     r}   Ú
_check_fdsÚTestMemoryLeak._check_fdsÌ  s›   € ð
 ×"Ñ"Ó$ˆØ�	‰	�#ŒØ×!Ñ!Ó#ˆØ�~ˆØ�!Œ8Ø—)‘)ð =Ø?CõDó Eð Eà�!Œ8ß!›E‘D xˆEØ�aŒxØ˜•�Û7;»UÂCÐHˆCØ—)‘)˜C“.Ð ñ r�   c                ó<  € \         P                  ! ^R7       V P                  4       p\        V4       F  pV P	                  V4      p??K  	  \         P                  ! ^R7       V P                  4       pV P                  \         P                  . 4       Wc,
          pV# )zpGet 2 distinct memory samples, before and after having
called fun repeadetly, and return the memory difference.
)Ú
generation)ÚgcÚcollectrÑ  r   rã  ÚassertEqualÚgarbage)r�   rÉ   ÚtimesÚmem1Úxr�  Úmem2rç  s   &&&     r}   Ú_call_ntimesÚTestMemoryLeak._call_ntimesß  st   € ô 	�
Š
˜aÕ Ø�}‰}‹ˆÜ�u–ˆAØ—)‘)˜C“.ˆCØ’3ñ ô 	�
Š
˜aÕ Ø�}‰}‹ˆØ×ÑœŸ™ RÔ(Ø�{ˆØˆr�   c           
     óØ  € . p^ pTp\        ^V^,           4       F®  p	V P                  W4      p
RV	: R\        V
4      : R\        W¢,          4      : RV: 2pVP                  V4       W¥8*  ;'       g    W§8*  pV'       d   V	^8”  d   V P	                  V4        R# V	^8X  d   \        4        V P	                  V4       W(,          pT
pK°  	  V P                  RP                  V4      4      h)é    zRun #z: extra-mem=z, per-call=z, calls=Nz. )r   rõ  r   ÚappendrÞ  Úprinträ  r½   )r�   rÉ   rñ  Úwarmup_timesre  Ú	toleranceÚmessagesÚprev_memÚincreaseÚidxrÐ  rÝ  Úsuccesss   &&&&&&       r}   Ú
_check_memÚTestMemoryLeak._check_memî  sÇ   € ØˆØˆØˆÜ˜˜G a�KÖ(ˆCØ×#Ñ# CÓ/‰Cã”[ Ö%¤{°3µ;Ö'?ÂðHˆCà�O‰O˜CÔ ØÑ&×9Ð9¨#©/ˆGßØ˜”7Ø—I‘I˜c”NÚà˜!”8Ü”GØ—	‘	˜#”ØÕ!�Ø’ñ )ð  �i‰i˜Ÿ	™	 (Ó+Ó,Ð,r�   c                ó   € V! 4       # r§   r­  )r�   rÉ   s   &&r}   rã  ÚTestMemoryLeak.call  s	   € Ù‹uˆr�   Nc                óÄ  € Ve   TMV P                   pVe   TMV P                  pVe   TMV P                  pVe   TMV P                  p V^8¼  g   Q R4       hV^ 8¼  g   Q R4       hV^ 8¼  g   Q R4       hV^ 8¼  g   Q R4       h T P                  Y4       T P                  T4       T P                  YTYER7       R#   \         d   p\        \        T4      4      hRp?ii ; i)zTest a callable.Nztimes must be >= 1zwarmup_times must be >= 0zretries must be >= 0ztolerance must be >= 0)rñ  rû  re  rü  )
rñ  rû  re  rü  rÃ  r�   r  rõ  ré  r  )r�   rÉ   rñ  rû  re  rü  r1  s   &&&&&& r}   ÚexecuteÚTestMemoryLeak.execute	  sî   € ð Ò*‘°·
±
ˆØ'3Ò'?‘|Ø×"Ñ"ð 	à$Ò0‘'°d·l±lˆØ!*Ò!6‘I¸D¿N¹Nˆ	ð	'Ø˜A”:Ð3Ð3Ó3�:Ø 1Ô$ÐAÐ&AÓAÐ$Ø˜a”<Ð7Ð!7Ó7�<Ø ”>Ð;Ð#;Ó;‘>ð 	×Ñ˜#Ô,Ø�‰˜ÔØ�‰˜°|Ø 'ð 	ö 	>øô ô 	'ÜœS ›XÓ&Ð&ûð	'ús   Á
8B; Â;CÃCÃCc                óB   a aa€ VVV 3R lpS P                   ! V3/ VB  R# )z^Convenience method to test a callable while making sure it
raises an exception on every call.
c                  ó,   <€ SP                  S S4       R # r§   )rÁ  )rq  rÉ   r�   s   €€€r}   rã  Ú*TestMemoryLeak.execute_w_exc.<locals>.call"  s   ø€ Ø×Ñ˜c 3Ö'r�   N)r  )r�   rq  rÉ   r¯   rã  s   fff, r}   Úexecute_w_excÚTestMemoryLeak.execute_w_exc  s   ú€ ÷	(ð 	�Š�TÑ$˜VÔ$r�   r­  )NNNN)r¡   r¿   rÀ   rÁ   rÂ   rñ  rû  rü  r&   re  rÜ  r‹   rŒ   rÌ  rÑ  rÖ  rÞ  ré  rõ  r  rã  r  r  rÃ   rÄ   rv  s   @r}   rA   rA   •  sg   ø‡ € ñð< €EØ€LØ€Iß‰b A€GØ€GØ—’Ó €Iò,ò0ò>ò!ò&ò-ò0ô>÷*%ð %r�   c            	      ó˜  € ^ RI p ^ RIp^ RIp^ RIp^ RIp^ RIp ^ RIp ^ RIpV P                  4       p\        P                  '       d!   \        R4      '       d   \        R4      VR&   Mê\        P                  '       d#   RVP                  4       ^ ,          ,          VR&   M²\        P                   '       du   RRP#                  \%        \&        VP)                  4       4      4      ,           VR&   \+        VR4      '       d+   VR;;,          R	VP-                  4       ,           ,          uu&   M(VP/                  4       : RVP1                  4       : 2VR&   R	P#                  \3        VP5                  4       4      VP7                  4       .,           4      VR
&   \        P8                  '       d   VP;                  4       ^,          VR&   R	P#                  VP=                  4       VP?                  4       VPA                  4       .4      VR&   \C        VRR4      VR&   Ve'   VR;;,          RVPD                  ,          ,          uu&   \        P8                  '       dl   \        R4      '       d3   \        RR.4      p	\'        V	4      PG                  R4      ^ ,          VR&   MRVR&   VPI                  4       ^,          p
V
'       d   W¨R&   \J        PL                  ! 4       VR&   VPO                  4       pV^ ,          : R	V^,          : 2VR&   VP                  PQ                  \        PR                  ! 4       4      PU                  R4      VR&   VP                  PW                  4       PU                  R4      VR&   VPY                  4       VR&   \Z        P\                  P_                  R4      VR&   \Z        P`                  ! 4       VR&   \b        VR&   VPe                  4       VR&   \Z        Pf                  ! 4       VR &   \        Ph                  ! 4       VR!&   R"\k        \        Pl                  ! 4        Uu. uF%  qÌ\        Ph                  ! 4       ,          ^d,          NK'  	  up4      ,          VR#&   \        Pn                  ! 4       p\q        VPr                  4      : R$\u        VPv                  4      : R%\u        VPx                  4      : 2VR&&   \        Pz                  ! 4       p\q        VPr                  4      : R$\u        VPv                  4      : R%\u        VPx                  4      : 2VR'&   \}        \        P~                  ! 4       4      VR(&   \        P€                  ! 4       Pƒ                  4       pVP…                  R)R4       VP‡                  V4      VR*&   \‰        R.\J        PŠ                  R+7       VP�                  4        F0  w  pp\‰        VR,,           :R- RV: 2\J        PŠ                  R+7       K2  	  \‰        R.\J        PŠ                  R+7       \J        PŽ                  P‘                  4        R#   \         d    Rp ELi ; i  \         d    Rp EL i ; iu upi )/rø  NÚlsb_releasezlsb_release -d -sÚOSz	Darwin %szWindows Ú Úwin32_editionz, ÚarchÚkernelr‚   Ú__version__znot installedÚpipz (wheel=%s)r–  z	--versionr  Úglibczfs-encodingÚlangz%Y-%m-%d %H:%M:%Sz	boot-timer¸   ÚuserÚ~ÚhomerÒ   ÚpyexeÚhostnameÚPIDÚcpusz%.1f%%, %.1f%%, %.1f%%Úloadavgz%, used=z, total=ÚmemoryÚswaprÅ  rk   r!  ©rÛ  Ú:Ú17zF======================================================================)IÚcollectionsÚdatetimeÚgetpassÚlocaleÚplatformÚpprintr  ÚImportErrorÚwheelÚOrderedDictr‹   r   r   r  ÚOSXÚmac_verr   r½   Úmapr  Ú	win32_verrZ  r  ÚsystemÚversionÚlistÚarchitectureÚmachiner
   rN  Úpython_implementationÚpython_versionÚpython_compilerrÎ  r  rP  Úlibc_verrˆ   ÚgetfilesystemencodingÚ	getlocaleÚfromtimestampÚ	boot_timeÚstrftimeÚnowÚgetuserr…   r†   Ú
expanduserrÚ   r    ÚnodeÚgetpidÚ	cpu_countÚtuplerh   Úvirtual_memoryrë   Úpercentr   ÚusedÚtotalÚswap_memoryrQ  rÅ  rŒ   Úas_dictrF  Úpformatrú  rw   Úitemsrv   Úflush)r&  r'  r(  r)  r*  r+  r  r-  ÚinfoÚoutrî   r  ró  rÐ  r"  ÚpinfoÚkÚvs                     r}   rE   rE   (  s¸  € ÛÛÛÛÛÛðÛðÛð ×"Ñ"Ó$€Dô ‡|‡|€|œ˜m×,Ò,ÜÐ+Ó,ˆˆTŠ
Ü	��ˆØ  8×#3Ñ#3Ó#5°aÕ#8Õ8ˆˆTŠ
Ü	��ˆØ #§(¡(Ü”�X×'Ñ'Ó)Ó*ó#,õ ,ˆˆT‰
ä�8˜_×-Ò-Ø��J˜$ ×!7Ñ!7Ó!9Õ9Õ9‹Jøà (§¡Ö 1°8×3CÑ3CÕ3EÐFˆˆT‰
Ø—9‘9ÜˆX×"Ñ"Ó$Ó%¨×)9Ñ)9Ó);Ð(<Õ<ó>€Dˆ�Lä‡|‡|€|Ø!Ÿ™Ó)¨!Õ,ˆˆX‰ð —Y‘YØ×&Ñ&Ó(Ø×ÑÓ!Ø× Ñ Ó"ð $ó %€Dˆ�Nô ˜#˜}¨oÓ>€Dˆ�KØÒØˆU��} u×'8Ñ'8Õ8Õ8‹ô ‡|‡|€|Ü��<Š<Ü�e˜[Ð)Ó*ˆCÜ˜c›(Ÿ.™.¨Ó.¨qÕ1ˆD�ŠKà)ˆD�‰KØ×ÑÓ Õ"ˆßØ�‰Mô ×3Ò3Ó5€DˆÑØ×ÑÓ€DØ# AŸw˜w¨¨Q¯Ð0€Dˆ�LØ ×)Ñ)×7Ñ7Ü×ÒÓóß$™HÐ%8Ó9ð 	ˆÑà×$Ñ$×(Ñ(Ó*×3Ñ3Ð4GÓH€Dˆ�LØ—?‘?Ó$€Dˆ�LÜ—7‘7×%Ñ% cÓ*€Dˆ�LÜ—)’)“+€Dˆ�KÜ€Dˆ�MØ—}‘}“€DˆÑÜ—)’)“+€Dˆ�Kô ×#Ò#Ó%€Dˆ�LØ.Ü´V×5FÒ5FÔ5HÓIÑ5H°”6×#Ò#Ó%Õ%¨×+Ð+Ñ5HÑIÓJõL€Dˆ�Oä
×
Ò
Ó
!€CäˆC�K‰KÖœ+ c§h¡hÖ/´¸S¿Y¹YÕ1GðI€Dˆ�Nä×ÒÓ€DäˆD�L‰LÖœ; t§y¡yÖ1´;¸t¿z¹zÕ3JðL€Dˆ�Lä”v—{’{“}Ó%€Dˆ�LÜ�NŠNÓ×$Ñ$Ó&€EØ	‡I�Iˆm˜TÔ"Ø—>‘> %Ó(€Dˆ�Lä	ˆ(œŸ™Õ$Ø—
‘
–‰ˆˆ1Ü˜A ŸG™G¢QÐ'¬c¯j©j×9ñ ä	ˆ(œŸ™Õ$Ü‡J�J×ÑÖøô_ ô Ø‹ðûô ô Ø‹ðüòv Js(   šX ŸX3 Ð$+Y
ØX0Ø/X0Ø3YÙYc                  óà   € \         P                  ! 4       p \        V R 4      '       d   V P                  4       # \        V R4      '       d%   \        P
                  ! V P                  4       4      # ^ # )rm   rf   )r‹   rŒ   rZ  rm   ÚrandomÚchoicerf   )r  s    r}   Ú_get_eligible_cpurY  ƒ  sM   € Ü�ŠÓ€AÜˆq�)×ÒØ�y‰y‹{ÐÜ	��N×	#Ò	#Ü�}Š}˜QŸ^™^Ó-Ó.Ð.Ùr�   c                   ón  a € ] tR tRt o RtRR=/ 3RR=/ 3.tRR=/ 3RR=RR/3R	R=/ 3R
R=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR>/ 3.	tRR=/ 3RR=RR/3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3RR=/ 3R R=/ 3R!R=/ 3R"R=/ 3.t]'       d5   ]R#R=/ 3.,          t]R$R=/ 3.,          t]R%R=/ 3.,          t]R&R=/ 3.,          t]	'       d   ]R'R=/ 3.,          t]
'       d   ]R(R=/ 3.,          t]'       d   ]R)]P                  3/ 3.,          t]'       d   ]R*R=/ 3.,          t]'       d   ]R+R=/ 3.,          t]'       d   ]R,R=/ 3.,          t]'       d   ]R-R=/ 3.,          t]'       d   ]R.R=R/R0/3.,          t. t]'       d   ]RR>/ 3.,          tM]R]P(                  3/ 3.,          t]'       d   ]R)]P                  R?3/ 3.,          t]
'       d;   ]'       d   ]R(]P,                  ^ 3/ 3.,          tM]R(]P.                  3/ 3.,          t]'       d   ]R*]! 4       .3/ 3.,          tR1]P4                  3/ 3R2R=/ 3R3R=/ 3R4R=/ 3R5R=/ 3.t]'       d1   ]R1]P8                  3/ 3.,          t]R1]P:                  3/ 3.,          t]],           ],           ],           tR6 tR@R7 lt R8 t!]"R9 4       t#]"R: 4       t$R;t%V t&R<# )ArC   iŒ  a  A container that lists all Process class method names + some
reasonable parameters to be called with. Utility methods (parent(),
children(), ...) are excluded.

>>> ns = process_namespace(psutil.Process())
>>> for fun, name in ns.iter(ns.getters):
...    fun()
Úcpu_percentÚmemory_percentrM  rE  rD  TrÂ  Úmemory_info_exÚoneshotr  ÚparentsrÞ   r´   ÚcmdlineÚconnectionsÚkindÚallÚ	cpu_timesÚcreate_timerÒ   r|   rÍ  Úmemory_infor£   ÚniceÚnum_ctx_switchesÚnum_threadsÚ
open_filesÚppidrö   rs   ÚusernameÚuidsÚgidsÚterminalrÔ  rn   rj   ro   rf   rm   ri   rÕ  rk   ÚgroupedFr&  ÚsuspendÚresumer8   Úkillc                ó   € Wn         R # r§   ©Ú_proc)r�   r!  s   &&r}   r—   Úprocess_namespace.__init__ë  s   € ØŽ
r�   c              #  ó  "  € \        V4      p\        P                  ! V4       V FS  w  r4pV'       d   V P                  4        \	        V P
                  V4      p\        P                  ! V.VO5/ VB pWc3x € KU  	  R# 5i©zOGiven a list of tuples yields a set of (fun, fun_name) tuples
in random order.
N)r5  rW  ÚshuffleÚclear_cacherÎ  rv  rÍ   rŠ  )r�   Úlsr{  Úfun_namer®   rà   rÉ   s   &&&    r}   ÚiterÚprocess_namespace.iterî  sl   é € ô �"‹XˆÜ�Š�rÔÛ$&Ñ ˆH˜DßØ× Ñ Ô"Ü˜$Ÿ*™* hÓ/ˆCÜ×#Ò# CÐ7¨$Ò7°$Ñ7ˆCØ�/Ô!ó %'ùs   ‚A=A?c                óh   € V P                   P                  V P                   P                  RR7       R# )z&Clear the cache of a Process instance.T)Ú_ignore_nspN)rv  Ú_initrÞ   r©   s   &r}   r{  Úprocess_namespace.clear_cacheû  s!   € à�
‰
×Ñ˜Ÿ™Ÿ™°TÐÖ:r�   c                ó¦   € V FJ  w  p pRV,           p\        W4      '       d   K#  VP                  P                  : RV: R2p\        V4      h	  R# )zmGiven a TestCase instance and a list of tuples checks that
the class defines the required test method names.
Útest_z class should define a 'z' methodN)rZ  rž   r¡   ÚAttributeError)ÚclsÚ
test_classr|  r}  r  Ú	meth_namerÝ  s   &&&    r}   Útest_class_coverageÚ%process_namespace.test_class_coverageÿ  sL   € ó
 !‰NˆH�a˜Ø (Õ*ˆIÜ˜:×1Ô1à×(Ñ(×1Ô1³9ð>�ä$ SÓ)Ð)ó !r�   c                ó¤  € \        V P                   Uu. uF  q^ ,          NK  	  up4      p\        V P                   Uu. uF  q^ ,          NK  	  up4      p\        \        \        P
                  4       Uu. uF  q^ ,          R8w  g   K  VNK  	  up4      pW#,          V,          pV'       d   \        RV,          4      hR# u upi u upi u upi )rø  r  z!uncovered Process class names: %rN)r·   rc  Úignoredrç   r‹   rŒ   r�   )r‡  ró  Úthisr�  ÚklassÚleftouts   &     r}   ÚtestÚprocess_namespace.test  s¢   € ä #§'¢'Ó*¡'˜Q�a—D�D¡'Ñ*Ó+ˆÜ S§[¢[Ó1¡[ ˜—t�t¡[Ñ1Ó2ˆÜ¤¤F§N¡NÔ 3ÓCÑ 3˜1¸µt¸s±{—Q�QÑ 3ÑCÓDˆØ•> UÕ*ˆßÜÐ@À7ÕJÓKÐKñ ùò	 +ùÚ1ùÚCs   ”C¿CÁ7CÂCru  Nr­  )rø  )rô   i   )T)'r¡   r¿   rÀ   rÁ   rÂ   Úutilsr�  Úgettersr
   r-   r.   r1   r‹   ÚRLIMIT_NOFILEr*   r0   r,   r   r/   ÚsettersÚNORMAL_PRIORITY_CLASSr   ÚIOPRIO_CLASS_NONEÚIOPRIO_NORMALrY  r$  ÚSIGTERMÚkillersÚCTRL_C_EVENTÚCTRL_BREAK_EVENTrc  r—   r~  r{  ÚclassmethodrŠ  r‘  rÃ   rÄ   rv  s   @r}   rC   rC   Œ  sé  ø‡ € ñð 
˜˜BÐØ	˜2˜rÐ"ð€Eð 
�B˜ÐØ	�R˜+ tÐ,Ð-Ø	�r˜2ÐØ	˜2˜rÐ"Ø	�B˜ÐØ	�2�rÐØ	�B˜ÐØ	��BˆØ	�˜Ðð
€Gð 
�B˜ÐØ	˜˜V U˜OÐ,Ø	�b˜"ÐØ	˜˜BÐØ	��BˆØ	��BˆØ	˜R Ð$Ø	˜˜BÐØ	��RÐØ	��RÐØ	˜R Ð$Ø	˜˜BÐØ	�r˜2ÐØ	��RÐØ	�2�rÐØ	�B˜ÐØ	�R˜Ðð#€G÷& Ø�V˜R Ð$Ð%Õ%ˆØ�V˜R Ð$Ð%Õ%ˆØ�Z  RÐ(Ð)Õ)ˆØ�Y  BÐ'Ð(Õ(ˆßØ�] B¨Ð+Ð,Õ,ˆßØ�X˜r 2Ð&Ð'Õ'ˆßØ�X × 4Ñ 4Ð7¸Ð<Ð=Õ=ˆßØ�^ R¨Ð,Ð-Õ-ˆßØ�Y  BÐ'Ð(Õ(ˆßØ�Y  BÐ'Ð(Õ(ˆßØ�] B¨Ð+Ð,Õ,ˆßØ�] B¨°EÐ(:Ð;Ð<Õ<ˆà€GßØ�V˜U BÐ'Ð(Õ(‰à�V˜f×:Ñ:Ð=¸rÐBÐCÕCˆßØ�X × 4Ñ 4°lÐCÀRÐHÐIÕIˆßßØ˜ F×$<Ñ$<¸aÐ#@À"ÐEÐFÕF‰Gà˜ F×$8Ñ$8Ð#;¸RÐ@ÐAÕAˆGßØ�^Ñ'8Ó':Ð&;Ð%>ÀÐCÐDÕDˆð 
˜Ÿ™Ð*¨BÐ/Ø	�B˜ÐØ	�2�rÐØ	�b˜"ÐØ	��RÐð€G÷ Ø�] V×%8Ñ%8Ð$;¸RÐ@ÐAÕAˆØ�] V×%<Ñ%<Ð$?ÀÐDÐEÕEˆà
�'�/˜GÕ
# gÕ
-€Còô"ò;ð ñ	*ó ð	*ð ñLó öLr�   c                   ó¤  a € ] tR tRt o RtRR'/ 3RR'RR/3RR'RR/3RR'/ 3R	R'R
R/3R	R'R
R/3RR'RR/3RR'RR/3R]P                  ! 4       3/ 3RR'RR/3RR'/ 3RR'/ 3RR'RR/3R]P                  ! 4       3/ 3RR'/ 3RR'/ 3RR'/ 3RR'/ 3.t]	'       d   ]RR'R
R/3.,          t]
'       d   ]RR'/ 3.,          t]'       d   ]RR'/ 3.,          t]'       d   ]RR'/ 3.,          t]'       d   ]RR'/ 3.,          t]'       d   ]R R'/ 3.,          t]R!R)/ 3.,          tR"R'/ 3R#]P                   ! 4       .3/ 3R$R'/ 3R%R'/ 3.t]t]R& 4       t]P,                  tR'tV tR(# )*rD   i  zÉA container that lists all the module-level, system-related APIs.
Utilities such as cpu_percent() are excluded. Usage:

>>> ns = system_namespace
>>> for fun, name in ns.iter(ns.getters):
...    fun()
r?  rF  ÚlogicalFTÚ	cpu_statsrd  ÚpercpuÚdisk_io_countersÚperdiskÚdisk_partitionsrc  Ú
disk_usageÚnet_connectionsrb  Únet_if_addrsÚnet_if_statsrl   Úpernicr>  rÅ  rL  ÚusersrH  rg   rh   rr   rq   rp   Úwin_service_iterÚwin_service_getÚprocess_iterrG  r[  Úcpu_times_percentc              #  óÆ   "  € \        V 4      p \        P                  ! V 4       V  F5  w  rp\        \        V4      p\
        P                  ! V.VO5/ VB pWA3x € K7  	  R# 5iry  )r5  rW  rz  rÎ  r‹   rÍ   rŠ  )r|  r}  r®   rà   rÉ   s   &    r}   r~  Úsystem_namespace.iterH  sY   é € ô
 �"‹XˆÜ�Š�rÔÛ$&Ñ ˆH˜DÜœ& (Ó+ˆCÜ×#Ò# CÐ7¨$Ò7°$Ñ7ˆCØ�/Ô!ó %'ùs   ‚AA!r­  N)Úalg)r¡   r¿   rÀ   rÁ   rÂ   r…   rÚ   rE  r”  r+   ÚHAS_GETLOADAVGr5   r4   r2   r   r‹   rŒ   r�  rc  Ústaticmethodr~  rC   rŠ  rÃ   rÄ   rv  s   @r}   rD   rD     s  ø‡ € ñð 
�b˜"ÐØ	�b˜9 eÐ,Ð-Ø	�b˜9 dÐ+Ð,Ø	�b˜"ÐØ	�b˜8 UÐ+Ð,Ø	�b˜8 TÐ*Ð+Ø	˜R )¨TÐ!2Ð3Ø	˜B ¨ Ð.Ø	˜Ÿ	š	›�¨Ð+Ø	˜B ¨ Ð0Ø	˜˜RÐ Ø	˜˜RÐ Ø	˜B ¨4Ð 0Ð1Ø	˜Ÿ	š	›�¨Ð+Ø	��RÐØ	˜˜BÐØ	�"�bÐØ	˜2˜rÐ"ð%€G÷( Ø�Z  h°Ð%5Ð6Ð7Õ7ˆßØ�\ 2 rÐ*Ð+Õ+ˆßØÐ+¨R°Ð4Ð5Õ5ˆßØ�^ R¨Ð,Ð-Õ-ˆßØÐ&¨¨BÐ/Ð0Õ0ˆßØÐ'¨¨RÐ0Ð1Õ1ˆØÐ&¨	°2Ð6Ð7Õ7ˆð 
˜˜RÐ Ø	˜ŸšÓ)Ð*Ð-¨rÐ2Ø	˜˜BÐØ	˜b "Ð%ð	€Gð €Càñ	"ó ð	"ð ,×?Ñ?Ör�   c                óZ   € \         P                  ! V 4      '       g   Q V 4       hRV n        V # )zwA decorator to mark a TestCase class. When running parallel tests,
class' unit tests will be run serially (1 process).
T)ÚinspectÚisclassÚ
_serialrun)r�  s   &r}   Ú	serialrunr¹  W  s+   € ô
 �?Š?˜5×!Ò!Ð( 5Ó(Ð!Ø€EÔØ€Lr�   c                ó.   € R p\        \        RV VR7      # )zRDecorator which runs a test function and retries N times before
actually failing.
c                 óJ   € \        R V ,          \        P                  R7       R# )z%r, retryingr#  N)rú  rˆ   rw   )rq  s   &r}   rg  Ú retry_on_failure.<locals>.logfune  s   € Üˆn˜sÕ"¬¯©×4r�   N)rd  r  re  rg  )rb  rÃ  )re  rg  s   & r}   r@   r@   a  s   € ò5ô œ>°4ÀØô ð  r�   c                ó   a € V 3R lpV# )z,Decorator to Ignore AccessDenied exceptions.c                 óJ   <a € \         P                  ! S 4      V V3R  l4       pV# )c                  óŽ   <€  S! V / VB #   \         P                   d%    Se
   S'       g   h \        P                  ! R4      hi ; i)Nzraises AccessDenied)r‹   ÚAccessDeniedr°  ÚSkipTest)r®   r¯   rÉ   Úonly_ifs   *,€€r}   rÊ   Ú9skip_on_access_denied.<locals>.decorator.<locals>.wrappero  sK   ø€ ð?Ù˜DÐ+ FÑ+Ð+øÜ×&Ñ&ô ?ØÒ&ß"ØÜ×'Ò'Ð(=Ó>Ð>ð	?ús   ƒ ‹ A¬ArÌ   ©rÉ   rÊ   rÂ  s   f €r}   rs  Ú(skip_on_access_denied.<locals>.decoratorn  s%   ù€ Ü	�Š˜Ó	õ	?ó 
ð	?ð ˆr�   r­  ©rÂ  rs  s   f r}   r>   r>   l  s   ø€ õ
ð Ðr�   c                ó   a € V 3R lpV# )z3Decorator to Ignore NotImplementedError exceptions.c                 óJ   <a € \         P                  ! S 4      V V3R  l4       pV# )c                  ó    <€  S! V / VB #   \          d8    Se
   S'       g   h RSP                  ,          p\        P                  ! T4      hi ; i)Nz4%r was skipped because it raised NotImplementedError)rM  r¡   r°  rÁ  )r®   r¯   rÝ  rÉ   rÂ  s   *, €€r}   rÊ   Ú;skip_on_not_implemented.<locals>.decorator.<locals>.wrapper  sU   ø€ ð-Ù˜DÐ+ FÑ+Ð+øÜ&ô -ØÒ&ß"ØØLØŸ™õ%�ä×'Ò'¨Ó,Ð,ð-ús   ƒ ‹A¢+ArÌ   rÄ  s   f €r}   rs  Ú*skip_on_not_implemented.<locals>.decorator~  s%   ù€ Ü	�Š˜Ó	õ		-ó 
ð		-ð ˆr�   r­  rÆ  s   f r}   r?   r?   |  s   ø€ õð Ðr�   c                óö   € \         P                  ! \        P                  ! 4       4      ;_uu_ 4       pVP                  V ^ 34       VP	                  4       ^,          uuRRR4       #   + '       g   i     R# ; i)z6Return an unused TCP port. Subject to race conditions.N)Ú
contextlibÚclosingÚsocketÚbindÚgetsockname)Úhostr  s   & r}   rT   rT   ”  sK   € ä	×	Ò	œFŸMšM›O×	,Ô	,°Ø�	‰	�4˜�)ÔØ×ÑÓ! !Õ$÷ 
-×	,×	,Ó	,ús   ²*A'Á'A8	c                ó˜  € Vf   V \         \        39   d   Rp\        P                  ! W4      p \        P                  R9  d0   VP                  \        P                  \        P                  ^4       VP                  V4       V\        P                  8X  d   VP                  ^4       V#   \         d    TP                  4        h i ; i)zBinds a generic socket.©rK  rø  )ÚntÚcygwin)r   r   rÏ  r…   r£   Ú
setsockoptÚ
SOL_SOCKETÚSO_REUSEADDRrÐ  r   Úlistenr{   rÿ   )ÚfamilyÚtypeÚaddrr  s   &&& r}   rU   rU   ›  s˜   € à‚|˜¤7¬HÐ"5Ô5ØˆÜ�=Š=˜Ó&€Dð	Ü�7‰7Ð*Ô*Ø�O‰OœF×-Ñ-¬v×/BÑ/BÀAÔFØ�	‰	�$ŒØ”6×%Ñ%Ô%Ø�K‰K˜ŒNØˆøÜô Ø�
‰
ŒØðús   ¯A<B, Â,C	c                óˆ  € \         P                  '       g   Q h\        P                  P	                  V 4      '       d   Q V 4       h\
        P
                  ! \
        P                  V4      p VP                  V 4       V\
        P                  8X  d   VP                  ^4       V#   \         d    TP                  4        h i ; i)zBind a UNIX socket.)r‹   r
   r…   r†   rŽ   rÏ  r’   rÐ  r   rÚ  r{   rÿ   )r£   rÜ  r  s   && r}   rV   rV   ¬  s�   € ä�<�<ˆ<Ðˆ<Ü�w‰w�~‰~˜d×#Ò#Ð) TÓ)Ð#Ü�=Š=œŸ™¨Ó.€DðØ�	‰	�$ŒØ”6×%Ñ%Ô%Ø�K‰K˜ŒNð €Køô ô Ø�
‰
ŒØðús   Á+7B$ Â$Cc                ó(  € \         P                  ! \        P                  ! V \        4      4      ;_uu_ 4       pVP	                  V4       VP                  ^4       VP                  4       p\        P                  ! V \        4      p VP                  V4       VP                  4       p VP                  4       w  rQW8X  d   WS3uuRRR4       # VP                  4        K8    \         d    TP                  4        h i ; i  + '       g   i     R# ; i)zVBuild a pair of TCP sockets connected to each other.
Return a (server, client) tuple.
N)rÍ  rÎ  rÏ  r   rÐ  rÚ  rÑ  Úconnectrû   rÿ   r-  )rÛ  rÝ  ÚllrR  ÚcaddrÚas   &&    r}   rW   rW   »  sÅ   € ô 
×	Ò	œFŸMšM¨&´+Ó>×	?Ô	?À2Ø
�‰�ŒØ
�	‰	�!ŒØ�~‰~ÓˆÜ�MŠM˜&¤+Ó.ˆð	Ø�I‰I�dŒOØ—M‘M“OˆEØØŸ)™)›+‘�à”=Ø˜6÷ 
@Ò	?ð —‘–	øÜô 	Ø�G‰GŒIØð	ú÷ 
@×	?Ð	?ús$   ¸AD Â<C ÃC Ã C=Ã=D Ä D	c                ó²  € \         P                  '       g   Q hR;r \        V \        P                  R7      pVP                  ^ 4       \        P                  ! \        P                  \        P                  4      pVP                  ^ 4       VP                  V 4       W3#   \         d+    Te   TP                  4        Te   TP                  4        h i ; i)zwBuild a pair of UNIX sockets connected to each other through
the same UNIX file name.
Return a (server, client) tuple.
N©rÜ  )
r‹   r
   rV   rÏ  r   Úsetblockingr’   rà  r{   rÿ   )r£   ÚserverÚclients   &  r}   rX   rX   Ò  s°   € ô
 �<�<ˆ<Ðˆ<ØÐ€FðÜ! $¬V×-?Ñ-?Ô@ˆØ×Ñ˜1ÔÜ—’œvŸ~™~¬v×/AÑ/AÓBˆØ×Ñ˜1ÔØ�‰�tÔð ÐÐøô ô ØÒØ�L‰LŒNØÒØ�L‰LŒNØðús   �BB! Â!5Cc               #  ó´  "  € . p R;r V P                  \        \        P                  \        P                  4      4       V P                  \        \        P                  \        P
                  4      4       \        4       '       do   V P                  \        \        P                  \        P                  4      4       V P                  \        \        P                  \        P
                  4      4       \        '       de   \        '       dY   \        4       p\        4       p\        V4      w  r4\        V\        P
                  R7      pW4V3 F  pV P                  V4       K  	  V x € V  F  pVP                  4        K  	  W3 F  pVf   K	  \        V4       K  	  R#   T  F  pTP                  4        K  	  Y3 F  pTf   K	  \        T4       K  	  i ; i5i)z1Open as many socket families / types as possible.Nrå  )rù  rU   rÏ  r   r   Ú
SOCK_DGRAMr   r   r
   ÚHAS_CONNECTIONS_UNIXrM   rX   rV   rÿ   rI   )ÚsocksÚfname1Úfname2Ús1Ús2Ús3rî   r|  s           r}   rY   rY   é  sH  é € ð €EØÐ€Fð#Ø�‰”[¤§¡´×1CÑ1CÓDÔEØ�‰”[¤§¡´×1BÑ1BÓCÔDÜ�?Š?Ø�L‰Lœ¤V§_¡_´f×6HÑ6HÓIÔJØ�L‰Lœ¤V§_¡_´f×6GÑ6GÓHÔIß‹5×)Ó)Ü“\ˆFÜ“\ˆFÜ$ VÓ,‰FˆBÜ! &¬v×/@Ñ/@ÔAˆBØ˜b“\�Ø—‘˜Q–ñ "àŠãˆAØ�G‰GŽIñ àÓ%ˆEØÔ Ü˜EÖ"ó &øó ˆAØ�G‰GŽIñ àÓ%ˆEØÔ Ü˜EÖ"ò &üs6   ‚G‰C7F ÄF ÄAF Å) GÆGÆ!GÇGÇGc                ó4  € ^ RI p\        '       d@   \        '       d4   \        '       g(   \	        V\        P
                  4      '       g   Q V4       hV\        P                  8X  d’   V P                  R4       Uu. uF  p\        V4      NK  	  pp\        V4      ^8X  g   Q V 4       hV F!  p^ Tu;8:  d   ^ÿ8:  d   K  Q V 4       h Q V 4       h	  \        '       g   \        V 4      p VP                  V 4       R# V\        P                  8X  dH   \	        V \        4      '       g   Q V 4       h\        '       g   \        V 4      p VP                  V 4       R# V\         P"                  8X  d#   \$        P&                  ! RV 4      f   Q V 4       hR# \)        RV4      hu upi )zSCheck a net address validity. Supported families are IPv4,
IPv6 and MAC addresses.
NrL  z([a-fA-F0-9]{2}[:|\-]?){6}zunknown family %r)Ú	ipaddressÚenumr   r   r  ÚIntEnumrÏ  r   rP  rë   rQ  r   ÚIPv4Addressr   r  ÚIPv6Addressr‹   ÚAF_LINKr[  Úmatchr�   )rÝ  rÛ  ró  ró  ÚoctsÚnums   &&    r}   rS   rS     s2  € ó ßƒt—“ŸD›DÜ˜&¤$§,¡,×/Ò/Ð7°Ó7Ð/Ø”—‘ÔØ $§
¡
¨3¤Ó0¡˜1”�A–¡ˆÐ0Ü�4‹y˜AŒ~Ð#˜tÓ#ˆ~ÛˆCØ˜–?˜s–?Ð( DÓ(‘?Ð( DÓ(�?ñ ç‹sÜ˜4“=ˆDØ×Ñ˜dÖ#Ø	”6—?‘?Ô	"Ü˜$¤×$Ò$Ð* dÓ*Ð$ß‹sÜ˜4“=ˆDØ×Ñ˜dÖ#Ø	”6—>‘>Ô	!Ü�xŠxÐ5°tÓ<ÒHÐNÈ$ÓNÒHäÐ,¨fÓ5Ð5ùò 1s   Á8Fc                ót   € R pR pR pR pR pV! V 4       V! V 4       V! V 4       V! V 4       V! V 4       R# )z*Check validity of a connection namedtuple.c                 ó´  € \        V 4      ^8H  p\        V 4      R9   g   Q \        V 4      4       hV ^ ,          V P                  8X  g   Q V P                  4       hV ^,          V P                  8X  g   Q V P                  4       hV ^,          V P                  8X  g   Q V P                  4       hV ^,          V P                  8X  g   Q V P                  4       hV ^,          V P
                  8X  g   Q V P
                  4       hV ^,          V P                  8X  g   Q V P                  4       hV'       d,   V ^,          V P                  8X  g   Q V P                  4       hR# R# )é   N)r,  rþ  )rQ  rá  rÛ  rÜ  ÚladdrÚraddrrö   rÞ   )r  Úhas_pids   & r}   Úcheck_ntupleÚ-check_connection_ntuple.<locals>.check_ntuple   s  € Ü�d“)˜q‘.ˆÜ�4‹y˜FÔ"Ð-¤C¨£IÓ-Ð"Ø�A�w˜$Ÿ'™'Ô!Ð* 4§7¡7Ó*Ð!Ø�A�w˜$Ÿ+™+Ô%Ð2 t§{¡{Ó2Ð%Ø�A�w˜$Ÿ)™)Ô#Ð. T§Y¡YÓ.Ð#Ø�A�w˜$Ÿ*™*Ô$Ð0 d§j¡jÓ0Ð$Ø�A�w˜$Ÿ*™*Ô$Ð0 d§j¡jÓ0Ð$Ø�A�w˜$Ÿ+™+Ô%Ð2 t§{¡{Ó2Ð%ßØ˜•7˜dŸh™hÔ&Ð0¨¯©Ó0Ò&ñ r�   c                 ó€  € V P                   \        \        \        39   g   Q V P                   4       h\        e3   \        V P                   \        P                  4      '       g   Q V 4       hM'\        V P                   \        4      '       g   Q V 4       hV P                   \        8X  dz   \        P                  ! V P                   V P                  4      p\        P                  ! V4      ;_uu_ 4         VP                  V P                  ^ ,          ^ 34       R R R 4       R # V P                   \        8X  d3   V P"                  \$        P&                  8X  g   Q V P"                  4       hR # R #   \        P                   d+   pTP                  \        P                   8w  d   h  R p?L�R p?ii ; i  + '       g   i     R # ; ir§   )rÛ  r   r   r’   rô  r  rõ  rë   rÏ  rÜ  rÍ  rÎ  rÐ  rÿ  Úerrorr/  ÚEADDRNOTAVAILrö   r‹   Ú	CONN_NONE)r  rî   r1  s   &  r}   Úcheck_familyÚ-check_connection_ntuple.<locals>.check_family,  s3  € Ø�{‰{œw¬´'Ð:Ô:ÐG¸D¿K¹KÓGÐ:ÜÒÜ˜dŸk™k¬4¯<©<×8Ò8Ð>¸$Ó>Ñ8ä˜dŸk™k¬3×/Ò/Ð5°Ó5Ð/Ø�;‰;œ'Ô!ô
 —’˜dŸk™k¨4¯9©9Ó5ˆAÜ×#Ò# A×&Õ&ðØ—F‘F˜DŸJ™J q�M¨1Ð-Ô.÷ 'Ñ&ð �[‰[œGÔ#Ø—;‘;¤&×"2Ñ"2Ô2Ð?°D·K±KÓ?Ò2ñ $øô —|‘|ô Ø—y‘y¤E×$7Ñ$7Ô7Øô 8ûðú÷ '×&Ð&ús0   Ã1F,Ã3$E*Å*F)Å? F$ÆF,Æ$F)Æ)F,Æ,F=	c                 ó  € \        \        R \        4       4      pV P                  \        P                  \        P
                  V39   g   Q V P                  4       h\        e3   \        V P                  \        P                  4      '       g   Q V 4       hM'\        V P                  \        4      '       g   Q V 4       hV P                  \        P
                  8X  d3   V P                  \        P                  8X  g   Q V P                  4       hR# R# )ÚSOCK_SEQPACKETN)rÎ  rÏ  ÚobjectrÜ  r   rê  rô  r  rõ  rë   rö   r‹   r  )r  r  s   & r}   Ú
check_typeÚ+check_connection_ntuple.<locals>.check_typeA  sÇ   € ä ¤Ð)9¼6»8ÓDˆØ�y‰yœV×/Ñ/´×1BÑ1BØ+ð-ô -ð 	8Ø.2¯i©ió	8ð -äÒÜ˜dŸi™i¬¯©×6Ò6Ð<¸Ó<Ñ6ä˜dŸi™i¬×-Ò-Ð3¨tÓ3Ð-Ø�9‰9œ×)Ñ)Ô)Ø—;‘;¤&×"2Ñ"2Ô2Ð?°D·K±KÓ?Ò2ñ *r�   c                 óh  € V P                   V P                  3 EF  pV P                  \        \        39   d¹   \        V\        4      '       g   Q \        V4      4       hV'       g   KO  \        VP                  \        4      '       g   Q \        VP                  4      4       h^ VP                  u;8:  d   R8:  g   M Q VP                  4       h\        VP                  V P                  4       K×  V P                  \        8X  g   Kî  \        V\        4      '       d   EK  Q \        V4      4       h	  R# )rø  iÿÿ  N)rÿ  r   rÛ  r   r   r  rG  rÜ  Úportrë   rS   Úipr’   r  )r  rÝ  s   & r}   Úcheck_addrsÚ,check_connection_ntuple.<locals>.check_addrsM  sÊ   € à—Z‘Z §¡Ô,ˆDØ�{‰{œw¬Ð1Ô1Ü! $¬×.Ò.Ð:´°T³
Ó:Ð.ßÙÜ! $§)¡)¬S×1Ò1ÐB´4¸¿	¹	³?ÓBÐ1Ø˜DŸI™IÖ.¨Ö.Ð9°·	±	Ó9Ð.Ü! $§'¡'¨4¯;©;Ö7Ø—‘¤Ö'Ü! $¬×,Õ,Ð8¬d°4«jÓ8Ð,ó -r�   c                 ód  € \        V P                  \        4      '       g   Q V P                  4       h\        \        4       Uu. uF,  pVP                  R 4      '       g   K  \        \        V4      NK.  	  ppV P                  V9   g   Q V P                  4       hV P                  \        \        39   dH   V P                  \        8X  d3   V P                  \        P                  8w  g   Q V P                  4       hR# V P                  \        P                  8X  g   Q V P                  4       hR# u upi )ÚCONN_N)r  rö   r  rç   r‹   r¦  rÎ  rÛ  r   r   rÜ  r   r  )r  ró  Úvalidss   &  r}   Úcheck_statusÚ-check_connection_ntuple.<locals>.check_statusZ  sÔ   € Ü˜$Ÿ+™+¤s×+Ò+Ð8¨T¯[©[Ó8Ð+Ü.1´&¬kó ,©k¨Ø—\‘\ '×*ô %”'œ& !Ö$©kˆð ,à�{‰{˜fÔ$Ð1 d§k¡kÓ1Ð$Ø�;‰;œ7¤HÐ-Ô-°$·)±)¼{Ô2JØ—;‘;¤&×"2Ñ"2Ô2Ð?°D·K±KÓ?Ò2à—;‘;¤&×"2Ñ"2Ô2Ð?°D·K±KÓ?Ò2ùò,s   ÁD-Á!D-Nr­  )r  r  r  r  r  r  s   &     r}   Úcheck_connection_ntupler    sH   € ò
1ò@ò*
@ò9ò@ñ �ÔÙ�ÔÙˆtÔÙ�ÔÙ�Ör�   c                ó¬   €  ^ RI p\        VR4      '       g   \        h VP                  V 4      #   \         d    ^ RIpTP                  T 4      u # i ; i)z,Backport of importlib.reload of Python 3.3+.NÚreload)Ú	importlibrZ  r,  r  Úimp)Úmoduler  r  s   &  r}   rZ   rZ   p  sX   € ð(ÛÜ�y (×+Ò+ÜÐð ,ð ×Ñ Ó'Ð'øô	 ô "ÛØ�z‰z˜&Ó!Ò!ð"ús   ‚0 ° AÁAc                 ó  € \         P                  P                  \         P                  P                  V 4      4      ^ ,          p\        P
                  ^ ,          ^8X  d   ^ RIpVP                  W4      # \        P
                  R,          R8:  d   ^ RIH	p V! W4      P                  4       # ^ RIpVP                  P                  W4      pVP                  P                  V4      pVP                  P!                  V4       V# )rø  Nrƒ   )ÚSourceFileLoader©é   é   )r…   r†   Úsplitextrê   rˆ   rŠ   r  Úload_sourceÚimportlib.machineryr   Úload_moduleÚimportlib.utilÚutilÚspec_from_file_locationÚmodule_from_specÚloaderÚexec_module)r†   r£   r  r   r  ÚspecÚmods   &      r}   r[   r[   }  s»   € Ü�7‰7×ÑœBŸG™G×,Ñ,¨TÓ2Ó3°AÕ6€DÜ
×Ñ˜Õ˜aÔÛØ�‰˜tÓ*Ð*Ü	×	Ñ	˜"Õ	 Ô	'Ý8Ù Ó+×7Ñ7Ó9Ð9ãØ�~‰~×5Ñ5°dÓAˆØ�n‰n×-Ñ-¨dÓ3ˆØ�‰×Ñ Ô$Øˆ
r�   c                ó<   € \         P                  ! V \        4       R# )zRaise a warning msg.N)Úwarningsr\   ÚUserWarning)rÝ  s   &r}   r\   r\   ’  s   € ä‡M‚M�#”{Ö#r�   c                ó*  € \        V 4      pVP                  p\        V4      ^8w  g   V^ ,          \        8w  d   R# \	        VRR4      p\        V\        4      '       g   R# \        ;QJ d    R V 4       F  '       d   K   R# 	  R# ! R V 4       4      # )z-Check if object is an instance of namedtuple.FÚ_fieldsNc              3   óF   "  € T F  p\        V4      \        8H  x € K  	  R # 5ir§   )rÜ  r  )Ú.0Úns   & r}   Ú	<genexpr>Ú is_namedtuple.<locals>.<genexpr>   s   é € Ð)¡q !Œt�A‹wœ#Ž~£qùs   ‚!T)rÜ  Ú	__bases__rQ  rG  rÎ  r  rc  )ró  ÚtÚbr  s   &   r}   r^   r^   —  ss   € äˆQ‹€AØ	�‰€AÜ
ˆ1ƒv�„{�a˜•dœe”mÙÜ��9˜dÓ#€AÜ�aœ×ÒÙß‹3Ñ)¡qÓ)�3Œ3Ð)Š3Ð)ˆ3Ñ)¡qÓ)Ó)Ð)r�   c              #  óJ  "  € \         '       d   RMRpRp\        W,           R7      p\        P                  ! 4       P	                  4        Uu. uFf  p\
        P                  P                  VP                  4      ^,          V8X  g   K:  WP                  P                  4       9   g   KZ  VP                  NKh  	  pp\        P                  ! V4      p\        P                  ! Wc4        \        P                  ! V4       Vx € \        V4       R# u upi   \        T4       i ; i5i)zªCtx manager which picks up a random shared CO lib used
by this process, copies it in another location and loads it
in memory via ctypes. Return the new absolutized path.
r�   r‚   z.sor—  N)r   rM   r‹   rŒ   rk   r…   r†   r$  ÚlowerrW  rX  r‹  rš  ÚctypesÚCDLLrI   )r˜  r|   ÚextÚdstró  Úlibsr  s   &      r}   r]   r]   ¤  sÕ   é € ÷ ›‰f (ˆØˆÜ ¥Ô-ˆÜ &§¢Ó 0× <Ñ <Ô >ó 'Ñ >˜1Ü—‘× Ñ  §¡Ó(¨Õ+¨sÑ2ô à—v‘v—|‘|“~Ñ%ô �—”Ñ >ˆð 'ô �mŠm˜DÓ!ˆÜ�Š˜Ô!ð	Ü�KŠK˜ÔØŠIä˜Öùò'øô ˜Õüs6   ‚A
D#Á7DÂDÂ(DÂ8.D#Ã'D ÄD#ÄD Ä D#c              #  óF  "  € ^ RI Hp ^ RI Hp Rp\        W,           R7      p\        P
                  ! 4       P                  4        Uu. uFŸ  pVP                  P                  4       P                  V4      '       g   K4  R\        P                  P                  VP                  4      P                  4       9   g   Kr  RVP                  P                  4       9  g   K“  VP                  NK¡  	  pp\        '       dƒ   V'       g{   \        P
                  ! 4       P                  4        Uu. uFM  pR\        P                  P                  VP                  4      P                  4       9   g   KA  VP                  NKO  	  pp\        P                  ! V4      p\        P                   ! Wt4       Rp \         P"                  ! V4      pVx € VeW   \         P$                  P&                  P(                  p	VP*                  .V	n        V	! VP.                  4      p
V
^ 8X  d   V! 4        \1        V4       R# u upi u upi   TeW   \         P$                  P&                  P(                  p	TP*                  .T	n        T	! TP.                  4      p
T
^ 8X  d   T! 4        \1        T4       i ; i5i)	z¶Ctx manager which picks up a random shared DLL lib used
by this process, copies it in another location and loads it
in memory via ctypes.
Return the new absolutized, normcased path.
)Úwintypes)ÚWinErrorz.dllr—  r‚   Úwow64r�   N)r?  rE  rF  rM   r‹   rŒ   rk   r†   r>  r  r…   rê   r   rW  rX  r‹  rš  ÚWinDLLÚwindllÚkernel32ÚFreeLibraryÚHMODULEÚargtypesÚ_handlerI   )r˜  rE  rF  rA  rB  ró  rC  r  ÚcfilerK  r�  s   &          r}   r]   r]   ¸  sð  é € õ 	$Ý#ØˆÜ ¥Ô-ˆÜ &§¢Ó 0× <Ñ <Ô >ó /Ñ >˜1Ø—‘—‘“×'Ñ'¨×,ô àœBŸG™G×,Ñ,¨Q¯V©VÓ4×:Ñ:Ó<Ñ<ô ð ˜qŸv™vŸ|™|›~Ñ-ô �—”Ñ >ˆð /÷ ‹4ŸÜ$*§N¢NÓ$4×$@Ñ$@Ô$Bó @Ñ$B˜qØœbŸg™g×.Ñ.¨q¯v©vÓ6×<Ñ<Ó>Ñ>ô �A—F”FÑ$BˆDð @ä�mŠm˜DÓ!ˆÜ�Š˜Ô!Øˆð	Ü—M’M #Ó&ˆEØŠIð Ò Ü$Ÿm™m×4Ñ4×@Ñ@�Ø(0×(8Ñ(8Ð'9�Ô$Ù! %§-¡-Ó0�Ø˜!”8Ù”JÜ˜Öùò3/ùò
@øð Ò Ü$Ÿm™m×4Ñ4×@Ñ@�Ø(0×(8Ñ(8Ð'9�Ô$Ù! %§-¡-Ó0�Ø˜!”8Ù”JÜ˜ÕüsV   ‚AJ!Á1H-Á>9H-Â<H-ÃH-Ã-J!Ä%J!Ä(>H2Å+H2Å;0J!Æ,H7 ÇA1J!È7A'JÊJ!c                  ó   € \        R R7       R# )TrC  N)r9   r­  r�   r}   Úcleanup_test_procsrQ  å  s
   € ä˜D×!r�   c                 ó.   € \         P                  ! V 4      # r§   )rˆ   Úexit)r(  Úframes   &&r}   rø   rø   ï  s   € ´S·X²X¸c´]r�   r!  l        i  P i    )Úasciizus-asciir§   )F)TFrÈ  )z	127.0.0.1)rÔ  )rK  )±rÂ   Ú
__future__r   ÚatexitrÍ  r?  r/  rÍ   rí  r¶  r…   rW  r[  rü   r‹  r$  rÏ  r‡  rx   rˆ   r¡  rè   rš   r¸   r1  r   r   r   r‹   r   r   r   r	   r
   r   r   Úpsutil._commonr   r   r   Úpsutil._compatr   r   r   r   r   r   r   r   r°  Ú	unittest2r   r,  Úcatch_warningsÚsimplefilterrŠ   rô  Ú__all__Úbuiltin_module_namesr   ri   r   r`   r&   Úmaxsizer)   r   r   r(   r   r£   rE  r#   r$   Údecoder%   r<  r>  ÚASCII_FSr†   r‡   r½   r“  Ú__file__r!   r"   ÚHERErë  rZ  rŒ   r*   r+   r³  r,   r.   r/   ÚHAS_NET_IO_COUNTERSr0   r-   r1   r2   r™  rp   r3   r{   r4   r5   ÚHAS_THREADSÚgetuidÚSKIP_SYSCONSr�   r    r	  Údevnullr   Úregisterrÿ   rç   r¦  rÎ  r'   r  r’   r·   rÜ   rì   r³   r”   rÏ   r:   r<   r;   r7   r  rš  r8   r9   rO   rN   rb  r   rQ   rÃ  rR   rP   rI   r‘  ÚcontextmanagerrH   rJ   rM   r¤  rB   ÚskipIfrA   rE   rY  rC   rD   r¹  r@   r>   r?   rT   rU   rV   rW   rX   rY   rS   r  rZ   r[   r\   r^   r]   rQ  )ró  s   0r}   Ú<module>rl     s§	  ðñõ &Û Û Û Û Û Û 	Û Û 	Û Û 	Û Û Û Û Û Û Û 
Û Û Û Û Û Ý Ý Ý ã Ý Ý Ý Ý Ý Ý Ý Ý &Ý &Ý (Ý *Ý ,Ý Ý  Ý  Ý Ý "Ý  çÜã ðÝð ×Ñ�vÔÜà€Dð$àð$àð$à+ð$à-@ð$àBNð$ð ð$ð ð$ð %ð$ð '4ð$ð 6Eð$ð ð	$ð /ð	$ð
 ð$ð
 (ð$ð
 *@ð$ð
 BLð$ð ð$ð 'ð$ð )6ð$ð 8Nð$ð ð$ð $ð$ð &8ð$ð :Fð$ð ð$ð )ð$ð +=ð$ð ð$ð !7ð$ð ð$ð ð$ð *ð$ð ,<ð$ð >Lð$ð ð$ðð$ð  (ð!$ð  *Cð!$ð" ð#$ð" )ð#$ð" +;ð#$ð$ ð%$ð$ ,ð%$ð$ .=ð%$ð( ð)$ð( 'ð)$ð, ð-$ð, ð-$ð, )ð-$ð, +8ð-$ð, :Gð-$ð. ð/$ð2 ð3$ð2 #ð3$ð6 ð7$ð6 !ð7$ð6 #2ð7$ð: ð;$ð< ð=$ð< #ð=$ð< %7ð=$ð< 9Ið=$ð> ð?$ð> (ð?$ðB ðC$ðB -ðC$ðF ðG$ðF "ðG$ðF $3ðG$€ðZ �S×-Ñ-Ñ-€à˜Ÿ™Ñ#€Ø! R§Z¡ZÑ/×OÐO°>ÀRÇZÁZÑ3O€Ø×'Ð'˜€
à�;‰;˜Ñ €ð €
à#Ð Ø'Ð à€çØ�!…O€JØ�aÕ€NØ˜ÕÐØ˜AÕÐð
 ‡7�7ˆfÔà! B§I¢I£KÕ/�Mà! B§I¢I£KÕ/€MÙ�9“€çØ)×0Ñ0°Ð9JÓKÑà(ÐØ×$Ò$Ó&×,Ñ,Ó.Ð2GÑG€ð �7‰7×ÑØ‡G�G‡L�L�—‘—‘ Ó*¨D°$Ó7ó9€à�g‰g�l‰l˜8 YÓ/€Ø	‡w�w×Ñ˜Ÿ™Ÿ™¨Ó1Ó2€ð ×*Ð* U¤Ð Ù˜6Ÿ>™>¨>Ó:Ð Ù�v˜zÓ*€Ù˜ Ó.€Ù�f—n‘n iÓ0€Ù�V—^‘^ XÓ.€
Ù˜&Ÿ.™.¨-Ó8€Ù˜fÐ&7Ó8Ð Ù˜6Ÿ>™>¨9Ó5Ð Ù˜vŸ~™~¨}Ó=Ð Ù�V—^‘^ XÓ.€
Ù˜fÐ&7Ó8Ð ðØ%×HÐH©$¨v×/EÒ/EÓ/GÓ*H€Kñ ˜6 >Ó2Ð Ù" 6Ð+AÓBÐ Ù�f—n‘n iÓ0€Ø—�˜×2Ð2 "§)¢)£+°Ñ"2€ò
ñ@ ‹]€
Ù
ˆr�z‰z˜4Ó
 €Ø ‡‚�—‘Ô á36°v´;ó 3±;¨aØŸ,™, y×1ô *‘w˜v qÖ)±;ñ 3Ð á
�&˜)¡V£XÓ
.€á›Ð Ù“€ô(�×!Ñ!ô (ò`ð ó$ó ð$ðN ñ#ó ð#òL*ðZ ñó ðð& ñó ðð6  &Ÿ~š~¸Nô U/ôp-òJ!ò0ô(7ˆFô 7ñt �×%Ò%¨d¸NØôñóðñ Ð# ^Ð4¸TØ¨ô/óó/ðñ �¨°nØôñóðòòBð ×Òñó ðô9ô<	*ô"ˆx× Ò ô ð. €Ô ô.2�Xô .2ðb 
‡ƒ�Ð+Ó,ôO%�^ó O%ó -ðO%òdXòv÷FLñ FL÷R?@ñ ?@òDð (ô  ôô ô0%ð  [°tô ð" !'× 2Ñ 2ô ôò.ð. ×Òñ#ó ð#ò46ò4Jòd
(òò*$ò
	*÷ 	Ø×Òóó ñð& ×Òó#ó ð#ðX ‡�ñ"ó ð"÷ 	Ø
‡M‚M�&—.’.Ñ"BÖCñ 	øð[5 ô Ø	×	 Ò	 ×	"Õ	"Ø×Ò˜hÔ'Û÷ 
#×	"×	"Õ	"úðûðp ô ØƒKðüò\3sN   Ã5\ Ð]+ Ð]+ Ó];Ó$];Ü ](Ü/]Ý](Ý]$Ý](Ý$](Ý+	]8Ý7]8