ó
‹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&   t  | t ƒ s t ‚ | j d ƒ d  S(   Ni   (   t
   isinstanceR8   t   AssertionErrort   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   currentRC   (    (    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'   (   RB   R;   t   nameR?   RH   RC   t   pid(   t   clsR<   R   R   RM   (    (    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   kwargsRO   R'   i    (   t   Queuet   Eventt   ProcessRR   t   TrueRF   RB   R?   R.   RC   RE   t   Falset   assertNotInt   active_childrenRD   t   typet   listRL   R   t   startt   assertInt   getRO   RP   t   join(   R   R<   t   eR   RW   RO   t   pRM   (    (    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(   RQ   (    (    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 {}RV   g        (   R?   R@   RA   RZ   Ri   R[   RF   Ra   R.   RE   Rb   R^   RL   R   t	   terminateR   Rd   R,   R   R\   R]   (   R   Rf   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_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-   RD   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(   NRV   R   (   R.   R_   R^   R`   RZ   R   Rh   t   DELTAR]   R[   RF   Ra   Rb   Rd   (   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_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   RV   R   (	   Rl   Rs   t   sendRI   t   rangeRZ   t   _test_recursionRa   Rd   (   RQ   t   wconnt   idRs   t   iRf   (    (    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.pyRv   .  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   PipeR\   Rv   R   Rh   Rq   t   pollt   appendt   recvR.   (   R   t   rconnRw   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(   RQ   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 thisRV   R   i   t   ri   (   s   ignore thisi   (   R?   R@   RA   R    t   TESTFNt
   addCleanupt   unlinkRZ   RŠ   R[   RF   Ra   Rd   R.   RL   R„   t   readt   rstript   strR\   R…   R‡   (   R   R‰   Rˆ   t   codeRf   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(   NRV   R   i   (   R8   t   weakreft   refRX   RZ   Ra   Rd   t   assertIsR   R.   Rc   (   R   R=   t   wrR<   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_lose_target_refl  s    	

(   R%   R'   (   R"   R#   R3   RN   t   classmethodRR   Rg   Ri   Rk   Rp   Rr   Rv   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(   Rl   RZ   R   R{   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   Rt   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   s5   t  | ƒ t k s t ‚ |  j j | ƒ |  j j ƒ  S(   N(   R_   R‘   R:   R�   Rt   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�   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.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(   NRS   t   HELLOt   worldt   WORLD(   R›   R[   RF   Ra   R.   R£   R¤   Rd   (   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   waitRu   Rc   t   set(   RQ   t   queuet   child_can_startt   parent_can_continueRy   (    (    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°   RV   R   i   i   i   i   i   i   i    t   timeout(   RX   RY   RZ   R¸   R[   RF   Ra   R.   R®   R±   R\   R;   R   t
   put_nowaitR   Rh   Rq   R   t   assertRaisest   FullR,   R   t   TIMEOUT1t   TIMEOUT2t   TIMEOUT3R´   R³   Rd   (   R   t   MAXSIZERµ   R¶   R·   t   procR;   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³   R;   R´   (   RQ   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(
   NRV   R   i   i   R¹   i   i   i   i    (   RX   RY   RZ   RÃ   R[   RF   Ra   R.   R®   R´   R³   R   Rh   Rq   R\   Rc   R   t
   get_nowaitR   R»   t   EmptyR,   R   R½   R¾   R¿   Rd   (   R   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_getþ  sB    			


c         C   s+   x$ t  d d ƒ D] } | j | ƒ q Wd  S(   Ni
   i   (   Ru   R;   (   RQ   Rµ   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_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
   RV   R   i   (   RX   Ru   R;   R   Rh   Rq   RZ   RÇ   R[   RF   Ra   R.   Rc   R»   RÅ   R\   Rd   (   R   Rµ   Ry   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_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   (   RX   R.   R­   R-   R@   R;   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_qsizeU  s    

c         C   s8   x1 t  | j d  ƒ D] } t j t ƒ | j ƒ  q Wd  S(   N(   RŸ   Rc   R   R   Rh   Rq   t	   task_done(   RQ   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   RV   R   i
   (   i   i   (   t   JoinableQueueR…   t   version_infoR¬   R@   t   xrangeRZ   RÌ   R[   RF   Ra   R;   Rd   R   (   R   Rµ   Ry   t   workersRf   (    (    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__RX   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@   RA   t   objectt   testR    t   captured_stderrRX   R;   R[   RD   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"   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   acquireR[   R\   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â   R[   Rã   R   R»   R:   t   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â   R[   R\   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@   RA   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   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³   (   RQ   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    RV   R   i   i   (   t	   ConditionRï   RZ   R“   R[   RF   Ra   Rä   t   ThreadRâ   R   Rh   Rq   R1   R5   t   notifyRã   Rü   Rd   (   R   Rõ   Rö   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_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   RV   R   i   i
   (   Rý   Rï   Ru   RZ   R“   R½   R[   RF   Ra   Rä   Rþ   RÏ   Râ   R1   R5   Rü   R   Rh   Rq   t
   notify_allRã   R-   (   R   Rõ   Rö   R÷   Ry   Rf   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   Rh   R¾   R´   (   RQ   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        RV   R   (   RY   R   R³   R.   t   is_setR\   R,   R   R½   R´   R[   t   clearRZ   R  RF   Ra   (   R   R  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_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%   Ry   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/   (   RQ   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.pyRR   ¿  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   RV   R   i   (   R  t   RawValueR   R  R.   R/   RZ   RR   R[   RF   Ra   Rd   (	   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  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_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(   NRy   i   Ræ   t   get_lockt   get_objt   navalue(   R   R  R  R   Rá   R.   R\   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%   (   Ry   i÷  iª^  (   R
  g      @g      À(   R  iÿÿÿiê   (   R"   R#   R3   t   latinR  R  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.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   (   Ru   RI   (   RQ   t   seqRy   (    (    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?  Ry   i   i   i   i   i   i   RV   R   (   t   RawArrayt   ArrayR.   RI   R`   t   arrayR“   RZ   R[   RF   Ra   Rd   (   R   R  R,  t   arrRf   (    (    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   Ry   i    (   Ru   R.  R.   RI   R`   (   R   t   sizeR  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_array_from_size  s    c         C   s   |  j  d t ƒ d  S(   NR  (   R1  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_rawarray&  s    c         C   sT   |  j  d d ƒ } |  j t | ƒ d ƒ |  j d d ƒ } |  j t | ƒ d ƒ d  S(   NRy   l   
 i
   (   R.  R.   RI   R-  (   R   R0  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(   NRy   i
   Ræ   R  R  t   notalock(   R.  Ru   R  R  R   Rá   R.   R\   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   R\   R1  R3  R4  R6  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	   RS   (   R`   Ru   R.   t   extendR}   (   R   R*   R+   R
  Re   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`   Ru   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   .0Ry   (    (    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   dictRu   RC  R.   R   t   sortedt   keysR  t   items(   R   R
  t   indicesRy   (    (    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   (
   RE  Ru   RC  RŸ   R.   R`   R  R»   Ré   R@  (   R   R
  RI  Ry   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_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')RO   t   job(   RL  RM  (   t	   NamespaceRO   RO  t   _hiddenR.   R‘   RD   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?  RB  RJ  RK  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=  O  s   		
	
	g        c         C   s   t  j | ƒ |  |  S(   N(   R   Rh   (   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__(   RQ   (    (    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.pyRX  ¬  s    c         C   s   t  |  ƒ j d 8_ d  S(   Ni   (   R_   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   __del__°  s    (   R"   R#   RW  RX  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.pyRV  ©  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.pyRZ  ³  s    c         c   s;   x4 t  |  ƒ D]& } | | k r. t d ƒ ‚ n  | Vq Wd  S(   Ns   Somebody said when(   Ru   RZ  (   t   totalt   whenRy   (    (    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.   RT  (   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.   RT  Ru   (   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.pyRg  Ì  s   i
   (	   R?   R@   RA   RÜ   R»   Ré   R_  Rd  RT  (   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_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(   NRc  i   R¹   s2   pool.map_async with chunksize stalled on null list(   R_  t	   map_asyncRT  Rc   R½   Rl   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_asyncRT  R½   R   Rc   R.   R,   R   (   R   R0   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_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_  Rl  RT  R¾   R   Rc   R»   Rl   Rj  R,   R   (   R   R0   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_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è  Rc  id   (
   R_  t   imapRT  Ru   R.   R`   Rd  R@  R»   t   StopIteration(   R   RA  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_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@   RA   R_  Ro  RT  R]  Ru   R.   R@  R»   RZ  (   R   RA  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_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è  Rc  (   R_  t   imap_unorderedRT  Ru   R.   RF  Rd  (   R   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_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@   RA   R_  Rs  RT  R]  Rd  Ru   R»   RZ  R@  Rb   t   remove(   R   RA  t   expected_valuesRy   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   Rl   t   PoolR.   RI   t   _poolRž   Rd   (   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_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š™™™™™¹?Rc  i   gš™™™™™É?(
   Rx  Ri  R   Rh   Ru   Rj   R   Rd   RD   R   (   R   Rf   Ry   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.pyRk   .  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   (   Rx  R.   Rd  RT  R`   Ro  Rs  Ri  Rc   Rž   Rd   (   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_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(   RV  (   RD  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.pys	   <genexpr>G  s    i
   c         s   s   |  ] } t  j | ƒ Vq d  S(   N(   R•   R–   (   RD  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(    (   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.pys	   <genexpr>M  s    i    (   R`   Ru   R_  Rd  RU  R   Rh   Rq   R.   R´   R   RV  RW  (   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#   Rb  Rf  Rh  Rk  Rm  Rn  Rq  Rr  Rt  Rw  Rz  Rk   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   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„  Rl   Rx  Ru   Rl  R‚  R»   Rc   Rž   Rd   (   R   R„  Rf   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(   RE   (   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.pys	   <genexpr>y  s    i   (   Rl   Rx  R.   RI   Ry  RP   Ru   R}   Rl  RT  t	   enumerateRc   t   _repopulate_poolt   allR   Rh   Rq   R]   R   t   assertNotEqualRF  Rž   Rd   (
   R   Rf   Rƒ   t   origworkerpidst   resultsRy   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Ó?(   Rl   Rx  Ru   R}   Rl  RT  Rž   Rd   RŠ  R.   Rc   (   R   Rf   R�  Ry   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   (   Rl   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Ï   (   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   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©  Ra   Rª  R¬  R£  R¬   R.   R“   R»   R   R¡  R§  RŸ  R¢  R`   Ru   t   shutdown(	   R   R&   t   foot   barR£  RO   t   foo_methodst   bar_methodsRy   (    (    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   addressRC   t
   serializer(   Rº  t
   SERIALIZERt   connectR·  R;   t   tupleR  (   RQ   R½  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   _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    RC   R¾  RV   R   (   R   t   urandomR¸  RÝ   R    t   HOSTR¿  Ra   RZ   RÂ  R½  R[   RF   Rº  RÀ  R·  R.   Rc   R€   R»   t	   ExceptionR;   R   Rh   R°  (   R   RC   R&   Rf   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   R[   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½  RC   R¾  s   hello world(   R¸  R¿  RÀ  R·  R;   (   RQ   R½  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.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    RC   R¾  RV   R   s   hello world(   R   RÃ  R¸  RÝ   R    RÄ  R¿  t
   get_serverR½  t   listenerRž   Ra   RZ   RÂ  Rd   R·  R.   Rc   R°  (   R   RC   R&   t   srvrt   addrRf   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ž   (   RQ   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(   NRV   R   i   g      @s   hello worldi
   Ry   i   R%   i    i   t    i(   s   expected BufferTooShort, got %sgš™™™™™¹?t   Xi   i   i   i   i   (+   R{   RZ   R×  R[   RF   Ra   R   R*  R/  Ru   R?   R.   R_   t   filenoRn   Rt   R~   RÔ  RÒ  R`   RI   t   recv_bytes_intot   itemsizet	   bytearrayRl   t   BufferTooShortR   RØ   R   R|   R\   R,   R   R½   R   Rh   RÓ  Rž   t   readablet   writableR»   t   EOFErrorRd   (   R   RÕ  Rœ   Rf   R,  RÖ  t   longmsgR0  t   bufferR�   R0   Re   R|   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(   NRz   i   R%   i   (   R{   R\   R.   Rt   R   R~   R?   Rß  R[   Rà  R»   t   IOErrorR|   (   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(   NRV   R   RS   (   R{   RZ   R×  R[   RF   Ra   Rž   R*  RÔ  R.   RÒ  RÓ  Rd   (   R   RÕ  Rœ   Rf   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@   RA   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   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   EBADFR\   R[   (   RQ   t   fdRe   (    (    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   (   Ru   Rò  R   t   dup2RÚ  R   t   recv_handlet   msvcrtt   open_osfhandlet   O_WRONLYRÔ   Rž   (   RQ   RÕ  t   datat   create_dummy_fdsRy   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 processesRz   RV   R   R±  t   wbt   rb(   R?   R@   R{   R[   RZ   Rú  RF   Ra   R�   R    RŽ   RŒ   R„   RÚ  Rõ  t   get_osfhandleR   t   send_handleRP   Rd   R.   R�   (   R   RÕ  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   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 processesRz   RV   R   R²  Rû  i   s2   could not find an unassigned large file descriptorRü  (   R?   R@   R{   R[   RZ   Rú  RF   Ra   R�   R    RŽ   RŒ   R„   RÚ  Ru   t   MAXFDRò  RØ   R   Ró  R   Rþ  RP   Rž   Rd   R.   R�   (   R   RÕ  Rœ   Rf   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 processesRz   RV   R   (   R?   R@   R{   R[   RZ   R  RF   Ra   R»   Ré   R   Rô  Rd   (   R   RÕ  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_missing_fd_transferC  s    	
(   R%   R'   (   R"   R#   R3   Rš   R×  Rå  Ré  Rê  Rì  Rò  R\   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(   NRS   (   t
   connectiont   ClientRt   Rž   (   RQ   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.pyRR   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   familyRV   R   RS   (   R	  t   familiest   ListenerRZ   RR   R½  R[   RF   Ra   t   acceptR.   R~   Rd   Rž   (   R   R  t   lRf   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(   NRV   R   i   RS   (   R	  R  RZ   RR   R½  R[   RF   Ra   R   Rh   R  R.   R~   Rž   Rd   (   R   R  Rf   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š   RR   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Ï   Rn   t   randomt   lognormvariateRl   t   heapt   BufferWrapperR}   RI   t	   randranget   _heapt   _lockRâ   R�   Rã   t   _len_to_seqR  t   _arenast   indext   _allocated_blockst   sortRu   RD   (   R   t
   iterationst	   maxblockst   blocksRy   R2  R+   R  RŒ  R  t   Lt   arenaRa   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_thresholdRu   Rl   R  R  t   buddy(   R   t
   thresholdsRy   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)  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   	'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.pyR2    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  Ru   RI   (   RQ   R  R  R±  R0  t   stringRy   (    (    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(   NRy   i   Ræ   g      ð?g      @i   i   R
  i
   R=   i   RS   RV   R   i   g       @i   g      @t
   hellohello(   R   R   R2  R.  Ru   R*  R/   RZ   R6  R[   RF   Ra   Rd   R.   R)   R  R  (	   R   Ræ   R  R  R±  R0  R5  Rf   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_sharedctypes0  s"    *	

c         C   s   |  j  d t ƒ d  S(   NRæ   (   R8  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_synchronizeE  s    c         C   sW   t  d d ƒ } t | ƒ } d | _ d | _ |  j | j d ƒ |  j | j d ƒ d  S(   Ni   g      @i    (   R2  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š   R6  R\   R8  R9  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.pyR4    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   d03Re   iöÿÿÿt   STOPiœÿÿÿ(   R*   (   R+   (   R=   (   R@  (   RB  (   RC  (   RD  (   Re   (   RE  (	   RÜ   R   t   FinalizeRt   R   t   _exit_functionRž   R   t   _exit(   RQ   RÕ  Rª  R*   R+   t   close_bR=   R@  RB  RC  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_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(   NRV   R   RE  R*   R+   R@  RD  RC  RB  Re   (
   R{   RZ   RJ  R[   RF   Ra   Rd   RŸ   R~   R.   (   R   RÕ  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   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(   NRA  i   id   (   R–   R   RF  R  t   randint(   R   (   RL  (    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   (    (   RL  (    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   Rh   R  R   t   _run_finalizersRÅ  R}   (   Re   (   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(    (    (   RD  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.pys	   <setcomp>¯  s   	 i
   i   (   Ru   R  t   getrandbitsRÅ  R}   R  (   R
  Re   (   Rª  RO  RP  (    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   RV   g      @i    (   RÜ   R\   R…   t   getcheckintervalR–  R-  t   setcheckintervalR.  Rä   Rþ   R    t   start_threadsR   Rh   R[   R—  (   R   RQ  RS  t   old_intervalt   old_thresholdR'   (    (   Rª  RL  RO  RP  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š   RJ  RK  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.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(   NRl   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   getattrRD   R¬   (   R   R\  RO   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.pyRZ  Ê  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(
   Rl   t
   get_loggert   setLevelR   t
   SUBWARNINGRD   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(   Rl   Rb  Rt   t   getEffectiveLevel(   RQ   RÕ  Rh  (    (    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%   Rz   RV   R   t   level(   Rl   Rb  t   loggingt	   getLoggerRl  R{   R\   Rc  RZ   Rk  R[   RF   Ra   R.   R~   t   NOTSETRg  (	   R   t   LEVEL1t   LEVEL2Rh  t   root_loggert
   root_levelRç  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_levelü  s&    		
	
(   R%   (   R"   R#   R3   Ri  Rš   Rk  Rt  (    (    (    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.pyRa  ë  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   Rh   R   t   killt   signalt   SIGUSR1(   RQ   RP   (    (    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    Rx  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    (   R[   (   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    RV   R   i   i    (   i   (   R\   R   RK   Rw  Rx  RZ   Ry  Ra   R   Rh   Rd   RD   R.   RL   (   R   R{  RP   t
   oldhandlert   killerRf   (    (   Rz  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š   Ry  R   R  R¬   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.pyRu  .	  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æ  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_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
  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.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
   capitalizeRG  t
   startswithR3   R   t   TestCaseR"   R#   (	   t   MixinR_   R€   t   globt   TypeRO   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%   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  R  R-  RB   R^   R{   R	  RÍ   Rx  (   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  R  R-  RB   R^   R{   R	  RÍ   Rx  (   R"   R#   R?   Rl   RZ   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&   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  R`   RE  RP  RÍ   Rx  (   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  R`   RE  RP  RÍ   Rx  (   R"   R#   R?   Rl   RZ   RÜ   RX  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'   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  RB   R^   R{   R	  RE  R`   RP  RÍ   Rx  (   RX   Rá   Rè   Rï   Rñ   Rý   RY   R   R.  RB   R^   R{   R	  RE  R`   RP  RÍ   Rx  (	   R"   R#   R?   Rl   t   dummyRZ   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   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    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»   Rl   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¡  Rl   R	  t	   CHALLENGE(   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    
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»   Rl   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    (   Rl   t   Managert   mgrRP  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   (   Rl   R—  R˜  R»   t	   TypeErrorRa   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ª  Rl   Rx  R¦  R¥  Rž   Rd   R.   RÝ   (   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_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(   Rc   R\   RX   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(   NRV   R   (   Rl   RX   RZ   R°  R[   RF   Ra   Rd   (   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   (   Rl   Rx  Rd  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   RK   R·  t   _cache(   R   RP   (    (    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Ô   Rd   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(   NRV   R   (   Rl   RX   RZ   R²  Ra   Rd   (   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(   NRV   (   Rl   RZ   R´  Ra   Rd   (   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_pool_in_process
  s    
c            sc   t  ƒ  } t | ƒ ‰  ˆ  j d ƒ t j d ‡  f d †  ƒ } ˆ  j ƒ  | j ƒ  d k s_ t ‚ d  S(   NR±  RV   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Ô   Rl   RZ   R»  t   getvalueR:   (   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   Rh   Rt   Rž   Rl   R	  R
  (   RQ   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š™™™™™¹?Rz   R  t   AF_INETRV   R   i{   iÈ  i
   (   t   sockett   getdefaulttimeoutt   setdefaulttimeoutRl   R{   R[   R	  R  RZ   RÆ  R½  Ra   Rž   R.   R~   R  Rd   (   R   t   old_timeoutt   parentRÅ  R  Rf   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   pathRd   t   dirnamet   __file__R‚  RÝ   t   script_helpert   assert_python_failureR.   Rb   t   assert_python_okR�   (   R   RO   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(   Rt   RÁ  R…   t   flags(   RQ   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ÿÿÿÿRz   RV   R   (   t   jsonRl   R{   R\   RZ   RÛ  Ra   R~   Rd   Rž   RÁ  R…   RÚ  t   dumps(   RQ   RÜ  R‹   Rƒ   Rf   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   RV   R   (
   Rl   RZ   RÅ  Ra   Rd   Rt   RI   R   t   _afterfork_registryRž   (   RQ   RR  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.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(   NRV   R   i   (   Rl   R{   R\   R   t   ForkAwareThreadLockRI   Rë  RZ   RÅ  Ra   R~   Rd   t   assertLessEqual(   R   R‹   Rƒ   R  t   old_sizeRf   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  (   Rw  Rx  Rt   R~   RÔ  t   CONN_MAX_SIZE(   RQ   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    	Rx  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(   NRV   R   Rô  gš™™™™™¹?iÒ  R  (   Rl   R{   RZ   Rö  R[   RF   Ra   Rž   R.   R~   R   Rh   R   Rv  RP   Rw  Rx  Rt   RÒ  Rõ  Rd   (   R   RÕ  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_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(   Rw  Rx  Rl   R	  R  Rt   R½  R  (   RQ   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(   NRV   R   gš™™™™™¹?Rø  (   Rl   R{   RZ   Rù  R[   RF   Ra   Rž   R~   R   Rh   R   Rv  RP   Rw  Rx  R	  R
  R.   Rd   (   R   RÕ  Rœ   Rf   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¬   Rw  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(    (   RD  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Œ  Rl   Rè   Rî  R   R   R   R   t   test.supportR   R   t   get_temp_dirRb  Rc  Rg  Rx  R”  R_  Rš  R™  R–  R&   R   Ra   RF  t   testcases_processesR  t   testcases_threadst   testcases_managert   testcases_othert   defaultTestLoaderR  t	   TestSuiteR    t   check_py3k_warningst   DeprecationWarningR[   Rj   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   RX   R   R…   R   R–  Rw  R/  RÈ  R  Rm  Rï  R•   t   test.script_helperRÝ   R    R   t   import_moduleR   Rä   t   multiprocessing.dummyRl   t   multiprocessing.connectiont   multiprocessing.managerst   multiprocessing.heapR…  R   R   R[   R  t   ImportErrorR\   t   multiprocessing.sharedctypesR   R   R  Rõ  R   R‘   R*  Rd  Rg  Rq   R(   R½   R¾   R¿   R]  t   HAVE_GETVALUER  R‚  R   R   t   ctypesR
   R   R   RÜ   R   R   R$   R5   R8   R>   RZ   R›   R¥   R®   R±   R²   Rà   Rì   Rô   R  R	  R+  R=  RT  RU  RV  R   RZ  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  R2  R4  R;  RZ  Ra  Ru  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	