ó
‹wÛjc        	   @   sú  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l Z d  d l m Z d  d l m Z e j d ƒ Z d  d l Z e j d ƒ d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z y d  d l m Z e Z Wn e k
 roe Z n Xy  d  d l  m! Z! m" Z" e Z# Wn e k
 r©e Z# n Xy d  d l$ Z$ Wn e k
 rÓd Z$ n Xe& Z' e j( Z) d	 Z* e Z+ e+ rd› \ Z, Z- Z. n dœ \ Z, Z- Z. e/ e d e ƒ Z0 e j1 d k Z2 y e j3 d ƒ Z4 Wn d Z4 n Xy  d  d l5 m6 Z6 m7 Z7 m8 Z8 Wn! e k
 rže9 Z6 d Z7 Z8 n Xd „  Z: d e9 f d „  ƒ  YZ; d e9 f d „  ƒ  YZ< d „  Z= d e9 f d „  ƒ  YZ> d e< f d „  ƒ  YZ? d e j@ f d „  ƒ  YZA d e< f d „  ƒ  YZB d  „  ZC d! „  ZD d" e< f d# „  ƒ  YZE d$ e< f d% „  ƒ  YZF d& e< f d' „  ƒ  YZG d( e< f d) „  ƒ  YZH d* e< f d+ „  ƒ  YZI d, e< f d- „  ƒ  YZJ d. e< f d/ „  ƒ  YZK d0 e< f d1 „  ƒ  YZL d2 d3 „ ZM d4 „  ZN d5 e9 f d6 „  ƒ  YZO d7 eP f d8 „  ƒ  YZQ d9 „  ZR d: e< f d; „  ƒ  YZS d< „  ZT d= e< f d> „  ƒ  YZU d? e< f d@ „  ƒ  YZV dA e< f dB „  ƒ  YZW d  dC l mX ZX mY ZY mZ ZZ dD e9 f dE „  ƒ  YZ[ dF „  Z\ dG eY f dH „  ƒ  YZ] dI eX f dJ „  ƒ  YZ^ e^ j_ dK dL e[ ƒe^ j_ dM dL e[ dN d� ƒe^ j_ dQ dL e\ dR e] ƒdS e< f dT „  ƒ  YZ` e j ƒ  Za dU „  Zb dV eX f dW „  ƒ  YZc ec j_ dX dL eb ƒdY eX f dZ „  ƒ  YZd ed j_ dX ƒ d[ Ze d\ e< f d] „  ƒ  YZf d^ e< f d_ „  ƒ  YZg e' d` ƒ Zh da e< f db „  ƒ  YZi dc e< f dd „  ƒ  YZj de e< f df „  ƒ  YZk dg e6 f dh „  ƒ  YZl di e< f dj „  ƒ  YZm dk e< f dl „  ƒ  YZn dm e< f dn „  ƒ  YZo do e< f dp „  ƒ  YZp dq e< f dr „  ƒ  YZq ds e  jr f dt „  ƒ  YZs du „  Zt dv „  Zu dw e9 f dx „  ƒ  YZv eu ev dy dz ƒZw ex ƒ  jy ew ƒ d{ e9 f d| „  ƒ  YZz eu ez dy d} ƒZ{ ex ƒ  jy e{ ƒ d~ e9 f d „  ƒ  YZ| eu e| dy d€ ƒZ} ex ƒ  jy e} ƒ d� e  jr f d‚ „  ƒ  YZ~ dƒ „  Z d„ e  jr f d… „  ƒ  YZ€ d† „  Z� d‡ „  Z‚ dˆ „  Zƒ d‰ „  Z„ dŠ e9 f d‹ „  ƒ  YZ… dŒ e  jr f d� „  ƒ  YZ† dŽ e  jr f d� „  ƒ  YZ‡ d� e  jr f d‘ „  ƒ  YZˆ d’ e  jr f d“ „  ƒ  YZ‰ d” e  jr f d• „  ƒ  YZŠ d– e  jr f d— „  ƒ  YZ‹ e~ es e€ e† e‡ eˆ e‰ eŠ e‹ g	 ZŒ d d˜ „ Z� d™ „  ZŽ e� dš k röeŽ ƒ  n  d S(ž   iÿÿÿÿN(   t   support(   t   StringIOt   _multiprocessings   multiprocessing.synchronize(   t   util(   t	   reduction(   t   Valuet   copygš™™™™™¹?g=
