ó
‹wÛjc           @   sÃ  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 d  d l Z e	 d „  ƒ Z
 d „  Z d „  Z d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d d „ Z e d  k r¿e d! e  ƒ n  d S("   iÿÿÿÿN(   t   test_support(   t   proxyc            s4   ‡  ‡ ‡ f d †  } ˆ | _  ˆ  | _ ˆ | _ | S(   s&   Pure Python approximation of partial()c             s*   ˆ j  ƒ  } | j | ƒ ˆ ˆ  |  | Ž  S(   N(   t   copyt   update(   t   fargst	   fkeywordst   newkeywords(   t   argst   funct   keywords(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   newfunc   s    (   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_functools.pyt   PythonPartial	   s
    			c          O   s
   |  | f S(   s,   capture all positional and keyword arguments(    (   R   t   kw(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   capture   s    c         C   s   |  j  |  j |  j |  j f S(   s*    return the signature of a partial object (   R   R   R	   t   __dict__(   t   part(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt	   signature   s    t   MyTuplec           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR      s   t   BadTuplec           B   s   e  Z d  „  Z RS(   c         C   s   t  |  ƒ t  | ƒ S(   N(   t   list(   t   selft   other(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   __add__!   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_functools.pyR       s   t   MyDictc           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_functools.pyR   $   s   t   TestPartialc           B   sÅ   e  Z e j 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 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c      
   C   s¨   |  j  t d d d d d d ƒ} |  j | d d d d	 d
 d ƒd t d d d d	 d
 d ƒ f ƒ |  j  t d „  ƒ } |  j | d d d d g ƒ d d d	 d g ƒ d  S(   Ni   i   t   ai
   t   bi   i   i   i   t   ci(   c         S   s   |  d S(   Ni
   (    (   t   x(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   <lambda>/   t    (   i   i   i   i   (   t   partialR   t   assertEqualt   dictt   map(   R   t   p(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_basic_examples+   s
    !"c      
   C   s  |  j  t d d d d d d ƒ} |  j | j t ƒ |  j | j d ƒ |  j | j t d d d d ƒ ƒ |  j t t	 | d t
 ƒ |  j t t	 | d d ƒ |  j t t	 | d	 t d d d d ƒ ƒ |  j  t ƒ } y
 | ` Wn t k
 rï n X|  j d
 ƒ d  S(   Ni   i   R   i
   R   i   R   R   R	   s-   partial object allowed __dict__ to be deleted(   i   i   (   i   i   (   R!   R   R"   R   R   R	   R#   t   assertRaisest	   TypeErrort   setattrR$   t   hexR   t   fail(   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_functools.pyt   test_attributes2   s    !"(
c         C   sL   |  j  t |  j ƒ y |  j d ƒ ƒ  Wn t k
 r: n X|  j d ƒ d  S(   Ni   s%   First arg not checked for callability(   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_functools.pyt   test_argument_checkingE   s    c         C   s†   d d d „ } i d d 6} |  j  | d d ƒ} |  j | | �  d ƒ |  j | i d d 6ƒ | d d ƒ |  j | i d d 6ƒ d  S(	   Ni
   i   c         S   s   |  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_functools.pyR   P   s    i   R   i   R   i   (   R!   R"   (   R   R   t   dR%   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt(   test_protection_of_callers_dict_argumentN   s    c         C   s˜   |  j  t ƒ } |  j | ƒ  d i  f ƒ |  j | d d ƒ d i  f ƒ |  j  t d d ƒ } |  j | ƒ  d i  f ƒ |  j | d d ƒ d i  f ƒ d  S(	   Ni   i   i   i   (    (   i   i   (   i   i   (   i   i   i   i   (   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_functools.pyt   test_arg_combinationsY   s    c         C   s  |  j  t ƒ } |  j | j i  ƒ |  j | ƒ  d i  f ƒ |  j | d d ƒ d i d d 6f ƒ |  j  t d d ƒ} |  j | j i d d 6ƒ |  j | ƒ  d i d d 6f ƒ |  j | d d ƒ d	 i d d 6d d 6f ƒ |  j | d d d d ƒ d
 i d d 6d d 6f ƒ d  S(   NR   i   R   i   i   (    (    (    (    (    (   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_functools.pyt   test_kw_combinationsc   s    & -c         C   sq   xj d d d d	 d
 g D]S } |  j  t | Œ } | d } | d ƒ \ } } |  j | | k oe | i  k ƒ q Wd  S(   Ni    i   i   i   R   (    (   i    (   i    i   (   i    i   i   (   i    i   i   i   (   R   (   R!   R   t
   assertTrue(   R   R   R%   t   expectedt   gott   empty(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_positionalq   s
    
c         C   s~   xw d d d  d g D]c } |  j t d | ƒ} i | d 6d  d 6} | d d  ƒ \ } } |  j | | k or | d k ƒ q Wd  S(   NR   i    g      @R   (    (   t   NoneR!   R   R2   (   R   R   R%   R3   R5   R4   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_keywordy   s
    c         C   s–   |  j  t d d d ƒ} | d d d ƒ\ } } |  j | d k oY | i d d 6d d 6k ƒ | ƒ  \ } } |  j | d k oŽ | i d d 6k ƒ d  S(   Ni    R   i   R   i   (   i    i   (   i    (   R!   R   R2   (   R   R%   t   args1t   kw1t   args2t   kw2(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_no_side_effects�   s
    -c         C   sŒ   d „  } |  j  t |  j | d d ƒ ƒ |  j  t |  j | d ƒ d ƒ |  j  t |  j | ƒ d d ƒ |  j  t |  j | d d ƒd ƒ d  S(   Nc         S   s   |  | d  S(   N(    (   R   t   y(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   fŠ   s    i   i    R>   (   R'   t   ZeroDivisionErrorR!   (   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_functools.pyt   test_error_propagation‰   s
    	c         C   sW   |  j  t d d ƒ} t | ƒ } |  j | j | j ƒ d  } |  j t t | d ƒ d  S(   Nt   basei   R   (	   R!   t   intR   R"   R   R7   R'   t   ReferenceErrort   getattr(   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_functools.pyt   test_weakref‘   s
    c         C   sl   t  t t d ƒ ƒ } |  j t j d ƒ } |  j | | ƒ d ƒ |  j d j ƒ } |  j | | ƒ d ƒ d  S(   Ni
   R    t
   0123456789(   R$   t   strt   rangeR!   t   joinR"   (   R   t   dataRJ   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt#   test_with_bound_and_unbound_methods˜   s
    c         C   s€   |  j  t d g d t g ƒ} g  | _ xR t t j d ƒ D]= } t j t j | | ƒ ƒ } |  j	 t | ƒ t | ƒ ƒ q; Wd  S(   Nt   asdft   bari   (
   R!   R   t   Truet   attrRI   t   picklet   HIGHEST_PROTOCOLt   loadst   dumpsR"   (   R   R?   t   protot   f_copy(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_pickleŸ   s
    	c         C   s˜   |  j  t d g d t g ƒ} g  | _ t j | ƒ } |  j t | ƒ t | ƒ ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j | j ƒ d  S(   NRM   RN   (	   R!   R   RO   RP   R   R"   t   assertIsR   R	   (   R   R?   RV   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt	   test_copy¦   s    	c         C   sÔ   |  j  t d g d t g ƒ} g  | _ t j | ƒ } |  j t | ƒ t | ƒ ƒ |  j | j | j ƒ |  j | j | j ƒ |  j | j d | j d ƒ |  j | j	 | j	 ƒ |  j | j	 d | j	 d ƒ d  S(   NRM   RN   i    (
   R!   R   RO   RP   R   t   deepcopyR"   t   assertIsNotR   R	   (   R   R?   RV   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_deepcopy¯   s    	c         C   s/  |  j  t ƒ } | j t d t d d ƒ t d g  ƒ f ƒ |  j t | ƒ t d	 t d d ƒ t d g  ƒ f ƒ |  j | d d d ƒd
 i d d 6d d 6f ƒ | j t d t d d ƒ d  f ƒ |  j t | ƒ t d t d d ƒ i  f ƒ |  j | d d d ƒd i d d 6d d 6f ƒ | j t d d  d  f ƒ |  j | d d d ƒd i d d 6f ƒ |  j | d ƒ d i  f ƒ |  j | ƒ  d i  f ƒ | j t d i  d  f ƒ |  j t | ƒ t d i  i  f ƒ |  j | d d d ƒd i d d 6f ƒ |  j | d ƒ d i  f ƒ |  j | ƒ  d i  f ƒ d  S(   Ni   R   i
   RP   i   R   i   (   i   (   i   (   i   i   (   i   (   i   (   i   i   (   i   (   i   i   (   i   i   (   i   (    (    (   i   (   i   (    (   R!   R   t   __setstate__R   R#   R"   R7   (   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_functools.pyt   test_setstateº   s"    +%0"+0)")c         C   s  |  j  t ƒ } |  j t | j t d i  f ƒ |  j t | j t d i  i  d  f ƒ |  j t | j t d i  d  g ƒ |  j t | j d  d i  d  f ƒ |  j t | j t d  i  d  f ƒ |  j t | j t g  i  d  f ƒ |  j t | j t d g  d  f ƒ d  S(   N(    (    (    (    (    (   R!   R   R'   R(   R]   R   R7   (   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_functools.pyt   test_setstate_errorsÑ   s    %""""c         C   s—  |  j  t ƒ } | j t t d ƒ t d d ƒ d  f ƒ t | ƒ } |  j | t d t d d ƒ i  f ƒ |  j	 t
 | d ƒ t ƒ |  j	 t
 | d ƒ t ƒ | ƒ  } |  j | d i d d 6f ƒ |  j	 t
 | d ƒ t ƒ |  j	 t
 | d ƒ t ƒ | j t t d	 ƒ i  d  f ƒ t | ƒ } |  j | t d
 i  i  f ƒ |  j	 t
 | d ƒ t ƒ | d ƒ } |  j | d i  f ƒ |  j	 t
 | d ƒ t ƒ d  S(   Ni   R   i
   i   i    (   i   (   i   (   i   (   i   (   i   (   i   i   (   R!   R   R]   R   R   R   R7   R"   R#   RX   t   typet   tupleR   (   R   R?   t   st   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_functools.pyt   test_setstate_subclassesÛ   s"    (%	c      	   C   s  |  j  t ƒ } | j | d i  i  f ƒ zH xA t t j d ƒ D], } |  j t ƒ � t j | | ƒ Wd  QXq? WWd  | j t d i  i  f ƒ X|  j  t ƒ } | j t | f i  i  f ƒ zu xn t t j d ƒ D]Y } t j	 t j | | ƒ ƒ } z |  j
 | j d | ƒ Wd  | j t d i  i  f ƒ XqÏ WWd  | j t d i  i  f ƒ X|  j  t ƒ } | j t d i | d 6i  f ƒ zu xn t t j d ƒ D]Y } t j	 t j | | ƒ ƒ } z |  j
 | j d | ƒ Wd  | j t d	 i  i  f ƒ Xq�WWd  | j t d
 i  i  f ƒ Xd  S(   Ni   i    R   (    (    (    (    (    (    (    (   R!   R   R]   RI   RQ   RR   R'   t   RuntimeErrorRT   RS   RX   R   R	   (   R   R?   RU   RV   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_recursive_pickleï   s2    " "c         C   s?   d d d „  ƒ  Y} |  j  t ƒ } |  j t | j | ƒ  ƒ d  S(   Nt   BadSequencec           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d S(   Ni   (    (   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_functools.pyt   __len__  s    c         S   sF   | d k r t  S| d k r, t t d ƒ ƒ S| d k r< i  St ‚ d  S(   Ni    i   i@B i   i   (   i   i   (   t   maxRa   RI   t
   IndexError(   R   t   key(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   __getitem__  s    (   R   R   Rh   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_functools.pyRg     s   	(    (   R!   t   objectR'   R(   R]   (   R   Rg   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_functools.pyt   test_setstate_refcount  s    (   R   R   t	   functoolsR!   R&   R,   R-   R/   R0   R1   R6   R8   R=   RA   RF   RL   RW   RY   R\   R^   R_   Rd   Rf   Rn   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR   '   s*   							
													
		#t   PartialSubclassc           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_functools.pyRp   "  s   t   TestPartialSubclassc           B   s   e  Z e Z RS(    (   R   R   Rp   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_functools.pyRq   %  s   t   TestPythonPartialc           B   s>   e  Z e Z d  Z d  Z d  Z d  Z d  Z	 d  Z
 d  Z d  Z RS(   N(   R   R   R   R!   R7   RW   R^   R_   Rd   Rn   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_functools.pyRr   )  s   t   TestUpdateWrapperc           B   sz   e  Z e j e j d  „ Z d „  Z d „  Z e j	 e
 j j d k d ƒ d „  ƒ Z d „  Z d „  Z e j d „  ƒ Z RS(	   c   	      C   s•   x3 | D]+ } |  j  t | | ƒ t | | ƒ k ƒ q WxX | D]P } t | | ƒ } t | | ƒ } x) | D]! } |  j  | | | | k ƒ qh Wq= Wd  S(   N(   R2   RE   (	   R   t   wrappert   wrappedt   assignedt   updatedt   namet   wrapper_attrt   wrapped_attrRk   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   check_wrapper=  s    )c         C   s5   d „  } d | _  d „  } t j | | ƒ | | f S(   Nc           S   s   d S(   s   This is a testN(    (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR?   K  s    s   This is also a testc           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_functools.pyRt   O  s    (   RP   Ro   t   update_wrapper(   R   R?   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_functools.pyt   _default_updateJ  s
    			c         C   sL   |  j  ƒ  \ } } |  j | | ƒ |  j | j d ƒ |  j | j d ƒ d  S(   NR?   s   This is also a test(   R}   R{   R"   R   RP   (   R   Rt   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_functools.pyt   test_default_updateT  s    i   s)   Docstrings are omitted with -O2 and abovec         C   s)   |  j  ƒ  \ } } |  j | j d ƒ d  S(   Ns   This is a test(   R}   R"   t   __doc__(   R   Rt   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_functools.pyt   test_default_update_docZ  s    c         C   s‡   d „  } d | _  d „  } t j | | d d ƒ |  j | | d d	 ƒ |  j | j d ƒ |  j | j d  ƒ |  j t	 | d ƒ ƒ d  S(
   Nc           S   s   d S(   s   This is a testN(    (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR?   a  s    s   This is also a testc           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_functools.pyRt   e  s    Rt   RP   (    (    (    (    (
   RP   Ro   R|   R{   R"   R   R   R7   t   assertFalset   hasattr(   R   R?   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_functools.pyt   test_no_update`  s    			c         C   sÍ   d „  } d | _  t d d d d d d ƒ | _ d	 „  } i  | _ d } d } t j | | | | ƒ |  j | | | | ƒ |  j | j d ƒ |  j | j d  ƒ |  j | j  d ƒ |  j | j | j ƒ d  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_functools.pyR?   n  s    s   This is a different testR   i   R   i   R   i   c           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_functools.pyRt   r  s    RP   t	   dict_attrRt   (   RP   (   R„   (
   RP   R#   R„   Ro   R|   R{   R"   R   R   R7   (   R   R?   Rt   t   assignR   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   test_selective_updatem  s    				c         C   sI   d „  } t  j | t ƒ |  j | j d ƒ |  j | j j d ƒ ƒ d  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_functools.pyRt   �  s    Ri   s   max((   Ro   R|   Ri   R"   R   R2   R   t
   startswith(   R   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_functools.pyt   test_builtin_update~  s    	(   R   R   Ro   t   WRAPPER_ASSIGNMENTSt   WRAPPER_UPDATESR{   R}   R~   t   unittestt   skipIft   syst   flagst   optimizeR€   Rƒ   R†   R    t   requires_docstringsRˆ   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyRs   ;  s   	
			t	   TestWrapsc           B   sS   e  Z d  „  Z d „  Z e j e j j d k d ƒ d „  ƒ Z	 d „  Z
 d „  Z RS(   c         C   s>   d „  } d | _  t j | ƒ d „  ƒ } |  j | | ƒ | S(   Nc           S   s   d S(   s   This is a testN(    (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR?   Š  s    s   This is also a testc           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_functools.pyRt   Ž  s    (   RP   Ro   t   wrapsR{   (   R   R?   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_functools.pyR}   ‰  s
    		c         C   s6   |  j  ƒ  } |  j | j d ƒ |  j | j d ƒ d  S(   NR?   s   This is also a test(   R}   R"   R   RP   (   R   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_functools.pyR~   ”  s    i   s)   Docstrings are omitted with -O2 and abovec         C   s#   |  j  ƒ  } |  j | j d ƒ d  S(   Ns   This is a test(   R}   R"   R   (   R   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_functools.pyR€   ™  s    c         C   s†   d „  } d | _  t j | d d ƒ d „  ƒ } |  j | | d d	 ƒ |  j | j d ƒ |  j | j d  ƒ |  j t	 | d ƒ ƒ d  S(
   Nc           S   s   d S(   s   This is a testN(    (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyR?      s    s   This is also a testc           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_functools.pyRt   ¤  s    Rt   RP   (    (    (    (    (
   RP   Ro   R’   R{   R"   R   R   R7   R�   R‚   (   R   R?   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_functools.pyRƒ   Ÿ  s    		c         C   sÒ   d „  } d | _  t d d d d d d ƒ | _ d	 „  } d } d } t j | | | ƒ | d „  ƒ ƒ } |  j | | | | ƒ |  j | j d ƒ |  j | j d  ƒ |  j | j  d ƒ |  j | j | j ƒ d  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_functools.pyR?   ­  s    s   This is a different testR   i   R   i   R   i   c         S   s   i  |  _  |  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_functools.pyt   add_dict_attr±  s    	RP   R„   c           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_functools.pyRt   ¶  s    Rt   (   RP   (   R„   (
   RP   R#   R„   Ro   R’   R{   R"   R   R   R7   (   R   R?   R“   R…   R   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_functools.pyR†   ¬  s    			(   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_functools.pyR‘   ‡  s   			t
   TestReducec           B   s   e  Z d  „  Z RS(   c         C   sÎ  d d d „  ƒ  Y} t  j } |  j | d „  d d d g d ƒ d ƒ |  j | d	 „  d d g g  d
 d g g g  ƒ d d d
 d g ƒ |  j | d „  t d d ƒ d ƒ d ƒ |  j | d „  t d d ƒ d ƒ d ƒ |  j | d „  | d ƒ ƒ d ƒ |  j | d „  | d ƒ d ƒ d ƒ |  j | d „  | d ƒ d ƒ d ƒ |  j t | ƒ |  j t | d d ƒ |  j t | d d d ƒ |  j | d d ƒ d ƒ |  j | d d d ƒ d ƒ |  j t | d d ƒ d  S(   Nt   Squaresc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  g  |  _ d  S(   N(   Ri   t   sofar(   R   Ri   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   __init__Æ  s    	c         S   s   t  |  j ƒ S(   N(   t   lenR–   (   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_functools.pyRh   Ê  R    c         S   ss   d | k o |  j  k  n s( t ‚ n  t |  j ƒ } x. | | k rg |  j j | | ƒ | d 7} q: W|  j | S(   Ni    i   (   Ri   Rj   R˜   R–   t   append(   R   t   it   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_functools.pyRl   Ì  s     	(   R   R   R—   Rh   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_functools.pyR•   Ä  s   		c         S   s   |  | 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_functools.pyR   Õ  R    R   R   R   R    t   abcc         S   s   |  | 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_functools.pyR   ×  R    R.   t   wc         S   s   |  | 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_functools.pyR   Ú  R    i   i   i   i°  c         S   s   |  | 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_functools.pyR   Ü  R    i   l    l     hò c         S   s   |  | 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_functools.pyR   ß  R    i
   i  c         S   s   |  | 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_functools.pyR   à  R    i    c         S   s   |  | 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_functools.pyR   á  R    i*   t   1(    (   i*   i*   (   Ro   t   reduceR"   RI   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_functools.pyt   test_reduceÃ  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_functools.pyR”   Á  s   t   TestCmpToKeyc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sG   d „  } |  j  t t d ƒ d t j | ƒ ƒd d d d d g ƒ d  S(	   Nc         S   s   | |  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_functools.pyt   mycmpë  s    i   Rk   i   i   i   i   i    (   R"   t   sortedRI   Ro   t
   cmp_to_key(   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_functools.pyt   test_cmp_to_keyê  s    	$c         C   s>   d „  } t  j | ƒ } | d ƒ } |  j t t | ƒ ƒ d  S(   Nc         S   s   | |  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_functools.pyR¢   ñ  s    i
   (   Ro   R¤   R'   R(   t   hash(   R   R¢   Rk   t   k(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt	   test_hashð  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_functools.pyR¡   é  s   	t   TestTotalOrderingc           B   sP   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         C   sÚ   t  j d d d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k  ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ d  S(   Nt   Ac           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   t   value(   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_functools.pyR—   ü  s    c         S   s   |  j  | j  k  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_functools.pyt   __lt__þ  s    c         S   s   |  j  | j  k 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_functools.pyt   __eq__   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_functools.pyRª   ú  s   		i   i   (    (   Ro   t   total_orderingR2   (   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_functools.pyt   test_total_ordering_ltù  s    c         C   sÚ   t  j d d d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k  ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ d  S(   NRª   c           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—     s    c         S   s   |  j  | j  k 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_functools.pyt   __le__  s    c         S   s   |  j  | j  k 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_functools.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_functools.pyRª   
  s   		i   i   (    (   Ro   R®   R2   (   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_functools.pyt   test_total_ordering_le	  s    c         C   sÚ   t  j d d d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k  ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ d  S(   NRª   c           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—     s    c         S   s   |  j  | j  k 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_functools.pyt   __gt__  s    c         S   s   |  j  | j  k 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_functools.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_functools.pyRª     s   		i   i   (    (   Ro   R®   R2   (   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_functools.pyt   test_total_ordering_gt  s    c         C   sÚ   t  j d d d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k  ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ d  S(   NRª   c           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—   ,  s    c         S   s   |  j  | j  k 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_functools.pyt   __ge__.  s    c         S   s   |  j  | j  k 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_functools.pyR­   0  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_functools.pyRª   *  s   		i   i   (    (   Ro   R®   R2   (   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_functools.pyt   test_total_ordering_ge)  s    c         C   sÝ   t  j d t f d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k  ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ 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_functools.pyRª   ;  s   R   R   (   Ro   R®   RH   R2   (   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_functools.pyt    test_total_ordering_no_overwrite9  s    	c         C   s6   |  j  t ƒ �! t j d d d „  ƒ  Yƒ } Wd  QXd  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_functools.pyRª   G  s   (    (   R'   t
   ValueErrorRo   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_functools.pyt   test_no_operations_definedE  s    c            sL   t  j d d ‡  f d †  ƒ  Yƒ ‰  |  j t ƒ � ˆ  d ƒ d k Wd  QXd  S(   Nt   TestTOc              s/   e  Z d  „  Z ‡  f d †  Z ‡  f d †  Z RS(   c         S   s   | |  _  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_functools.pyR—   N  s    c            s#   t  | ˆ  ƒ r |  j | j k St S(   N(   t
   isinstanceR«   t   False(   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_functools.pyR­   P  s    c            s)   t  | ˆ  ƒ r |  j | j k  St ‚ d  S(   N(   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_functools.pyR¬   T  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_functools.pyR¹   L  s   	i   (    (    (   Ro   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_functools.pyt   test_bug_10042K  s    "c      
   C   s¦  t  j d d d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ t  j d t f d „  ƒ  Yƒ } |  j | d ƒ | d ƒ k ƒ |  j | d ƒ | d ƒ k ƒ t  j d d	 d „  ƒ  Yƒ } |  j t ƒ � | d ƒ | d ƒ k Wd  QX|  j t ƒ � | d ƒ | d ƒ k Wd  QXt  j d t f d „  ƒ  Yƒ } |  j t ƒ � | d ƒ | d ƒ k Wd  QX|  j t ƒ � | d ƒ | d ƒ k Wd  QXd  S(
   NRª   c           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—   ^  s    c         S   s   |  j  | j  k 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_functools.pyR²   `  s    c         S   s   |  j  | j  k 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_functools.pyR­   b  s    c         S   s   t  |  j ƒ 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_functools.pyt   __hash__d  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_functools.pyRª   \  s   			i   i   c           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—   k  s    c         S   s   |  j  | j  k 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_functools.pyR²   m  s    c         S   s   |  j  | j  k 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_functools.pyR­   o  s    c         S   s   t  |  j ƒ 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_functools.pyR½   q  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_functools.pyRª   i  s   			c           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—   x  s    c         S   s   |  j  | j  k 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_functools.pyR²   z  s    c         S   s   |  j  | j  k 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_functools.pyR­   |  s    c         S   s   t  |  | ƒ ‚ d  S(   N(   Re   (   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_functools.pyt   __ne__~  s    c         S   s   t  |  j ƒ 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_functools.pyR½   €  s    (   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_functools.pyRª   v  s
   				c           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         S   s   | |  _  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_functools.pyR—   ‰  s    c         S   s   |  j  | j  k 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_functools.pyR²   ‹  s    c         S   s   |  j  | j  k 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_functools.pyR­   �  s    c         S   s   t  |  | ƒ ‚ d  S(   N(   Re   (   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_functools.pyR¾   �  s    c         S   s   t  |  j ƒ 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_functools.pyR½   ‘  s    (   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_functools.pyRª   ‡  s
   				(    (    (   Ro   R®   R2   R�   Rm   R'   Re   (   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_functools.pyt   test_bug_25732[  s$    
			(
   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_functools.pyR©   ÷  s   							c         C   s¦   t  t t t t t t f } t j | Œ  |  r¢ t	 t
 d ƒ r¢ d d  l } d  g d } xA t t | ƒ ƒ D]- } t j | Œ  | j ƒ  t
 j ƒ  | | <qi W| GHn  d  S(   Nt   gettotalrefcountiÿÿÿÿi   (   R   Rq   Rr   Rs   R©   R‘   R”   R    t   run_unittestR‚   R�   t   gcR7   t   xrangeR˜   t   collectRÀ   (   t   verboset   test_classesRÂ   t   countsRš   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt	   test_main˜  s     	
t   __main__RÅ   (!   R   Ro   R�   R‹   t   testR    t   weakrefR   RQ   t   staticmethodR   R   R   Ra   R   R   R#   R   t   TestCaseR   R!   Rp   Rq   Rr   Rs   R‘   R”   R¡   R©   R7   RÈ   R   RO   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_functools.pyt   <module>   s0   		ûL:(¡