+
    €",iØ	  ã                   óD   € ^ RI t ^ RIt^ RIHtHt R tR tR tR tR t	R# )é    N)Úcheck_subprocess_callÚraisesc                  ó    € R P                  . RO4      p \        \        P                  RV .4       \        \        P                  RV .RR7       R# )Ú
ú-cz7\s{1,2}\[1, 2, 3\]©Ústdout_regexN)zresult = 1 + 2 * 3zprint(result)zmy_list = [1, 2, 3]zprint(my_list))Újoinr   ÚsysÚ
executable)Úcodes    Ú:/usr/lib/python3/dist-packages/joblib/test/test_testing.pyÚtest_check_subprocess_callr      sC   € Ø�9‰9ÚXó€Dô œ3Ÿ>™>¨4°Ð6Ô7ô Ü	�‰˜˜tÐ$à+÷ó    c                  óð   € R p Rp\        \        4      ;_uu_ 4       p\        \        P                  RV .VR7       RRR4       XP                  RP                  V4      4       R#   + '       g   i     L2; i)Ú42Ú_no_way_this_matches_anything_r   r   NzUnexpected stdout.+{})r   Ú
ValueErrorr   r   r   ÚmatchÚformat)r   Únon_matching_patternÚexcinfos      r   Ú-test_check_subprocess_call_non_matching_regexr      s\   € Ø€DØ;Ðä	”
×	Ô	˜wÜÜ�^‰^˜T 4Ð(Ð7Kõ	
÷ 
ð ‡M�MÐ)×0Ñ0Ð1EÓFÖG÷	 
×	ús   œA%Á%A5	c                  óŠ   € R p \        \        4      ;_uu_ 4        \        V .4       RRR4       R#   + '       g   i     R# ; i)Ú_a_command_that_does_not_exist_N)r   ÚOSErrorr   )Úwrong_commands    r   Ú(test_check_subprocess_call_wrong_commandr   !   s&   € Ø5€MÜ	”��Ü˜}˜oÔ.÷ 
��Šús	   š1±A	c                  ó6  € R P                  . RO4      p \        P                  ! R\        P                  4      p\	        \
        4      ;_uu_ 4       p\        \        P                  RV .4       RRR4       XP                  V4       R#   + '       g   i     L#; i)r   zONon-zero return code: 123.+Stdout:
writing on stdout.+Stderr:
writing on stderrr   N)ú
import syszprint("writing on stdout")z%sys.stderr.write("writing on stderr")zsys.exit(123)©
r
   ÚreÚcompileÚDOTALLr   r   r   r   r   r   )Úcode_with_non_zero_exitÚpatternr   s      r   Ú/test_check_subprocess_call_non_zero_return_coder'   '   sq   € Ø"Ÿi™iò	
óÐô �jŠjð	%ô 	�	‰	ó	€Gô 
”
×	Ô	˜wÜœsŸ~™~¨tÐ5LÐMÔN÷ 
à‡M�M�'Ö÷ 
×	ús   ÁBÂB	c                  ó:  € R P                  . RO4      p \        P                  ! R\        P                  4      p\	        \
        4      ;_uu_ 4       p\        \        P                  RV .^R7       RRR4       XP                  V4       R#   + '       g   i     L#; i)r   zVNon-zero return code:.+Stdout:
before sleep on stdout\s+Stderr:
before sleep on stderrr   )ÚtimeoutN)	zimport timer    zprint("before sleep on stdout")úsys.stdout.flush()z*sys.stderr.write("before sleep on stderr")zsys.stderr.flush()ztime.sleep(10)z-print("process should have be killed before")r*   r!   )Úcode_timing_outr&   r   s      r   Ú"test_check_subprocess_call_timeoutr,   =   sq   € Ø—i‘iò	
ó€Oô  �jŠjð	*ô 	�	‰	ó	€Gô 
”
×	Ô	˜wÜœsŸ~™~¨t°_ÐEÈqÕQ÷ 
à‡M�M�'Ö÷ 
×	ús   ÁB
Â
B	)
r"   r   Újoblib.testingr   r   r   r   r   r'   r,   © r   r   Ú<module>r/      s(   ðÛ 	Û 
ç 8òòHò/òô,r   