×£p=ê?gffffffÖ?gffffffö?t   HAVE_BROKEN_SEM_GETVALUEt   win32t   SC_OPEN_MAXi   (   t	   Structuret   c_intt   c_doublec          C   sg   d }  y t  j d ƒ } Wn t t f k
 r3 d SX| d k sL | |  k rP d St j d |  ƒ ‚ d S(   sA   Check that the system supports enough semaphores to run the test.i   t   SC_SEM_NSEMS_MAXNiÿÿÿÿsH   The OS doesn't support enough semaphores to run the test (required: %d).(   t   ost   sysconft   AttributeErrort
   ValueErrort   unittestt   SkipTest(   t	   nsems_mint   nsems(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   check_enough_semaphoresc   s    	t   TimingWrapperc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  |  _ d  S(   N(   t   funct   Nonet   elapsed(   t   selfR   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   __init__x   s    	c         O   s;   t  j  ƒ  } z |  j | | Ž  SWd  t  j  ƒ  | |  _ Xd  S(   N(   t   timeR   R   (   R   t   argst   kwdst   t(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   __call__|   s    (   t   __name__t
   __module__R   R!   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR   v   s   	t   BaseTestCasec           B   s/   e  Z d Z d „  Z d „  Z d „  Z e Z RS(   t	   processest   managert   threadsc         C   s    t  r |  j | | d ƒ n  d  S(   Ni   (   t   CHECK_TIMINGSt   assertAlmostEqual(   R   t   at   b(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   assertTimingAlmostEqual‹   s    c         G   s8   y | | Œ  } Wn t  k
 r# n X|  j | | ƒ Sd  S(   N(   t   NotImplementedErrort   assertEqual(   R   t   valueR   R   t   res(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   assertReturnsIfImplemented�   s
    c         G   s   t  d ƒ ‚ d  S(   Ns#   shouldn't try to pickle a test case(   R-   (   R   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   __reduce__™   s    (   R%   R&   R'   (   R"   R#   t   ALLOWED_TYPESR,   R1   R2   t   __reduce_ex__(    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR$   ‡   s
   		
	c         C   sj   y |  j  ƒ  SWnU t k
 re y |  j SWqf t k
 ra y |  j SWqb t k
 r] t ‚ qb Xqf Xn Xd  S(   N(   t	   get_valueR   t   _Semaphore__valuet   _valueR-   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR5   ¢   s    t   DummyCallablec           B   s   e  Z d  „  Z RS(   c         C   s   | j  d ƒ d  S(   Ni   (   t   put(   R   t   qt   c(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR!   ³   s    (   R"   R#   R!   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR8   ²   s   t   _TestProcessc           B   s’   e  Z d Z d „  Z e d „  ƒ Z d „  Z e d „  ƒ Z d „  Z d „  Z	 d „  Z
 e d	 „  ƒ Z d
 „  Z e d „  ƒ Z d „  Z d „  Z RS(   R%   R'   c         C   s½   |  j  d k r+ |  j d j |  j  ƒ ƒ n  |  j ƒ  } | j } |  j | j ƒ  ƒ |  j | j ƒ |  j | t	 ƒ |  j t
 | ƒ d k ƒ |  j | j t j ƒ  ƒ |  j | j d  ƒ d  S(   NR'   s   test not appropriate for {}i    (   t   TYPEt   skipTestt   formatt   current_processt   authkeyt
   assertTruet   is_alivet   daemont   assertIsInstancet   bytest   lenR.   t   identR   t   getpidt   exitcodeR   (   R   t   currentRA   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_current¼   s    	c         O   sr   |  j  ƒ  } | j | ƒ | j | ƒ | j | j ƒ |  j d k rn | j t | j ƒ ƒ | j | j ƒ n  d  S(   NR'   (   R@   R9   t   nameR=   RF   RA   t   pid(   t   clsR:   R   R   RK   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _testÊ   s    c      	   C   s<  |  j  d ƒ } |  j ƒ  } | d d f } i d d 6d d 6} d } |  j d |  j d	 | d
 | d | ƒ } t | _ |  j ƒ  } |  j d k r¨ |  j | j	 | j	 ƒ n  |  j | j
 ƒ  t ƒ |  j | j t ƒ |  j | |  j ƒ  ƒ |  j t |  j ƒ  ƒ t k ƒ |  j | j d  ƒ | j ƒ  |  j | j d  ƒ |  j | j
 ƒ  t ƒ |  j | |  j ƒ  ƒ |  j | j ƒ  | d ƒ |  j | j ƒ  | ƒ |  j | j ƒ  | j ƒ |  j d k rï|  j | j ƒ  | j	 ƒ |  j | j ƒ  | j ƒ n  | j ƒ  |  j | j d ƒ |  j | j
 ƒ  t ƒ |  j | |  j ƒ  ƒ d  S(   Ni   i   i   t   hellogR¸…ëQ@t   byet   SomeProcesst   targetR   t   kwargsRM   R'   i    (   t   Queuet   Eventt   ProcessRP   t   TrueRD   R@   R=   R.   RA   RC   t   Falset   assertNotInt   active_childrenRB   t   typet   listRJ   R   t   startt   assertInt   getRM   RN   t   join(   R   R:   t   eR   RU   RM   t   pRK   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_processÔ   s<    		

c         C   s   t  j d ƒ d  S(   Niè  (   R   t   sleep(   RO   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_terminateû   s    c         C   s  |  j  d k r+ |  j d j |  j  ƒ ƒ n  |  j d |  j ƒ } t | _ | j ƒ  |  j | j	 ƒ  t ƒ |  j
 | |  j ƒ  ƒ |  j | j d  ƒ | j ƒ  t | j ƒ } |  j | ƒ  d  ƒ |  j | j d ƒ |  j | j	 ƒ  t ƒ |  j | |  j ƒ  ƒ | j ƒ  d  S(   NR'   s   test not appropriate for {}RT   g        (   R=   R>   R?   RX   Rg   RY   RD   R_   R.   RC   R`   R\   RJ   R   t	   terminateR   Rb   R,   R   RZ   R[   (   R   Rd   Rb   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_terminateÿ   s    	

c         C   sZ   y t  j ƒ  } Wn t k
 r) d } n X|  j t | ƒ t k ƒ |  j | d k ƒ d  S(   Ni   (   t   multiprocessingt	   cpu_countR-   RB   R]   t   int(   R   t   cpus(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_cpu_count  s    
c         C   s�   |  j  t |  j ƒ  ƒ t ƒ |  j d t j d t f ƒ } |  j | |  j ƒ  ƒ t	 | _
 | j ƒ  |  j | |  j ƒ  ƒ | j ƒ  |  j | |  j ƒ  ƒ d  S(   NRT   R   (   R.   R]   R\   R^   RX   R   Rf   t   DELTAR[   RY   RD   R_   R`   Rb   (   R   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_active_children!  s    	

c         C   s‰   d d l  m } | j | ƒ t | ƒ d k  r… xS t d ƒ D]B } |  j d |  j d | | | g f ƒ } | j ƒ  | j ƒ  q< Wn  d  S(   Niÿÿÿÿ(   t   forkingi   RT   R   (	   Rj   Rq   t   sendRG   t   rangeRX   t   _test_recursionR_   Rb   (   RO   t   wconnt   idRq   t   iRd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRt   .  s    	
c         C   s®   |  j  d t ƒ \ } } |  j | g  ƒ t j t ƒ g  } x# | j ƒ  r` | j | j ƒ  ƒ q> Wg  d g d d g d d g d g d d g d d g g } |  j	 | | ƒ d  S(   Nt   duplexi    i   (
   t   PipeRZ   Rt   R   Rf   Ro   t   pollt   appendt   recvR.   (   R   t   rconnRu   t   resultt   expected(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_recursion:  s    			c         C   s#   t  | d ƒ t _ t j | ƒ d  S(   Nt   w(   t   opent   syst   stderrt   exit(   RO   t   reasont   testfn(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_sys_exitN  s    c      	   C   sp  |  j  d k r+ |  j d j |  j  ƒ ƒ n  t j } |  j t j | ƒ x· d d d g d f d f D]š \ } } |  j d |  j d | | f ƒ } t	 | _
 | j ƒ  | j d	 ƒ |  j | j | ƒ t | d
 ƒ �) } |  j | j ƒ  j ƒ  t | ƒ ƒ Wd  QXqc Wxh t	 t d f D]W } |  j d t j d | f ƒ } t	 | _
 | j ƒ  | j d	 ƒ |  j | j | ƒ qWd  S(   NR'   s   test not appropriate for {}i   i   i   s   ignore thisRT   R   i   t   ri   (   s   ignore thisi   (   R=   R>   R?   R    t   TESTFNt
   addCleanupt   unlinkRX   Rˆ   RY   RD   R_   Rb   R.   RJ   R‚   t   readt   rstript   strRZ   Rƒ   R…   (   R   R‡   R†   t   codeRd   t   f(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_sys_exitS  s$    	(!	
,	
c         C   s†   t  ƒ  } t j | ƒ } |  j ƒ  } |  j d | d | | f ƒ } ~ | j ƒ  | j ƒ  |  j | ƒ  d  ƒ |  j	 | j
 ƒ  d ƒ d  S(   NRT   R   i   (   R8   t   weakreft   refRV   RX   R_   Rb   t   assertIsR   R.   Ra   (   R   R;   t   wrR:   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_lose_target_refl  s    	

(   R%   R'   (   R"   R#   R3   RL   t   classmethodRP   Re   Rg   Ri   Rn   Rp   Rt   R€   Rˆ   R’   R—   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR<   ¸   s   	
	'					t   _UpperCaserc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s,   t  j j |  ƒ t  j ƒ  \ |  _ |  _ d  S(   N(   Rj   RX   R   Ry   t
   child_connt   parent_conn(   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR   ~  s    c         C   sT   |  j  j ƒ  x3 t |  j j d  ƒ D] } |  j j | j ƒ  ƒ q# W|  j j ƒ  d  S(   N(   R›   t   closet   iterRš   R|   R   Rr   t   upper(   R   t   s(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   run‚  s    c         C   s   |  j  j | ƒ |  j  j ƒ  S(   N(   R›   Rr   R|   (   R   RŸ   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   submitˆ  s    c         C   s.   |  j  j d  ƒ |  j  j ƒ  |  j j ƒ  d  S(   N(   R›   Rr   R   Rœ   Rš   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   stop�  s    (   R"   R#   R   R    R¡   R¢   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR™   |  s   			t   _TestSubclassingProcessc           B   s   e  Z d Z d „  Z RS(   R%   c         C   sf   t  ƒ  } t | _ | j ƒ  |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ | j ƒ  | j ƒ  d  S(   NRQ   t   HELLOt   worldt   WORLD(   R™   RY   RD   R_   R.   R¡   R¢   Rb   (   R   t
   uppercaser(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_subclassing–  s    		

(   R%   (   R"   R#   R3   R¨   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR£   ’  s   c         C   s-   t  |  d ƒ r |  j ƒ  S|  j ƒ  d k Sd  S(   Nt   emptyi    (   t   hasattrR©   t   qsize(   R:   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   queue_empty£  s    
c         C   s-   t  |  d ƒ r |  j ƒ  S|  j ƒ  | k Sd  S(   Nt   full(   Rª   R­   R«   (   R:   t   maxsize(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   queue_full©  s    
t
   _TestQueuec           B   sƒ   e  Z e d  „  ƒ Z d „  Z e d „  ƒ Z d „  Z e d „  ƒ Z d „  Z d „  Z	 e d „  ƒ Z
 d „  Z d	 „  Z d
 „  Z RS(   c         C   s9   | j  ƒ  x t d ƒ D] } | j ƒ  q W| j ƒ  d  S(   Ni   (   t   waitRs   Ra   t   set(   RO   t   queuet   child_can_startt   parent_can_continueRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   _test_put³  s    
c         C   sµ  d } |  j  d | ƒ } |  j ƒ  } |  j ƒ  } |  j d |  j d | | | f ƒ } t | _ | j ƒ  |  j t | ƒ t ƒ |  j t	 | | ƒ t
 ƒ | j d ƒ | j d t ƒ | j d t d  ƒ | j d t
 ƒ | j d	 t
 d  ƒ | j d ƒ t j t ƒ |  j t | ƒ t
 ƒ |  j t	 | | ƒ t ƒ t | j ƒ } t | j ƒ } |  j t  j | d
 t
 ƒ |  j | j d ƒ |  j t  j | d
 t
 d  ƒ |  j | j d ƒ |  j t  j | d
 ƒ |  j | j d ƒ |  j t  j | d
 t t ƒ |  j | j t ƒ |  j t  j | d
 t
 t ƒ |  j | j d ƒ |  j t  j | d
 t d t ƒ|  j | j t ƒ | j ƒ  | j ƒ  |  j t | ƒ t ƒ |  j t	 | | ƒ t
 ƒ | j ƒ  d  S(   Ni   R®   RT   R   i   i   i   i   i   i   i    t   timeout(   RV   RW   RX   R¶   RY   RD   R_   R.   R¬   R¯   RZ   R9   R   t
   put_nowaitR   Rf   Ro   R   t   assertRaisest   FullR,   R   t   TIMEOUT1t   TIMEOUT2t   TIMEOUT3R²   R±   Rb   (   R   t   MAXSIZER³   R´   Rµ   t   procR9   R¸   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_putº  sN    			


c         C   sL   | j  ƒ  | j d ƒ | j d ƒ | j d ƒ | j d ƒ | j ƒ  d  S(   Ni   i   i   i   (   R±   R9   R²   (   RO   R³   R´   Rµ   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   _test_getô  s    
c         C   sP  |  j  ƒ  } |  j ƒ  } |  j ƒ  } |  j d |  j d | | | f ƒ } t | _ | j ƒ  |  j t | ƒ t ƒ | j	 ƒ  | j
 ƒ  t j t ƒ |  j t | ƒ t ƒ |  j | j t d  ƒ d ƒ |  j | j t ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j ƒ  d ƒ |  j t | ƒ t ƒ t | j ƒ } t | j ƒ } |  j t  j | t ƒ |  j | j d	 ƒ |  j t  j | t d  ƒ |  j | j d	 ƒ |  j t  j | ƒ |  j | j d	 ƒ |  j t  j | t t ƒ |  j | j t ƒ |  j t  j | t t ƒ |  j | j d	 ƒ |  j t  j | d t ƒ|  j | j t ƒ | j ƒ  d  S(
   NRT   R   i   i   R·   i   i   i   i    (   RV   RW   RX   RÁ   RY   RD   R_   R.   R¬   R²   R±   R   Rf   Ro   RZ   Ra   R   t
   get_nowaitR   R¹   t   EmptyR,   R   R»   R¼   R½   Rb   (   R   R³   R´   Rµ   R¿   Ra   RÂ   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_getþ  sB    			


c         C   s+   x$ t  d d ƒ D] } | j | ƒ q Wd  S(   Ni
   i   (   Rs   R9   (   RO   R³   Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   _test_fork2  s    c         C   sÂ   |  j  ƒ  } x! t d ƒ D] } | j | ƒ q Wt j t ƒ |  j d |  j d | f ƒ } t | _	 | j
 ƒ  x* t d ƒ D] } |  j | j ƒ  | ƒ q{ W|  j t  j | j t ƒ | j ƒ  d  S(   Ni
   RT   R   i   (   RV   Rs   R9   R   Rf   Ro   RX   RÅ   RY   RD   R_   R.   Ra   R¹   RÃ   RZ   Rb   (   R   R³   Rw   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_fork:  s    	
c         C   sÑ   |  j  ƒ  } y |  j | j ƒ  d ƒ Wn t k
 rF |  j d ƒ n X| j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j ƒ  |  j | j ƒ  d ƒ | j ƒ  |  j | j ƒ  d ƒ d  S(   Ni    s   qsize method not implementedi   i   i   (   RV   R.   R«   R-   R>   R9   Ra   (   R   R:   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_qsizeU  s    

c         C   s8   x1 t  | j d  ƒ D] } t j t ƒ | j ƒ  q Wd  S(   N(   R�   Ra   R   R   Rf   Ro   t	   task_done(   RO   R:   t   obj(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_task_doned  s    c         C   s  |  j  ƒ  } t j d	 k  r; t | d ƒ r; |  j d ƒ n  g  t d ƒ D]$ } |  j d |  j d | f ƒ ^ qH } x! | D] } t | _	 | j
 ƒ  qy Wx! t d ƒ D] } | j | ƒ q£ W| j ƒ  x | D] } | j d  ƒ qË Wx | D] } | j ƒ  qé Wd  S(
   Ni   i   RÈ   s#   requires 'queue.task_done()' methodi   RT   R   i
   (   i   i   (   t   JoinableQueueRƒ   t   version_infoRª   R>   t   xrangeRX   RÊ   RY   RD   R_   R9   Rb   R   (   R   R³   Rw   t   workersRd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_task_donej  s    4	
c         C   s”   t  j ƒ  �‚ d } t | d d ƒ � } | j d ƒ Wd  QXt  j t j ƒ  ƒ �7 y t | ƒ Wn! t j	 k
 rƒ |  j
 d ƒ n XWd  QXWd  QXd  S(   Nt   imported_by_an_imported_modules   .pyR�   sÞ   if 1:
                    import multiprocessing

                    q = multiprocessing.Queue()
                    q.put('knock knock')
                    q.get(timeout=3)
                    q.close()
                s?   Probable regression on import lock contention; see Issue #22853(   R    t   temp_cwdR‚   t   writet   DirsOnSysPathR   t   getcwdt
   __import__RV   RÃ   t   fail(   R   t   module_nameR‘   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_no_import_lock_contention‚  s    c         C   s�   |  j  d k r+ |  j d j |  j  ƒ ƒ n  d t f d „  ƒ  Y} t j j ƒ  �G |  j ƒ  } | j | ƒ  ƒ | j t	 ƒ |  j
 | j d d ƒ ƒ Wd  QXd  S(   NR%   s   test not appropriate for {}t   NotSerializablec           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   R   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR2   œ  s    (   R"   R#   R2   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÙ   ›  s   R·   g      ð?(   R=   R>   R?   t   objectt   testR    t   captured_stderrRV   R9   RY   RB   Ra   (   R   RÙ   R:   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt"   test_queue_feeder_donot_stop_onexc–  s    (   R"   R#   R˜   R¶   RÀ   RÁ   RÄ   RÅ   RÆ   RÇ   RÊ   RÏ   RØ   RÝ   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR°   °  s   	:
	4				t	   _TestLockc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sq   |  j  ƒ  } |  j | j ƒ  t ƒ |  j | j t ƒ t ƒ |  j | j ƒ  d  ƒ |  j t t	 j
 f | j ƒ d  S(   N(   t   LockR.   t   acquireRY   RZ   t   releaseR   R¹   R   t	   threadingt   ThreadError(   R   t   lock(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_lock¬  s
    c         C   s­   |  j  ƒ  } |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  d  ƒ |  j | j ƒ  d  ƒ |  j | j ƒ  d  ƒ |  j t t f | j ƒ d  S(   N(	   t   RLockR.   Rà   RY   Rá   R   R¹   t   AssertionErrort   RuntimeError(   R   Rä   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_rlock³  s    c         C   s   |  j  ƒ  � Wd  QXd  S(   N(   Rß   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_lock_context½  s    (   R"   R#   Rå   Ré   Rê   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÞ   ª  s   		
t   _TestSemaphorec           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   sç   |  j  d t | ƒ |  j | j ƒ  t ƒ |  j  d t | ƒ |  j | j ƒ  t ƒ |  j  d t | ƒ |  j | j t ƒ t ƒ |  j  d t | ƒ |  j | j ƒ  d  ƒ |  j  d t | ƒ |  j | j ƒ  d  ƒ |  j  d t | ƒ d  S(   Ni   i   i    (   R1   R5   R.   Rà   RY   RZ   Rá   R   (   R   t   sem(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_semaphoreÄ  s    c         C   sr   |  j  d ƒ } |  j | ƒ |  j | j ƒ  d  ƒ |  j d t | ƒ |  j | j ƒ  d  ƒ |  j d t | ƒ d  S(   Ni   i   i   (   t	   SemaphoreRí   R.   Rá   R   R1   R5   (   R   Rì   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_semaphoreÑ  s    c         C   s    |  j  d ƒ } |  j | ƒ d  S(   Ni   (   t   BoundedSemaphoreRí   (   R   Rì   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_bounded_semaphoreÙ  s    c         C   s&  |  j  d k r+ |  j d j |  j  ƒ ƒ n  |  j d ƒ } t | j ƒ } |  j | t ƒ t ƒ |  j | j	 d ƒ |  j | t d  ƒ t ƒ |  j | j	 d ƒ |  j | t t ƒ t ƒ |  j | j	 d ƒ |  j | t t ƒ t ƒ |  j | j	 t ƒ |  j | d t ƒ t ƒ |  j | j	 t ƒ d  S(   NR%   s   test not appropriate for {}i    g        R·   (   R=   R>   R?   Rî   R   Rà   R.   RZ   R,   R   R   R»   RY   R¼   R½   (   R   Rì   Rà   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_timeoutá  s    (   R"   R#   Rí   Rï   Rñ   Rò   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRë   Â  s   			t   _TestConditionc           B   s>   e  Z e d d  „ ƒ Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s9   | j  ƒ  | j ƒ  | j | ƒ | j ƒ  | j ƒ  d  S(   N(   Rà   Rá   R±   (   RO   t   condt   sleepingt   wokenR·   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‘   ú  s
    


c         C   ss   |  j  d k ro yI | j j ƒ  | j j ƒ  } |  j | d ƒ |  j | j j ƒ  d ƒ Wqo t k
 rk qo Xn  d  S(   NR%   i    (   R=   t   _sleeping_countR5   t   _woken_countR.   t   _wait_semaphoreR-   (   R   Rô   t   sleepers(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   check_invariant  s    c         C   sc  |  j  ƒ  } |  j d ƒ } |  j d ƒ } |  j d |  j d | | | f ƒ } t | _ | j ƒ  t j d |  j d | | | f ƒ } t | _ | j ƒ  | j	 ƒ  | j	 ƒ  t
 j t ƒ |  j d t | ƒ | j	 ƒ  | j ƒ  | j ƒ  t
 j t ƒ |  j d t | ƒ | j	 ƒ  | j ƒ  | j ƒ  t
 j t ƒ |  j d t | ƒ |  j | ƒ | j ƒ  d  S(   Ni    RT   R   i   i   (   t	   ConditionRî   RX   R‘   RY   RD   R_   Râ   t   ThreadRà   R   Rf   Ro   R1   R5   t   notifyRá   Rû   Rb   (   R   Rô   Rõ   Rö   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_notify  s2    $	
$	








c      	   C   sr  |  j  ƒ  } |  j d ƒ } |  j d ƒ } xˆ t d ƒ D]z } |  j d |  j d | | | t f ƒ } t | _ | j ƒ  t	 j
 d |  j d | | | t f ƒ } t | _ | j ƒ  q7 Wx t d ƒ D] } | j ƒ  qÂ Wx t d ƒ D] } | j ƒ  qã W|  j d t | ƒ |  j | ƒ x‚ t d ƒ D]t } |  j d |  j d | | | f ƒ } t | _ | j ƒ  t	 j
 d |  j d | | | f ƒ } t | _ | j ƒ  q$Wx t d ƒ D] } | j ƒ  q©Wt j t ƒ |  j d t | ƒ | j ƒ  | j ƒ  | j ƒ  xP t d ƒ D]B } y t | ƒ d k r'Pn  Wn t k
 r<Pn Xt j t ƒ qW|  j d t | ƒ |  j | ƒ d  S(   Ni    i   RT   R   i   i
   (   Rü   Rî   Rs   RX   R‘   R»   RY   RD   R_   Râ   Rý   RÍ   Rà   R1   R5   Rû   R   Rf   Ro   t
   notify_allRá   R-   (   R   Rô   Rõ   Rö   Rw   Rd   R    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_notify_all8  sR    	
	$	
$	


c         C   sb   |  j  ƒ  } t | j ƒ } | j ƒ  | t ƒ } | j ƒ  |  j | d  ƒ |  j | j	 t ƒ d  S(   N(
   Rü   R   R±   Rà   R»   Rá   R.   R   R,   R   (   R   Rô   R±   R0   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRò   y  s    

N(	   R"   R#   R˜   R   R‘   Rû   Rÿ   R  Rò   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRó   ø  s   		+	At
   _TestEventc           B   s    e  Z e d  „  ƒ Z d „  Z RS(   c         C   s   t  j t ƒ | j ƒ  d  S(   N(   R   Rf   R¼   R²   (   RO   t   event(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_event…  s    c         C   sD  |  j  ƒ  } t | j ƒ } |  j | j ƒ  t ƒ |  j | d ƒ t ƒ |  j | j d ƒ |  j | t ƒ t ƒ |  j | j t ƒ | j	 ƒ  |  j | j ƒ  t
 ƒ |  j | ƒ  t
 ƒ |  j | j d ƒ |  j | t ƒ t
 ƒ |  j | j d ƒ | j ƒ  |  j d |  j d | f ƒ } t
 | _ | j ƒ  |  j | ƒ  t
 ƒ d  S(   Ng        RT   R   (   RW   R   R±   R.   t   is_setRZ   R,   R   R»   R²   RY   t   clearRX   R  RD   R_   (   R   R  R±   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_eventŠ  s$    

	
(   R"   R#   R˜   R  R  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  ƒ  s   t
   _TestValuec           B   sk   e  Z d Z d d d d
 e d ƒ e d ƒ f g Z d „  Z e d „  ƒ Z e d „ Z	 d „  Z
 d „  Z RS(   R%   Rw   i÷  iª^  t   dg      @g      Àt   hiÿÿÿiê   R;   t   xt   yc         C   s   t  s |  j d ƒ n  d  S(   Ns%   requires multiprocessing.sharedctypes(   t   HAS_SHAREDCTYPESR>   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   setUp»  s    c         C   s4   x- t  | |  j ƒ D] \ } } | d | _ q Wd  S(   Ni   (   t   zipt   codes_valuesR/   (   RO   t   valuest   svt   cv(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRP   ¿  s    c   	      C   s  | r: g  |  j  D]! \ } } } |  j | | ƒ ^ q } n1 g  |  j  D]! \ } } } |  j | | ƒ ^ qD } x7 t | |  j  ƒ D]# \ } } |  j | j | d ƒ q~ W|  j d |  j d | f ƒ } t | _	 | j
 ƒ  | j ƒ  x7 t | |  j  ƒ D]# \ } } |  j | j | d ƒ qó Wd  S(   Ni   RT   R   i   (   R  t   RawValueR   R  R.   R/   RX   RP   RY   RD   R_   Rb   (	   R   t   rawR�   R/   t   _R  R  R  R¿   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_valueÅ  s    1.	

c         C   s   |  j  d t ƒ d  S(   NR  (   R  RY   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_rawvalueØ  s    c         C   sK  |  j  d d ƒ } | j ƒ  } | j ƒ  } |  j  d d d d  ƒ} | j ƒ  } | j ƒ  } |  j ƒ  } |  j  d d d | ƒ} | j ƒ  }	 | j ƒ  }
 |  j | |	 ƒ |  j  d d d t ƒ} |  j t | d ƒ ƒ |  j t | d ƒ ƒ |  j	 t
 |  j  d d d d ƒ|  j d d ƒ } |  j t | d ƒ ƒ |  j t | d ƒ ƒ d  S(   NRw   i   Rä   t   get_lockt   get_objt   navalue(   R   R  R  R   Rß   R.   RZ   t   assertFalseRª   R¹   R   R  (   R   t   val1t   lock1t   obj1t   val2t   lock2t   obj2Rä   t   val3t   lock3t   obj3t   arr4t   arr5(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_getobj_getlockÛ  s$    (   R%   (   Rw   i÷  iª^  (   R	  g      @g      À(   R
  iÿÿÿiê   (   R"   R#   R3   t   latinR  R  R˜   RP   RZ   R  R  R(  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  °  s   		t
   _TestArrayc           B   sÅ   e  Z d Z e d „  ƒ Z e j e d	 k d ƒ e	 d „ ƒ Z
 e j e d	 k d ƒ d „  ƒ Z e j e d	 k d ƒ d „  ƒ Z e j e d	 k d ƒ d „  ƒ Z e j e d	 k d ƒ d „  ƒ Z RS(
   R%   c         C   s<   x5 t  d t | ƒ ƒ D] } | | c | | d 7<q Wd  S(   Ni   (   Rs   RG   (   RO   t   seqRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‘   ù  s    s   requires _ctypesc      
   C   sY  d d d d d d d d d	 d
 g
 } | r? |  j  d | ƒ } n |  j d | ƒ } |  j t | ƒ t | ƒ ƒ |  j | d | d ƒ |  j t | d d !ƒ t | d d !ƒ ƒ t j d d d d d g ƒ | d d +| d d +|  j t | ƒ | ƒ |  j | ƒ |  j d |  j d | f ƒ } t | _	 | j
 ƒ  | j ƒ  |  j t | ƒ | ƒ d  S(   Ni¨  ir  i¦  i5  i–   ié   i$  iÖ  iÊ  i?  Rw   i   i   i   i   i   i   RT   R   (   t   RawArrayt   ArrayR.   RG   R^   t   arrayR‘   RX   RY   RD   R_   Rb   (   R   R  R+  t   arrRd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_arrayþ  s    $*0	

c         C   s’   d } x… t  d ƒ D]w } |  j d | ƒ } |  j t | ƒ | ƒ |  j t | ƒ d g | ƒ t  d ƒ | (|  j t | ƒ t  d ƒ ƒ ~ q Wd  S(   Ni
   i   Rw   i    (   Rs   R-  R.   RG   R^   (   R   t   sizeR  R/  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_array_from_size  s    c         C   s   |  j  d t ƒ d  S(   NR  (   R0  RY   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_rawarray&  s    c         C   sT   |  j  d d ƒ } |  j t | ƒ d ƒ |  j d d ƒ } |  j t | ƒ d ƒ d  S(   NRw   l   
 i
   (   R-  R.   RG   R,  (   R   R/  t   raw_arr(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_array_accepts_long*  s    c         C   so  |  j  d t d ƒ ƒ } | j ƒ  } | j ƒ  } |  j  d t d ƒ d d  ƒ} | j ƒ  } | j ƒ  } |  j ƒ  } |  j  d t d ƒ d | ƒ} | j ƒ  }	 | j ƒ  }
 |  j | |	 ƒ |  j  d t d ƒ d t ƒ} |  j t	 | d ƒ ƒ |  j t	 | d ƒ ƒ |  j
 t |  j  d t d ƒ d d ƒ|  j d t d ƒ ƒ } |  j t	 | d ƒ ƒ |  j t	 | d ƒ ƒ d  S(   NRw   i
   Rä   R  R  t   notalock(   R-  Rs   R  R  R   Rß   R.   RZ   R  Rª   R¹   R   R,  (   R   t   arr1R  R  t   arr2R!  R"  Rä   t   arr3R$  R%  R&  R'  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_getobj_getlock_obj1  s&    	(   R%   N(   R"   R#   R3   R˜   R‘   R   t   skipIfR   R   RZ   R0  R2  R3  R5  R:  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR*  õ  s   !!!t   _TestContainersc           B   s;   e  Z d Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   R&   c         C   sû  |  j  t d ƒ ƒ } |  j | t d ƒ ƒ |  j  ƒ  } |  j | g  ƒ | j t d ƒ ƒ |  j | t d ƒ ƒ |  j | d d ƒ |  j | d d !d d d g ƒ | d 9} |  j | d d d d d d d d d d g
 ƒ |  j | d d g d d d d d d d d d d d d g ƒ |  j | t d ƒ ƒ | | g } |  j  | ƒ } |  j | d d d d d d d d	 d
 d g
 d d d d d d d d d d g
 g ƒ |  j  | g ƒ } | j d ƒ |  j | d d d d d d d d	 d
 d d g g ƒ d  S(   Ni
   i   i   i   i   i    i   i   i   i   i	   RQ   (   R^   Rs   R.   t   extendR{   (   R   R*   R+   R	  Rc   R‘   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_listS  s(     
/>Ic         C   sƒ   |  j  t d ƒ ƒ } t | ƒ } |  j t  | ƒ t d ƒ ƒ |  j t  | ƒ g  ƒ t | ƒ } d | d <|  j t | ƒ d ƒ d  S(   Ni
   id   i    (   R^   Rs   R�   R.   t   next(   R   R*   t   it(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_list_iterr  s    
c         C   sò   |  j  ƒ  } t d d ƒ } x | D] } t | ƒ | | <q" W|  j | j ƒ  t  d „  | Dƒ ƒ ƒ |  j t | j ƒ  ƒ | ƒ |  j t | j ƒ  ƒ g  | D] } t | ƒ ^ qš ƒ |  j t | j ƒ  ƒ g  | D] } | t | ƒ f ^ qÏ ƒ d  S(   NiA   iF   c         s   s!   |  ] } | t  | ƒ f Vq d  S(   N(   t   chr(   t   .0Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>�  s    (	   t   dictRs   RB  R.   R   t   sortedt   keysR  t   items(   R   R	  t   indicesRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_dict|  s    &5c         C   s¡   |  j  ƒ  } t d d ƒ } x | D] } t | ƒ | | <q" Wt | ƒ } |  j t | ƒ | ƒ |  j t | ƒ g  ƒ t | ƒ } | j ƒ  |  j t t	 | ƒ d  S(   NiA   iF   (
   RD  Rs   RB  R�   R.   R^   R  R¹   Rè   R?  (   R   R	  RH  Rw   R@  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_dict_iter†  s    
c         C   s�   |  j  ƒ  } d | _ d | _ d | _ |  j | j | j f d ƒ | ` |  j t | ƒ d ƒ |  j t | d ƒ ƒ |  j t | d ƒ ƒ d  S(   Nt   Bobt   Buildert   hiddens   Namespace(name='Bob')RM   t   job(   RK  RL  (   t	   NamespaceRM   RN  t   _hiddenR.   R�   RB   Rª   (   R   t   n(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_namespace“  s    			(   R&   (   R"   R#   R3   R>  RA  RI  RJ  RR  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR<  O  s   		
	
	g        c         C   s   t  j | ƒ |  |  S(   N(   R   Rf   (   R  R±   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   sqr¢  s    c         C   s   |  S(   N(    (   R  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   identity¦  s    t   CountedObjectc           B   s    e  Z d  Z d „  Z d „  Z RS(   i    c         C   s   |  j  d 7_  t j |  ƒ S(   Ni   (   t   n_instancesRÚ   t   __new__(   RO   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRW  ¬  s    c         C   s   t  |  ƒ j d 8_ d  S(   Ni   (   R]   RV  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   __del__°  s    (   R"   R#   RV  RW  RX  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRU  ©  s   	t   SayWhenErrorc           B   s   e  Z RS(    (   R"   R#   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRY  ³  s    c         c   s;   x4 t  |  ƒ D]& } | | k r. t d ƒ ‚ n  | Vq Wd  S(   Ns   Somebody said when(   Rs   RY  (   t   totalt   whenRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   exception_throwing_generatorµ  s    t	   _TestPoolc           B   s†   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   c         C   s[   |  j  j } |  j | t d ƒ t d ƒ ƒ |  j | t d i d d 6ƒ t d d ƒ ƒ d  S(   Ni   i   R  (   i   (    (   t   poolt   applyR.   RS  (   R   t   papply(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_apply½  s    c         C   sr   |  j  j } |  j | t t d ƒ ƒ t t t d ƒ ƒ ƒ |  j | t t d ƒ d d ƒt t t d ƒ ƒ ƒ d  S(   Ni
   id   t	   chunksizei   (   R^  t   mapR.   RS  Rs   (   R   t   pmap(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_mapÂ  s    .c         C   sx   |  j  d k r+ |  j d j |  j  ƒ ƒ n  d t f d „  ƒ  Y} |  j t ƒ �" |  j j t | ƒ  g d ƒ Wd  QXd  S(   NR'   s   test not appropriate for {}t   Ac           B   s   e  Z d  „  Z RS(   c         S   s   t  d ƒ ‚ d  S(   Ns   cannot pickle(   Rè   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR2   Í  s    (   R"   R#   R2   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRf  Ì  s   i
   (	   R=   R>   R?   RÚ   R¹   Rè   R^  Rc  RS  (   R   Rf  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_map_unplicklableÈ  s
    c         C   sQ   y) |  j  j t g  d d ƒj d t ƒ Wn! t j k
 rL |  j d ƒ n Xd  S(   NRb  i   R·   s2   pool.map_async with chunksize stalled on null list(   R^  t	   map_asyncRS  Ra   R»   Rj   t   TimeoutErrorRÖ   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_map_chunksizeÒ  s    )c         C   sT   |  j  j t d t f ƒ } t | j ƒ } |  j | ƒ  d ƒ |  j | j t ƒ d  S(   Ni   i1   (	   R^  t   apply_asyncRS  R»   R   Ra   R.   R,   R   (   R   R0   Ra   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_asyncØ  s    c         C   s^   |  j  j t d t d f ƒ } t | j ƒ } |  j t j | d t ƒ|  j	 | j
 t ƒ d  S(   Ni   g      ð?R·   (   R^  Rk  RS  R¼   R   Ra   R¹   Rj   Ri  R,   R   (   R   R0   Ra   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_async_timeoutÞ  s    c         C   s  |  j  j t t d ƒ ƒ } |  j t | ƒ t t t d ƒ ƒ ƒ |  j  j t t d ƒ ƒ } x. t d ƒ D]  } |  j | j ƒ  | | ƒ qh W|  j t	 | j ƒ |  j  j t t d ƒ d d ƒ} x. t d ƒ D]  } |  j | j ƒ  | | ƒ qÍ W|  j t	 | j ƒ d  S(   Ni
   iè  Rb  id   (
   R^  t   imapRS  Rs   R.   R^   Rc  R?  R¹   t   StopIteration(   R   R@  Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_imapä  s    %!c         C   s^  |  j  d k r+ |  j d j |  j  ƒ ƒ n  |  j j t t d d ƒ d ƒ } x. t d ƒ D]  } |  j t	 | ƒ | | ƒ qY W|  j
 t | j	 ƒ |  j j t t d d ƒ d ƒ } x. t d	 ƒ D]  } |  j t	 | ƒ | | ƒ q¾ W|  j
 t | j	 ƒ |  j j t t d d ƒ d
 ƒ } x. t d
 ƒ D]  } |  j t	 | ƒ | | ƒ q#W|  j
 t | j	 ƒ d  S(   NR&   s   test not appropriate for {}i
   i   i   i   i   i   i   i   (   R=   R>   R?   R^  Rn  RS  R\  Rs   R.   R?  R¹   RY  (   R   R@  Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt#   test_imap_handle_iterable_exceptionò  s    !!!c         C   sŠ   |  j  j t t d ƒ ƒ } |  j t | ƒ t t t d ƒ ƒ ƒ |  j  j t t d ƒ d d ƒ} |  j t | ƒ t t t d ƒ ƒ ƒ d  S(   Nid   iè  Rb  (   R^  t   imap_unorderedRS  Rs   R.   RE  Rc  (   R   R@  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_imap_unordered  s    %!c      	   C   sG  |  j  d k r+ |  j d j |  j  ƒ ƒ n  |  j j t t d d ƒ d ƒ } t t t d ƒ ƒ } |  j	 t
 ƒ �E x= t d ƒ D]/ } t | ƒ } |  j | | ƒ | j | ƒ q~ WWd  QX|  j j t t d d ƒ d ƒ } t t t d ƒ ƒ } |  j	 t
 ƒ �E x= t d ƒ D]/ } t | ƒ } |  j | | ƒ | j | ƒ q
WWd  QXd  S(	   NR&   s   test not appropriate for {}i
   i   i   i   i   i   (   R=   R>   R?   R^  Rr  RS  R\  Rc  Rs   R¹   RY  R?  R`   t   remove(   R   R@  t   expected_valuesRw   R/   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt-   test_imap_unordered_handle_iterable_exception  s(    		c         C   sl   |  j  t t j d ƒ |  j  t t j d ƒ t j d ƒ } |  j d t | j ƒ ƒ | j ƒ  | j ƒ  d  S(   Niÿÿÿÿi    i   (	   R¹   R   Rj   t   PoolR.   RG   t   _poolRœ   Rb   (   R   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_make_pool%  s    
c         C   s}   |  j  d ƒ } | j t j g  t d ƒ D] } d ^ q( d d ƒ} | j ƒ  t | j ƒ } | ƒ  |  j | j	 d k  ƒ d  S(   Ni   i'  gš™™™™™¹?Rb  i   gš™™™™™É?(
   Rw  Rh  R   Rf   Rs   Rh   R   Rb   RB   R   (   R   Rd   Rw   R~   Rb   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRi   .  s    .
c         C   s©   |  j  d ƒ } |  j | j t g  ƒ g  ƒ |  j t | j t g  ƒ ƒ g  ƒ |  j t | j t g  ƒ ƒ g  ƒ |  j | j t g  ƒ j ƒ  g  ƒ | j	 ƒ  | j
 ƒ  d  S(   Ni   (   Rw  R.   Rc  RS  R^   Rn  Rr  Rh  Ra   Rœ   Rb   (   R   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_empty_iterable8  s    """
c         C   s�   t  d „  t d ƒ Dƒ ƒ } t  d „  | Dƒ ƒ } |  j j t | ƒ ~ t j t ƒ |  j t	 d „  | Dƒ ƒ d  h ƒ |  j t j d ƒ d  S(   Nc         s   s   |  ] } t  ƒ  Vq d  S(   N(   RU  (   RC  Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>G  s    i
   c         s   s   |  ] } t  j | ƒ Vq d  S(   N(   R“   R”   (   RC  t   o(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>H  s    c         s   s   |  ] } | ƒ  Vq d  S(   N(    (   RC  R–   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>M  s    i    (   R^   Rs   R^  Rc  RT  R   Rf   Ro   R.   R²   R   RU  RV  (   R   t   objst   refs(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_release_task_refsD  s    #(   R"   R#   Ra  Re  Rg  Rj  Rl  Rm  Rp  Rq  Rs  Rv  Ry  Ri   Rz  R~  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR]  »  s   			
										
	c           C   s   d „  S(   Nc           S   s   d S(   Ni*   (    (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   <lambda>T  t    (    (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   unpickleable_resultS  s    t   _TestPoolWorkerErrorsc           B   s   e  Z d Z d „  Z RS(   R%   c         C   sp   d d l  m } t j d ƒ } x6 t d ƒ D]( } | j t ƒ } |  j | | j ƒ q, W| j	 ƒ  | j
 ƒ  d  S(   Niÿÿÿÿ(   t   MaybeEncodingErrori   i   (   t   multiprocessing.poolRƒ  Rj   Rw  Rs   Rk  R�  R¹   Ra   Rœ   Rb   (   R   Rƒ  Rd   t	   iterationR0   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_unpickleable_resultY  s    
(   R%   (   R"   R#   R3   R†  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‚  V  s   t   _TestPoolWorkerLifetimec           B   s    e  Z d Z d „  Z d „  Z RS(   R%   c   
      C   s€  t  j d d d ƒ} |  j d t | j ƒ ƒ g  | j D] } | j ^ q8 } g  } x0 t d ƒ D]" } | j | j t	 | f ƒ ƒ q` Wx6 t
 | ƒ D]( \ } } |  j | j ƒ  t	 | ƒ ƒ q“ W| j ƒ  d } x; | rt d „  | j Dƒ ƒ r| d 8} t j t ƒ qÒ Wg  | j D] } | j ^ q}	 |  j d  | ƒ |  j d  |	 ƒ |  j t | ƒ t |	 ƒ ƒ | j ƒ  | j ƒ  d  S(   Ni   t   maxtasksperchildi
   id   i2   c         s   s   |  ] } | j  ƒ  Vq d  S(   N(   RC   (   RC  R�   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>y  s    i   (   Rj   Rw  R.   RG   Rx  RN   Rs   R{   Rk  RS  t	   enumerateRa   t   _repopulate_poolt   allR   Rf   Ro   R[   R   t   assertNotEqualRE  Rœ   Rb   (
   R   Rd   R�   t   origworkerpidst   resultsRw   t   jR0   t	   countdownt   finalworkerpids(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_pool_worker_lifetimeh  s&      
#

c         C   s¢   t  j d d d ƒ} g  } x3 t d ƒ D]% } | j | j t | d f ƒ ƒ q( W| j ƒ  | j ƒ  x6 t | ƒ D]( \ } } |  j	 | j
 ƒ  t | ƒ ƒ qr Wd  S(   Ni   Rˆ  i   i   g333333Ó?(   Rj   Rw  Rs   R{   Rk  RS  Rœ   Rb   R‰  R.   Ra   (   R   Rd   RŽ  Rw   R�  R0   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt%   test_pool_worker_lifetime_early_close…  s    #

(   R%   (   R"   R#   R3   R’  R“  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‡  e  s   	t   _TestZZZNumberOfObjectsc           B   s   e  Z d Z d „  Z RS(   R&   c         C   sn   d } t  j ƒ  t j ƒ  |  j j ƒ  } |  j j ƒ  } | | k rZ |  j j ƒ  GH| GHn  |  j | | ƒ d  S(   Ni   (   Rj   R\   t   gct   collectR&   t   _number_of_objectst   _debug_infoR.   (   R   t   EXPECTED_NUMBERR}  t
   debug_info(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_number_of_objectsž  s    

(   R&   (   R"   R#   R3   R›  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR”  —  s   (   t   BaseManagert	   BaseProxyt   RemoteErrort   FooBarc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   d S(   Ns   f()(    (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‘   ±  s    c         C   s
   t  ‚ d  S(   N(   R   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   g³  s    c         C   s   d S(   Ns   _h()(    (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _hµ  s    (   R"   R#   R‘   R   R¡  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRŸ  °  s   		c          c   s$   x t  d ƒ D] }  |  |  Vq Wd  S(   Ni
   (   RÍ   (   Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   baz¸  s    t   IteratorProxyc           B   s)   e  Z d Z d „  Z d „  Z d „  Z RS(   R?  t   __next__c         C   s   |  S(   N(    (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   __iter__¾  s    c         C   s   |  j  d ƒ S(   NR?  (   t   _callmethod(   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR?  À  s    c         C   s   |  j  d ƒ S(   NR¤  (   R¦  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR¤  Â  s    (   R?  R¤  (   R"   R#   t	   _exposed_R¥  R?  R¤  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR£  ¼  s   		t	   MyManagerc           B   s   e  Z RS(    (   R"   R#   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR¨  Å  s   t   Foot   callablet   Bart   exposedR‘   R¡  R¢  t	   proxytypet   _TestMyManagerc           B   s   e  Z d Z d „  Z RS(   R&   c   	      C   sª  t  ƒ  } | j ƒ  | j ƒ  } | j ƒ  } | j ƒ  } g  d D] } t | | ƒ r> | ^ q> } g  d D] } t | | ƒ rf | ^ qf } |  j | d d g ƒ |  j | d d g ƒ |  j | j ƒ  d ƒ |  j t	 | j
 ƒ |  j | j d ƒ d ƒ |  j t | j d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | ƒ g  t d ƒ D] } | | ^ q…ƒ | j ƒ  d  S(	   NR‘   R   R¡  s   f()s   _h()i
   (   R‘   R   R¡  (   R‘   R   R¡  (   R¨  R_   R©  R«  R¢  Rª   R.   R‘   R¹   R   R   R¦  Rž  R¡  R^   Rs   t   shutdown(	   R   R&   t   foot   barR¢  RM   t   foo_methodst   bar_methodsRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_mymanagerÑ  s&    	
((3(   R&   (   R"   R#   R3   R´  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR®  Í  s   c           C   s   t  S(   N(   t   _queue(    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   get_queueò  s    t   QueueManagerc           B   s   e  Z d  Z RS(   s$   manager class used by server process(   R"   R#   t   __doc__(    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR·  õ  s   R¶  t   QueueManager2c           B   s   e  Z d  Z RS(   s@   manager class which specifies the same interface as QueueManager(   R"   R#   R¸  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR¹  ù  s   t	   xmlrpclibt   _TestRemoteManagerc           B   st   e  Z d Z d d e d g Z e Z e j rZ e j	 d ƒ Z
 e j e
 ƒ e j e
 ƒ n  e d „  ƒ Z d „  Z RS(   R&   s   hello worldg      @s=   \u043f\u0440\u0438\u0432\u0456\u0442 \u0441\u0432\u0456\u0442c         C   sK   t  d | d | d t ƒ } | j ƒ  | j ƒ  } | j t |  j ƒ ƒ d  S(   Nt   addressRA   t
   serializer(   R¹  t
   SERIALIZERt   connectR¶  R9   t   tupleR  (   RO   R¼  RA   R&   R³   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _putter  s
    
c         C   sî   t  j d ƒ } t d t j j d f d | d t ƒ } | j ƒ  |  j d |  j	 d | j
 | f ƒ } t | _ | j ƒ  t d | j
 d | d t ƒ } | j ƒ  | j ƒ  } |  j | j ƒ  |  j ƒ |  j t | j t j ƒ ~ | j ƒ  d  S(   Ni    R¼  i    RA   R½  RT   R   (   R   t   urandomR·  RÛ   R    t   HOSTR¾  R_   RX   RÁ  R¼  RY   RD   R¹  R¿  R¶  R.   Ra   R~   R¹   t	   ExceptionR9   R   Rf   R¯  (   R   RA   R&   Rd   t   manager2R³   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_remote  s    !
$	

(   R&   N(   R"   R#   R3   R   RY   R  R~   R    t   have_unicodet   ut   uvalueR{   R˜   RÁ  RÆ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR»     s   	
t   _TestManagerRestartc           B   s    e  Z e d  „  ƒ Z d „  Z RS(   c         C   sB   t  d | d | d t ƒ } | j ƒ  | j ƒ  } | j d ƒ d  S(   NR¼  RA   R½  s   hello world(   R·  R¾  R¿  R¶  R9   (   RO   R¼  RA   R&   R³   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÁ  6  s
    
c         C   sü   t  j d ƒ } t d t j j d f d | d t ƒ } | j ƒ  } | j } | j	 j
 ƒ  | j ƒ  |  j d |  j d | j | f ƒ } | j ƒ  | j ƒ  | j ƒ  } |  j | j ƒ  d ƒ ~ | j ƒ  t d | d | d t ƒ } | j ƒ  | j ƒ  d  S(	   Ni    R¼  i    RA   R½  RT   R   s   hello world(   R   RÂ  R·  RÛ   R    RÃ  R¾  t
   get_serverR¼  t   listenerRœ   R_   RX   RÁ  Rb   R¶  R.   Ra   R¯  (   R   RA   R&   t   srvrt   addrRd   R³   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_rapid_restart>  s$    !	
$



(   R"   R#   R˜   RÁ  RÏ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÊ  4  s   R€  t   _TestConnectionc           B   s+  e  Z d Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z e d „  ƒ Z	 e e
 d „ ƒ Z e j e d	 ƒ d
 „  ƒ Z e j e d	 ƒ e j e j d k d ƒ e j e d k d ƒ e j e e d ƒ d ƒ d „  ƒ ƒ ƒ ƒ Z e d „  ƒ Z e j e d	 ƒ e j e j d k d ƒ d „  ƒ ƒ Z RS(   R%   R'   c         C   s8   x' t  | j t ƒ D] } | j | ƒ q W| j ƒ  d  S(   N(   R�   t
   recv_bytest   SENTINELt
   send_bytesRœ   (   RO   t   connt   msg(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _echo`  s    c         C   s@  |  j  ƒ  \ } } |  j d |  j d | f ƒ } t | _ | j ƒ  d d d  g } t d ƒ } | d } t j d t	 d ƒ ƒ } |  j
 d	 k r® |  j t | j ƒ  ƒ t ƒ n  |  j | j | ƒ d  ƒ |  j | j ƒ  | ƒ |  j | j | ƒ d  ƒ |  j | j ƒ  | ƒ |  j
 d	 k rÓt j d d
 g d ƒ } t | ƒ d
 g d t | ƒ }	 |  j | j | ƒ d  ƒ |  j | j | ƒ t | ƒ | j ƒ |  j t | ƒ |	 ƒ t j d d
 g d ƒ } d
 g d t | ƒ d
 g d t | ƒ }	 |  j | j | ƒ d  ƒ |  j | j | d | j ƒ t | ƒ | j ƒ |  j t | ƒ |	 ƒ t t d d ƒ ƒ } |  j | j | ƒ d  ƒ y | j | ƒ }
 Wn, t j k
 r¾} |  j | j | f ƒ qÓX|  j d |
 ƒ n  t | j ƒ } |  j | ƒ  t ƒ |  j | j  d
 ƒ |  j | t! ƒ t ƒ |  j | j  t! ƒ | j d  ƒ t" j# d ƒ |  j | t! ƒ t ƒ |  j | j  d
 ƒ |  j | j ƒ  d  ƒ t d ƒ d } | j | ƒ |  j | j ƒ  | ƒ | j t$ ƒ | j% ƒ  |  j
 d	 k r2|  j | j& t ƒ |  j | j' t ƒ |  j( t) | j ƒ |  j( t) | j ƒ n  | j* ƒ  d  S(   NRT   R   i   g      @s   hello worldi
   Rw   i   R%   i    i   t    i(   s   expected BufferTooShort, got %sgš™™™™™¹?t   Xi   i   i   i   i   (+   Ry   RX   RÖ  RY   RD   R_   R   R)  R.  Rs   R=   R.   R]   t   filenoRl   Rr   R|   RÓ  RÑ  R^   RG   t   recv_bytes_intot   itemsizet	   bytearrayRj   t   BufferTooShortR   RÖ   R   Rz   RZ   R,   R   R»   R   Rf   RÒ  Rœ   t   readablet   writableR¹   t   EOFErrorRb   (   R   RÔ  Rš   Rd   R+  RÕ  t   longmsgR/  t   bufferR   R0   Rc   Rz   t   really_big_msg(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_connectionf  sn    	

!,
c         C   så   |  j  d t ƒ \ } } |  j | j d ƒ d  ƒ |  j | j ƒ  d ƒ |  j d k rá |  j | j t ƒ |  j | j	 t ƒ |  j | j t ƒ |  j | j	 t ƒ |  j
 t | j d ƒ |  j
 t | j ƒ |  j
 t | j ƒ n  d  S(   NRx   i   R%   i   (   Ry   RZ   R.   Rr   R   R|   R=   RÞ  RY   Rß  R¹   t   IOErrorRz   (   R   t   readert   writer(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_duplex_false²  s    c         C   s¡   |  j  ƒ  \ } } |  j d |  j d | f ƒ } t | _ | j ƒ  | j ƒ  t d ƒ } | j | ƒ |  j	 | j
 ƒ  | ƒ | j t ƒ | j ƒ  | j ƒ  d  S(   NRT   R   RQ   (   Ry   RX   RÖ  RY   RD   R_   Rœ   R)  RÓ  R.   RÑ  RÒ  Rb   (   R   RÔ  Rš   Rd   RÕ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_spawn_close¿  s    	


c         C   s«  |  j  d k r+ |  j d j |  j  ƒ ƒ n  t d ƒ } |  j ƒ  \ } } | j | ƒ |  j | j ƒ  | ƒ | j | d ƒ |  j | j ƒ  | d ƒ | j | d d ƒ |  j | j ƒ  | d d !ƒ | j | d ƒ |  j | j ƒ  t d ƒ ƒ | j | d d	 ƒ |  j | j ƒ  t d ƒ ƒ |  j t	 | j | d
 ƒ |  j t	 | j | d d ƒ |  j t	 | j | d d ƒ |  j t	 | j | d ƒ |  j t	 | j | d d ƒ d  S(   NR%   s   test not appropriate for {}t   abcdefghijklmnopqrstuvwxyzi   i   i   i   R€  i    i   i   i   iÿÿÿÿi   i   (
   R=   R>   R?   R)  Ry   RÓ  R.   RÑ  R¹   R   (   R   RÕ  R*   R+   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_sendbytesÔ  s&    c         C   sH   y t  j | ƒ Wn, t k
 r? } | j t j k r9 t S‚  n Xt Sd  S(   N(   R   t   fstatt   OSErrort   errnot   EBADFRZ   RY   (   RO   t   fdRc   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _is_fd_assignedô  s    c         C   s™   | rK xB t  d d ƒ D]. } |  j | ƒ s t j | j ƒ  | ƒ q q Wn  t j | ƒ } t rx t j | t j	 ƒ } n  t j
 | | ƒ t j | ƒ d  S(   Ni    i   (   Rs   Rñ  R   t   dup2RÙ  R   t   recv_handlet   msvcrtt   open_osfhandlet   O_WRONLYRÒ   Rœ   (   RO   RÔ  t   datat   create_dummy_fdsRw   Rð  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _writefdÿ  s     s$   test needs multiprocessing.reductionc         C   s  |  j  d k r |  j d ƒ n  |  j d t ƒ \ } } |  j d |  j d | d f ƒ } t | _ | j ƒ  |  j t	 j
 t	 j ƒ t t	 j d ƒ �A } | j ƒ  } t rº t j | ƒ } n  t j | | | j ƒ Wd  QX| j ƒ  t t	 j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(	   NR%   s   only makes sense with processesRx   RT   R   R°  t   wbt   rb(   R=   R>   Ry   RY   RX   Rù  RD   R_   R‹   R    RŒ   RŠ   R‚   RÙ  Rô  t   get_osfhandleR   t   send_handleRN   Rb   R.   R�   (   R   RÔ  Rš   Rd   R‘   Rð  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_fd_transfer  s    !	

R   s*   test semantics don't make sense on Windowsi   s)   largest assignable fd number is too smallRò  s   test needs os.dup2()c      	   C   s_  |  j  d k r |  j d ƒ n  |  j d t ƒ \ } } |  j d |  j d | d t f ƒ } t | _ | j ƒ  |  j t	 j
 t	 j ƒ t t	 j d ƒ �ˆ } | j ƒ  } x7 t d t ƒ D] } |  j | ƒ sµ Pqµ qµ W|  j d	 ƒ t j | | ƒ z t j | | | j ƒ Wd  t j | ƒ XWd  QX| j ƒ  t t	 j d
 ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   NR%   s   only makes sense with processesRx   RT   R   R±  Rú  i   s2   could not find an unassigned large file descriptorRû  (   R=   R>   Ry   RY   RX   Rù  RD   R_   R‹   R    RŒ   RŠ   R‚   RÙ  Rs   t   MAXFDRñ  RÖ   R   Rò  R   Rý  RN   Rœ   Rb   R.   R�   (   R   RÔ  Rš   Rd   R‘   Rð  t   newfd(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_large_fd_transfer  s(    	$	

c         C   s   t  j | j ƒ  d ƒ d  S(   Ns    (   R   RÒ   RÙ  (   R   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _send_data_without_fd?  s    s   doesn't make sense on Windowsc         C   sŒ   |  j  d k r |  j d ƒ n  |  j d t ƒ \ } } |  j d |  j d | f ƒ } t | _ | j ƒ  |  j t	 t
 j | ƒ | j ƒ  d  S(   NR%   s   only makes sense with processesRx   RT   R   (   R=   R>   Ry   RY   RX   R  RD   R_   R¹   Rè   R   Ró  Rb   (   R   RÔ  Rš   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_missing_fd_transferC  s    	
(   R%   R'   (   R"   R#   R3   R˜   RÖ  Rä  Rè  Ré  Rë  Rñ  RZ   Rù  R   t
   skipUnlesst   HAS_REDUCTIONRþ  R;  Rƒ   t   platformRÿ  Rª   R   R  R  R  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÐ  \  s(   	L			 t   _TestListenerClientc           B   s/   e  Z d Z e d „  ƒ Z d „  Z d „  Z RS(   R%   R'   c         C   s-   |  j  j | ƒ } | j d ƒ | j ƒ  d  S(   NRQ   (   t
   connectiont   ClientRr   Rœ   (   RO   R¼  RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRP   V  s    c         C   sš   x“ |  j  j D]… } |  j  j d | ƒ } |  j d |  j d | j f ƒ } t | _ | j ƒ  | j	 ƒ  } |  j
 | j ƒ  d ƒ | j ƒ  | j ƒ  q Wd  S(   Nt   familyRT   R   RQ   (   R  t   familiest   ListenerRX   RP   R¼  RY   RD   R_   t   acceptR.   R|   Rb   Rœ   (   R   R
  t   lRd   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_listener_client\  s    !	

c         C   s”   |  j  j ƒ  } |  j d |  j d | j f ƒ } t | _ | j ƒ  t j	 d ƒ | j
 ƒ  } |  j | j ƒ  d ƒ | j ƒ  | j ƒ  | j ƒ  d  S(   NRT   R   i   RQ   (   R  R  RX   RP   R¼  RY   RD   R_   R   Rf   R  R.   R|   Rœ   Rb   (   R   R  Rd   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_issue14725g  s    !	


(   R%   R'   (   R"   R#   R3   R˜   RP   R  R  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  R  s   	t	   _TestHeapc           B   s    e  Z d Z d „  Z d „  Z RS(   R%   c         C   s  d } d } g  } xz t  | ƒ D]l } t t j d d ƒ d ƒ } t j j | ƒ } | j | ƒ t | ƒ | k r t j	 | ƒ } | | =q q Wt j j j
 } g  } d }	 | j j ƒ  |  j | j j ƒ x] | j j ƒ  D]L }
 xC |
 D]; \ } } } | j | j j | ƒ | | | | d f ƒ qç WqÚ WxT | j D]I \ } } } | j | j j | ƒ | | | | d f ƒ |	 | | 7}	 q4W| j ƒ  x{ t t | ƒ d ƒ D]c } | | d  \ } } } | | d d  \ } } } |  j | | k rø| d k p| | k ƒ q¢Wd  S(	   Niˆ  i2   i    i   iè  t   freet   occupiedi   (   RÍ   Rl   t   randomt   lognormvariateRj   t   heapt   BufferWrapperR{   RG   t	   randranget   _heapt   _lockRà   R‹   Rá   t   _len_to_seqR  t   _arenast   indext   _allocated_blockst   sortRs   RB   (   R   t
   iterationst	   maxblockst   blocksRw   R1  R+   R  R‹  R  t   Lt   arenaR_   R¢   t   narenat   nstartt   nstop(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_heap×  s:    
c         C   s¦   t  j ƒ  s) t  j ƒ  |  j t  j ƒ n  t  j ƒ  } |  j t  j | Œ t  j d ƒ xJ t d ƒ D]< } t j	 j
 d ƒ } t j	 j
 d ƒ } | | _ | | _ qb Wd  S(   Ni
   iˆ  i   (   R•  t	   isenabledt   enableR‹   t   disablet   get_thresholdt   set_thresholdRs   Rj   R  R  t   buddy(   R   t
   thresholdsRw   R*   R+   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_free_from_gcþ  s    
	(   R%   (   R"   R#   R3   R(  R0  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  Ó  s   	't   _Fooc           B   s    e  Z d  e f d e f g Z RS(   R  R  (   R"   R#   R   R   t   _fields_(    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR1    s   	t   _TestSharedCTypesc           B   sD   e  Z d Z d „  Z e d „  ƒ Z e d „ Z d „  Z d „  Z	 RS(   R%   c         C   s   t  s |  j d ƒ n  d  S(   Ns%   requires multiprocessing.sharedctypes(   R  R>   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  "  s    c         C   s|   | j  d 9_  | j  d 9_  | j d 9_ | j d 9_ | j  d 9_  x* t t | ƒ ƒ D] } | | c d 9<q^ Wd  S(   Ni   (   R/   R  R  Rs   RG   (   RO   R  R  R°  R/  t   stringRw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _double&  s    c   	   	   C   sn  t  d d d | ƒ} t  t d d d | ƒ} t  t d d d | ƒ} |  j d t d	 ƒ d | ƒ} |  j d
 d d | ƒ} t d ƒ | _ |  j d |  j d | | | | | f ƒ } t	 | _
 | j ƒ  | j ƒ  |  j | j d ƒ |  j | j d d ƒ |  j | j d ƒ |  j | j d ƒ x, t d	 ƒ D] } |  j | | | d ƒ q/W|  j | j t d ƒ ƒ d  S(   NRw   i   Rä   g      ð?g      @i   i   R	  i
   R;   i   RQ   RT   R   i   g       @i   g      @t
   hellohello(   R   R   R1  R-  Rs   R)  R/   RX   R5  RY   RD   R_   Rb   R.   R)   R  R  (	   R   Rä   R  R  R°  R/  R4  Rd   Rw   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_sharedctypes0  s"    *	

c         C   s   |  j  d t ƒ d  S(   NRä   (   R7  RY   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_synchronizeE  s    c         C   sW   t  d d ƒ } t | ƒ } d | _ d | _ |  j | j d ƒ |  j | j d ƒ d  S(   Ni   g      @i    (   R1  R   R  R  R.   R)   (   R   R°  R±  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_copyH  s    		(   R%   (
   R"   R#   R3   R  R˜   R5  RZ   R7  R8  R9  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR3    s   	
	t   _TestFinalizec           B   sA   e  Z d Z d „  Z d „  Z e d „  ƒ Z d „  Z d „  Z RS(   R%   c         C   s#   t  j j ƒ  |  _ t  j j ƒ  d  S(   N(   R   t   _finalizer_registryR   t   registry_backupR  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  X  s    c         C   s'   |  j  t j ƒ t j j |  j ƒ d  S(   N(   R  R   R;  t   updateR<  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   tearDown\  s    c         C   s•  d t  f d „  ƒ  Y} | ƒ  } t j | | j d d ƒ~ | ƒ  } t j | | j d d ƒ} | ƒ  | ƒ  ~ | ƒ  } t j | | j d d ƒ| ƒ  } t j | | j d d d d	 ƒ| ƒ  } t j | | j d d d d ƒ| ƒ  }	 t j |	 | j d d d d ƒ| ƒ  }
 t j |
 | j d d d d ƒt j d  | j d d d d ƒt j d  | j d d d d ƒt j ƒ  | j ƒ  t j d ƒ d  S(   NR©  c           B   s   e  Z RS(    (   R"   R#   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR©  b  s   R   R*   R+   R;   t   d10t   exitpriorityi   t   d01i    t   d02t   d03Rc   iöÿÿÿt   STOPiœÿÿÿ(   R*   (   R+   (   R;   (   R?  (   RA  (   RB  (   RC  (   Rc   (   RD  (	   RÚ   R   t   FinalizeRr   R   t   _exit_functionRœ   R   t   _exit(   RO   RÔ  R©  R*   R+   t   close_bR;   R?  RA  RB  RC  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_finalize`  s0    							

c      	   C   s›   |  j  ƒ  \ } } |  j d |  j d | f ƒ } t | _ | j ƒ  | j ƒ  g  t | j d ƒ D] } | ^ q` } |  j	 | d d d d d d	 d
 g ƒ d  S(   NRT   R   RD  R*   R+   R?  RC  RB  RA  Rc   (
   Ry   RX   RI  RY   RD   R_   Rb   R�   R|   R.   (   R   RÔ  Rš   Rd   RÉ   R~   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_finalize†  s    	

%c            s   d „  ‰ d t  f ‡ f d †  ƒ  Y‰  t ‰ g  ‰ ‡ ‡ f d †  } ‡  ‡ ‡ f d †  } t j ƒ  } t j ƒ  } z„ t j d ƒ t j d d d ƒ t j	 d | ƒ t j	 d | ƒ g } t
 j | ƒ � t j d	 ƒ t ‰ Wd  QXˆ ró ˆ d
 ‚ n  Wd  t j | ƒ t j | Œ  t j ƒ  Xd  S(   Nc           S   s   d  S(   N(    (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   cb“  s    R©  c              s   e  Z ‡  f d  †  Z RS(   c            s/   |  |  _  t j |  ˆ  d t j d d ƒ ƒd  S(   NR@  i   id   (   R”   R   RE  R  t   randint(   R   (   RK  (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR   —  s    	(   R"   R#   R   (    (   RK  (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR©  –  s   c             sY   xR ˆ sT t  j t j ƒ  d ƒ y t j ƒ  Wq t k
 rP }  ˆ  j |  ƒ q Xq Wd  S(   Ngš™™™™™¹?(   R   Rf   R  R   t   _run_finalizersRÄ  R{   (   Rc   (   t   exct   finish(    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   run_finalizersŸ  s    	c             sq   i  }  xd ˆ sl y- ‡  f d †  t  d ƒ Dƒ |  t j d ƒ <Wq	 t k
 rh } ˆ j | ƒ |  j ƒ  q	 Xq	 Wd  S(   Nc            s   h  |  ] } ˆ  ƒ  ’ q S(    (    (   RC  Rw   (   R©  (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <setcomp>¯  s   	 i
   i   (   Rs   R  t   getrandbitsRÄ  R{   R  (   R	  Rc   (   R©  RN  RO  (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   make_finalizers©  s    	-i
   i   RT   g      @i    (   RÚ   RZ   Rƒ   t   getcheckintervalR•  R,  t   setcheckintervalR-  Râ   Rý   R    t   start_threadsR   Rf   RY   R–  (   R   RP  RR  t   old_intervalt   old_thresholdR'   (    (   R©  RK  RN  RO  s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_thread_safety‘  s*    	
(   R%   (	   R"   R#   R3   R  R>  R˜   RI  RJ  RX  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR:  T  s   		&	t   _TestImportStarc           B   s   e  Z d Z d „  Z RS(   R%   c         C   s¼   d d d d d d d d g } t  r4 | j d	 ƒ n  t d  k	 rP | j d
 ƒ n  xe | D]] } t | ƒ t j | } x= t | d d ƒ D]) } |  j t	 | | ƒ d | | f ƒ q‡ WqW Wd  S(   NRj   s   multiprocessing.connections   multiprocessing.heaps   multiprocessing.managerss   multiprocessing.pools   multiprocessing.processs   multiprocessing.synchronizes   multiprocessing.utils   multiprocessing.reductions   multiprocessing.sharedctypest   __all__s   %r does not have attribute %r(    (
   R  R{   R   R   RÕ   Rƒ   t   modulest   getattrRB   Rª   (   R   R[  RM   t   modt   attr(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_importÎ  s    
(   R%   (   R"   R#   R3   R_  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRY  Ê  s   t   _TestLoggingc           B   s/   e  Z d Z d „  Z e d „  ƒ Z d „  Z RS(   R%   c         C   sZ   t  j ƒ  } | j t j ƒ |  j | d  k	 ƒ | j d ƒ | j d ƒ | j t	 ƒ d  S(   Ns   this will not be printeds   nor will this(
   Rj   t
   get_loggert   setLevelR   t
   SUBWARNINGRB   R   t   debugt   infot	   LOG_LEVEL(   R   t   logger(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_enable_loggingï  s    c         C   s#   t  j ƒ  } | j | j ƒ  ƒ d  S(   N(   Rj   Ra  Rr   t   getEffectiveLevel(   RO   RÔ  Rg  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_level÷  s    c   	      C   s  d } d } t  j ƒ  } t j ƒ  } | j } t  j d t ƒ \ } } | j | ƒ |  j d |  j	 d | f ƒ } t
 | _ | j ƒ  |  j | | j ƒ  ƒ | j t j ƒ | j | ƒ |  j d |  j	 d | f ƒ } t
 | _ | j ƒ  |  j | | j ƒ  ƒ | j | ƒ | j d t ƒ d  S(   Ni    i%   Rx   RT   R   t   level(   Rj   Ra  t   loggingt	   getLoggerRk  Ry   RZ   Rb  RX   Rj  RY   RD   R_   R.   R|   t   NOTSETRf  (	   R   t   LEVEL1t   LEVEL2Rg  t   root_loggert
   root_levelRæ  Rç  Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_levelü  s&    		
	
(   R%   (   R"   R#   R3   Rh  R˜   Rj  Rs  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR`  ë  s   	t   _TestPollEintrc           B   sA   e  Z d Z e d „  ƒ Z e j e e d ƒ d ƒ d „  ƒ Z	 RS(   R%   c         C   s$   t  j d ƒ t j | t j ƒ d  S(   Ng      à?(   R   Rf   R   t   killt   signalt   SIGUSR1(   RO   RN   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _killer2	  s    Rw  s   requires SIGUSR1c            sÝ   t  g ‰  ‡  f d †  } t j ƒ  } t j t j | ƒ } z‰ |  j d |  j d | f ƒ } | j ƒ  |  j d t j	 d d ƒ } | j ƒ  | j
 ƒ  |  j ˆ  d ƒ |  j | j d ƒ | j
 ƒ  Wd  t j t j | ƒ Xd  S(   Nc             s   t  ˆ  d <d  S(   Ni    (   RY   (   R   (   t
   got_signal(    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   record:	  s    RT   R   i   i    (   i   (   RZ   R   RI   Rv  Rw  RX   Rx  R_   R   Rf   Rb   RB   R.   RJ   (   R   Rz  RN   t
   oldhandlert   killerRd   (    (   Ry  s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_poll_eintr7	  s    	


(   R%   (
   R"   R#   R3   R˜   Rx  R   R  Rª   Rv  R}  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRt  .	  s   t   TestInvalidHandlec           B   s#   e  Z e j e d  ƒ d „  ƒ Z RS(   s   skipped on Windowsc         C   s<   t  j d ƒ } |  j t | j ƒ |  j t t  j d ƒ d  S(   NiÈM®iÿÿÿÿ(   R   t
   ConnectionR¹   Rå  Rz   (   R   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_invalid_handlesP	  s    (   R"   R#   R   R;  t   WIN32R€  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR~  N	  s   c         C   s[   i  } xN | D]F } t  |  | ƒ } t | ƒ t t ƒ k rI t | ƒ } n  | | | <q W| S(   N(   R\  R]   t   get_attributest   staticmethod(   t   Sourcet   namesR	  RM   RÉ   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR‚  Z	  s    c   	      C   s´   i  } t  ƒ  } | j ƒ  } x’ | j ƒ  D]„ } | j d ƒ r( | | } | | j k r¬ d | | d } d | t j |  f d „  ƒ  Y} | | | <| | _ |  j | _ q¬ q( q( W| S(   Nt   _Testt   Withi   t   Tempc           B   s   e  Z RS(    (   R"   R#   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRˆ  m	  s   (	   t   globalst
   capitalizeRF  t
   startswithR3   R   t   TestCaseR"   R#   (	   t   MixinR]   R~   t   globt   TypeRM   t   baset   newnameRˆ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   create_test_casesc	  s    	

	t   ProcessesMixinc           B   s0   e  Z d  Z e j Z e ƒ  j e e d ƒ ƒ RS(   R%   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R  R,  R@   R\   Ry   R  RË   Rw  (   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R  R,  R@   R\   Ry   R  RË   Rw  (   R"   R#   R=   Rj   RX   t   localsR=  R‚  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR“  x	  s   	   R]   R%   t   ManagerMixinc           B   sE   e  Z d  Z e j Z e j e j j ƒ Z	 e
 ƒ  j e e	 d ƒ ƒ RS(   R&   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R^   RD  RO  RË   Rw  (   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R^   RD  RO  RË   Rw  (   R"   R#   R=   Rj   RX   RÚ   RW  t   managerst   SyncManagerR&   R”  R=  R‚  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR•  †	  s   	  R&   t   ThreadsMixinc           B   s6   e  Z d  Z e j j Z e ƒ  j e e j d ƒ ƒ RS(   R'   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R@   R\   Ry   R  RD  R^   RO  RË   Rw  (   RV   Rß   Ræ   Rî   Rð   Rü   RW   R   R-  R@   R\   Ry   R  RD  R^   RO  RË   Rw  (	   R"   R#   R=   Rj   t   dummyRX   R”  R=  R‚  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR˜  ”	  s      R'   t	   OtherTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s<   d t  f d „  ƒ  Y} |  j t j t j j | ƒ  d ƒ d  S(   Nt   _FakeConnectionc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d S(   Ns   something bogus(    (   R   R1  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÑ  ¥	  s    c         S   s   d  S(   N(    (   R   R÷  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÓ  §	  s    (   R"   R#   RÑ  RÓ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR›  ¤	  s   	t   abc(   RÚ   R¹   Rj   t   AuthenticationErrorR  t   deliver_challenge(   R   R›  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt#   test_deliver_challenge_auth_failure£	  s    	c         C   s<   d t  f d „  ƒ  Y} |  j t j t j j | ƒ  d ƒ d  S(   NR›  c           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   d |  _  d  S(   Ni    (   t   count(   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR   ¯	  s    c         S   s?   |  j  d 7_  |  j  d k r( t j j S|  j  d k r; d Sd S(   Ni   i   s   something bogusR€  (   R   Rj   R  t	   CHALLENGE(   R   R1  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÑ  ±	  s    
c         S   s   d  S(   N(    (   R   R÷  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÓ  ¸	  s    (   R"   R#   R   RÑ  RÓ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR›  ®	  s   		Rœ  (   RÚ   R¹   Rj   R�  R  t   answer_challenge(   R   R›  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt"   test_answer_challenge_auth_failure­	  s    	(   R"   R#   RŸ  R£  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRš  ¡	  s   	
c         C   s   |  j  d 7_  d  S(   Ni   (   RÛ   (   t   ns(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   initializerÂ	  s    t   TestInitializersc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s1   t  j ƒ  |  _ |  j j ƒ  |  _ d |  j _ d  S(   Ni    (   Rj   t   Managert   mgrRO  R¤  RÛ   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  Æ	  s    c         C   s   |  j  j ƒ  d  S(   N(   R¨  R¯  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR>  Ë	  s    c         C   s_   t  j j ƒ  } |  j t | j d ƒ | j t |  j f ƒ |  j |  j j	 d ƒ | j
 ƒ  d  S(   Ni   (   Rj   R–  R—  R¹   t	   TypeErrorR_   R¥  R¤  R.   RÛ   R¯  (   R   t   m(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_manager_initializerÎ	  s
    c         C   sb   |  j  t t j d d ƒt j d t |  j f ƒ } | j ƒ  | j ƒ  |  j |  j j	 d ƒ d  S(   NR¥  i   (
   R¹   R©  Rj   Rw  R¥  R¤  Rœ   Rb   R.   RÛ   (   R   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_pool_initializerÕ	  s
    

(   R"   R#   R  R>  R«  R¬  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR¦  Å	  s   			c         C   s1   y |  j  d t ƒ } Wn t j k
 r, n Xd  S(   Nt   block(   Ra   RZ   RV   RÃ   (   R:   t   item(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _this_sub_processá	  s    c         C   sH   t  j ƒ  } t  j d t d | f ƒ } t | _ | j ƒ  | j ƒ  d  S(   NRT   R   (   Rj   RV   RX   R¯  RY   RD   R_   Rb   (   R:   R³   t   subProc(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_processç	  s
    	
c         C   s   |  |  S(   N(    (   R  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _afuncî	  s    c       	   C   s=   t  j d d ƒ }  |  j t d d d d d d d g ƒ } d  S(	   NR%   i   i   i   i   i   i   i   (   Rj   Rw  Rc  R²  (   R^  R  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   pool_in_processñ	  s    t
   _file_likec           B   s2   e  Z d  „  Z e d „  ƒ Z d „  Z d „  Z RS(   c         C   s   | |  _  d  |  _ d  S(   N(   t	   _delegateR   t   _pid(   R   t   delegate(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR   ö	  s    	c         C   s7   t  j ƒ  } | |  j k r0 | |  _ g  |  _ n  |  j S(   N(   R   RI   R¶  t   _cache(   R   RN   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   cacheú	  s
    	c         C   s   |  j  j | ƒ d  S(   N(   R¹  R{   (   R   R÷  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÒ   
  s    c         C   s)   |  j  j d j |  j ƒ ƒ g  |  _ d  S(   NR€  (   Rµ  RÒ   Rb   R¹  R¸  (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   flush
  s    (   R"   R#   R   t   propertyR¹  RÒ   Rº  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR´  õ	  s   			t   TestStdinBadfiledescriptorc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s?   t  j ƒ  } t  j d t d | f ƒ } | j ƒ  | j ƒ  d  S(   NRT   R   (   Rj   RV   RX   R±  R_   Rb   (   R   R³   R¿   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_queue_in_process
  s    
c         C   s*   t  j d t ƒ } | j ƒ  | j ƒ  d  S(   NRT   (   Rj   RX   R³  R_   Rb   (   R   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_pool_in_process
  s    
c            sK   t  ƒ  } t | ƒ ‰  ˆ  j d ƒ t j d ‡  f d †  ƒ } ˆ  j ƒ  d  S(   NR°  RT   c              s
   ˆ  j  ƒ  S(   N(   Rº  (    (   t   flike(    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  
  R€  (   R   R´  RÒ   Rj   RX   Rº  (   R   t   sioR¿   (    (   R¿  s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_flushing
  s    	
(   R"   R#   R½  R¾  RÁ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR¼  

  s   		t   TestTimeoutsc           B   s    e  Z e d  „  ƒ Z d „  Z RS(   c         C   sQ   t  j d ƒ | j d ƒ | j ƒ  t j j | ƒ } | j d ƒ | j ƒ  d  S(   Ni   i{   iÈ  (   R   Rf   Rr   Rœ   Rj   R  R	  (   RO   t   childR¼  RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_timeout$
  s    
c         C   sú   t  j ƒ  } zÙ t  j d ƒ t j d t ƒ \ } } t j j d d ƒ } t j d |  j	 d | | j
 f ƒ } | j ƒ  | j ƒ  |  j | j ƒ  d ƒ | j ƒ  | j ƒ  } |  j | j ƒ  d ƒ | j ƒ  | j ƒ  | j d	 ƒ Wd  t  j | ƒ Xd  S(
   Ngš™™™™™¹?Rx   R
  t   AF_INETRT   R   i{   iÈ  i
   (   t   sockett   getdefaulttimeoutt   setdefaulttimeoutRj   Ry   RY   R  R  RX   RÄ  R¼  R_   Rœ   R.   R|   R  Rb   (   R   t   old_timeoutt   parentRÃ  R  Rd   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRò   -
  s"    




(   R"   R#   R˜   RÄ  Rò   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÂ  #
  s   	t   TestNoForkBombc           B   s   e  Z d  „  Z RS(   c         C   sª   t  j j t  j j t ƒ d ƒ } t re t j j | ƒ \ } } } |  j	 | d ƒ |  j
 d | ƒ nA t j j | ƒ \ } } } |  j	 | j ƒ  d ƒ |  j	 | d ƒ d  S(   Ns   mp_fork_bomb.pyR€  Rè   t   123(   R   t   pathRb   t   dirnamet   __file__R�  RÛ   t   script_helpert   assert_python_failureR.   R`   t   assert_python_okRŽ   (   R   RM   t   rct   outt   err(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_noforkbombF
  s    !(   R"   R#   RÖ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRË  E
  s   t	   TestFlagsc           B   s8   e  Z e d  „  ƒ Z e d „  ƒ Z e j d „  ƒ Z RS(   c         C   s   | j  t t j ƒ ƒ d  S(   N(   Rr   RÀ  Rƒ   t   flags(   RO   RÔ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   run_in_grandchildV
  s    c         C   s�   d d  l  } t j d t ƒ \ } } t j d |  j d | f ƒ } | j ƒ  | j ƒ  } | j ƒ  | j	 ƒ  | j	 ƒ  t
 t j ƒ | f } | j | ƒ GHd  S(   NiÿÿÿÿRx   RT   R   (   t   jsonRj   Ry   RZ   RX   RÙ  R_   R|   Rb   Rœ   RÀ  Rƒ   RØ  t   dumps(   RO   RÚ  R‰   R�   Rd   t   grandchild_flagsRØ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   run_in_childZ
  s    



c         C   sx   d d  l  } d d  l } d d } | j t j d d d d | g ƒ } | j | j d ƒ ƒ \ } } |  j | | ƒ d  S(	   Niÿÿÿÿs1   from test.test_multiprocessing import TestFlags; s   TestFlags.run_in_child()s   -Es   -Bs   -Os   -ct   ascii(   RÚ  t
   subprocesst   check_outputRƒ   t
   executablet   loadst   decodeR.   (   R   RÚ  Rß  t   progR÷  t   child_flagsRÜ  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt
   test_flagsg
  s    (   R"   R#   R˜   RÙ  RÝ  R    t   requires_unicodeRæ  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR×  U
  s   t   TestForkAwareThreadLockc           B   s    e  Z e d  „  ƒ Z d „  Z RS(   c         C   sl   | d k rH t  j d |  j d | d | f ƒ } | j ƒ  | j ƒ  n | j t t j ƒ ƒ | j	 ƒ  d  S(   Ni   RT   R   (
   Rj   RX   RÃ  R_   Rb   Rr   RG   R   t   _afterfork_registryRœ   (   RO   RQ  RÔ  Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRÃ  {
  s    %
c         C   s…   t  j t ƒ \ } } t j ƒ  } t t j ƒ } t  j d |  j d d | f ƒ } | j	 ƒ  | j
 ƒ  } | j ƒ  |  j | | ƒ d  S(   NRT   R   i   (   Rj   Ry   RZ   R   t   ForkAwareThreadLockRG   Ré  RX   RÃ  R_   R|   Rb   t   assertLessEqual(   R   R‰   R�   R  t   old_sizeRd   t   new_size(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRå   …
  s    !

(   R"   R#   R˜   RÃ  Rå   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRè  v
  s   
t   TestIgnoreEINTRc           B   sƒ   e  Z e e j e j ƒ Z e d  „  ƒ Z e	 j
 e e d ƒ d ƒ d „  ƒ Z e d „  ƒ Z e	 j
 e e d ƒ d ƒ d „  ƒ Z RS(   c         C   sZ   d „  } t  j  t  j | ƒ | j d ƒ | j ƒ  } | j | ƒ | j d |  j ƒ d  S(   Nc         S   s   d  S(   N(    (   t   signumt   frame(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   handlerš
  s    t   readyR  (   Rv  Rw  Rr   R|   RÓ  t   CONN_MAX_SIZE(   RO   RÔ  Rñ  R  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_ignore˜
  s    	Rw  s   requires SIGUSR1c         C   s#  t  j ƒ  \ } } zÿ t  j d |  j d | f ƒ } t | _ | j ƒ  | j ƒ  |  j | j	 ƒ  d ƒ t
 j d ƒ t j | j t j ƒ t
 j d ƒ | j d ƒ |  j | j	 ƒ  d ƒ t
 j d ƒ t j | j t j ƒ |  j | j ƒ  d |  j ƒ t
 j d ƒ | j ƒ  Wd  | j ƒ  Xd  S(   NRT   R   Rò  gš™™™™™¹?iÒ  R  (   Rj   Ry   RX   Rô  RY   RD   R_   Rœ   R.   R|   R   Rf   R   Ru  RN   Rv  Rw  Rr   RÑ  Ró  Rb   (   R   RÔ  Rš   Rd   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_ignore¢
  s&    	

c         C   sX   d „  } t  j  t  j | ƒ t j j ƒ  } | j | j ƒ | j ƒ  } | j d ƒ d  S(   Nc         S   s   d  S(   N(    (   Rï  Rð  (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRñ  »
  s    t   welcome(   Rv  Rw  Rj   R  R  Rr   R¼  R  (   RO   RÔ  Rñ  R  R*   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   _test_ignore_listener¹
  s    	c         C   sÑ   t  j ƒ  \ } } z­ t  j d |  j d | f ƒ } t | _ | j ƒ  | j ƒ  | j ƒ  } t	 j
 d ƒ t j | j t j ƒ t	 j
 d ƒ t  j j | ƒ } |  j | j ƒ  d ƒ | j ƒ  Wd  | j ƒ  Xd  S(   NRT   R   gš™™™™™¹?Rö  (   Rj   Ry   RX   R÷  RY   RD   R_   Rœ   R|   R   Rf   R   Ru  RN   Rv  Rw  R  R	  R.   Rb   (   R   RÔ  Rš   Rd   R¼  t   client(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   test_ignore_listenerÃ
  s    	

(   R"   R#   t   maxR    t   PIPE_MAX_SIZEt   SOCK_MAX_SIZERó  R˜   Rô  R   R  Rª   Rv  Rõ  R÷  Rù  (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyRî  “
  s
   
$
c            sÜ  t  j j d ƒ rH y t j ƒ  } WqH t k
 rD t j d ƒ ‚ qH Xn  t ƒ  |  d  k rn d d l
 m }  n  t j ƒ  t j ƒ  j t ƒ t j d ƒ t _ t j j d ƒ t _ t j j ƒ  t j j ƒ  t j j d ƒ t _ t t j ƒ  d d „  ƒt t j ƒ  d d „  ƒt t j ƒ  d d	 „  ƒt } t j  j! ‰  t j" ‡  f d
 †  | Dƒ ƒ } t# j$ d t% f d t% f d t& ƒ� |  | ƒ Wd  QXt j j' ƒ  t j j' ƒ  t j j' ƒ  t j j( ƒ  t ` t ` t ` d  S(   Nt   linuxs1   OSError raises on RLock creation, see issue 3111!iÿÿÿÿ(   t   run_unittesti   t   keyc         S   s   |  j  S(   N(   R"   (   t   tc(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  ù
  R€  c         S   s   |  j  S(   N(   R"   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  ú
  R€  c         S   s   |  j  S(   N(   R"   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyR  û
  R€  c         3   s   |  ] } ˆ  | ƒ Vq d  S(   N(    (   RC  R   (   t   loadTestsFromTestCase(    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pys	   <genexpr>   s    s%   .+__(get|set)slice__ has been removeds   sys.exc_clear\(\) not supportedt   quiet()   Rƒ   R  R‹  Rj   Ræ   Rí  R   R   R   R   t   test.supportRþ  R   t   get_temp_dirRa  Rb  Rf  Rw  R“  R^  R™  R˜  R•  R&   R   R_   RE  t   testcases_processesR  t   testcases_threadst   testcases_managert   testcases_othert   defaultTestLoaderR  t	   TestSuiteR    t   check_py3k_warningst   DeprecationWarningRY   Rh   R¯  (   R    Rä   t	   testcasest   suite(    (   R  s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt	   test_mainâ
  s:    
J	
c           C   s   t  t j d d ƒ j ƒ d  S(   Nt	   verbosityi   (   R  R   t   TextTestRunnerR    (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   main  s    t   __main__(   g=
×£p=ê?gffffffÖ?gffffffö?(   gš™™™™™¹?gš™™™™™¹?gš™™™™™¹?(   R‘   R¡  (�   R   RV   R   Rƒ   R   R•  Rv  R.  RÆ  R  Rl  Rî  R“   t   test.script_helperRÛ   R    R   t   import_moduleR   Râ   t   multiprocessing.dummyRj   t   multiprocessing.connectiont   multiprocessing.managerst   multiprocessing.heapR„  R   R   RY   R  t   ImportErrorRZ   t   multiprocessing.sharedctypesR   R   R  Rô  R   R�   R)  Rc  Rf  Ro   R(   R»   R¼   R½   R\  t   HAVE_GETVALUER  R�  R   Rÿ  t   ctypesR
   R   R   RÚ   R   R   R$   R5   R8   R<   RX   R™   R£   R¬   R¯   R°   RÞ   Rë   Ró   R  R  R*  R<  RS  RT  RU  R   RY  R\  R]  R�  R‚  R‡  R”  Rœ  R�  Rž  RŸ  R¢  R£  R¨  t   registerR®  Rµ  R¶  R·  R¹  R¾  R»  RÊ  RÒ  RÐ  R  R  R1  R3  R:  RY  R`  Rt  RŒ  R~  R‚  R’  R“  R  R‰  R=  R•  R  R˜  R  Rš  R¥  R¦  R¯  R±  R²  R³  R´  R¼  RÂ  RË  R×  Rè  Rî  R  R  R  R"   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_multiprocessing.pyt   <module>   s$  




	
 		Ä		ú6‹-EZS	
	˜	2		$	4&ö�E6v!C 			


!					"!G		0	