ó
‹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 m Z e j d d e ƒd  d l	 m
 Z
 m Z e
 ƒ  Z d e  j f d „  ƒ  YZ d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d „  Z d „  Z d e  j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d e  j 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 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  f d- „  ƒ  YZ" d. e  f d/ „  ƒ  YZ# d0 e  f d1 „  ƒ  YZ$ d2 e  f d3 „  ƒ  YZ% d4 e  f d5 „  ƒ  YZ& d6 e  f d7 „  ƒ  YZ' d8 e  j f d9 „  ƒ  YZ( d: e( f d; „  ƒ  YZ) d< e( f d= „  ƒ  YZ* d> e( f d? „  ƒ  YZ+ d@ e( f dA „  ƒ  YZ, dB e( f dC „  ƒ  YZ- dD e  j f dE „  ƒ  YZ. dF Z/ i e/ dG 6Z0 d dH „ Z2 e3 dI k r“e2 dJ e ƒ n  d S(K   iÿÿÿÿN(   t   test_supportt   setst
   deprecated(   t   Sett   ImmutableSett   TestBasicOpsc           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 d „  Z d „  Z d „  Z d „  Z RS(   c         C   s2   |  j  d  k	 r. |  j t  |  j ƒ |  j  ƒ n  d  S(   N(   t   reprt   Nonet   assertEqualt   set(   t   self(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt	   test_repr   s    c         C   s    |  j  t |  j ƒ |  j ƒ d  S(   N(   R   t   lenR	   t   length(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_length   s    c         C   s   |  j  |  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_sets.pyt   test_self_equality   s    c         C   s   |  j  |  j |  j ƒ d  S(   N(   R   R	   t   dup(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_equivalent_equality   s    c         C   s    |  j  |  j j ƒ  |  j ƒ d  S(   N(   R   R	   t   copyR   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt	   test_copy   s    c         C   s'   |  j  |  j  B} |  j | |  j ƒ d  S(   N(   R	   R   R   (   R
   t   result(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_self_union   s    c         C   s$   |  j  t B} |  j | |  j ƒ d  S(   N(   R	   t	   empty_setR   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_sets.pyt   test_empty_union!   s    c         C   s$   t  |  j B} |  j | |  j ƒ 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_sets.pyt   test_union_empty%   s    c         C   s'   |  j  |  j  @} |  j | |  j ƒ d  S(   N(   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_sets.pyt   test_self_intersection)   s    c         C   s!   |  j  t @} |  j | t ƒ d  S(   N(   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_sets.pyt   test_empty_intersection-   s    c         C   s!   t  |  j @} |  j | t  ƒ d  S(   N(   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_sets.pyt   test_intersection_empty1   s    c         C   s$   |  j  |  j  A} |  j | t ƒ d  S(   N(   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_sets.pyt   test_self_symmetric_difference5   s    c         C   s$   |  j  t A} |  j | |  j  ƒ d  S(   N(   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_sets.pyt   checkempty_symmetric_difference9   s    c         C   s$   |  j  |  j  } |  j | t ƒ d  S(   N(   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_sets.pyt   test_self_difference=   s    c         C   s$   |  j  t } |  j | |  j ƒ 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_sets.pyt   test_empty_differenceA   s    c         C   s!   t  |  j } |  j | t  ƒ d  S(   N(   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_sets.pyt   test_empty_difference_revE   s    c         C   s+   x$ |  j  D] } |  j | |  j ƒ q
 Wd  S(   N(   R	   t   assertInt   values(   R
   t   v(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_iterationI   s    c         C   si   xb t  t j d ƒ D]M } t j |  j | ƒ } t j | ƒ } |  j |  j | d |  j | f ƒ q Wd  S(   Ni   s   %s != %s(   t   ranget   picklet   HIGHEST_PROTOCOLt   dumpsR	   t   loadsR   (   R
   t   protot   pR   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_picklingM   s
    (   t   __name__t
   __module__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_sets.pyR      s$   																	t   TestBasicOpsEmptyc           B   s   e  Z d  „  Z RS(   c         C   sL   d |  _  g  |  _ t |  j ƒ |  _ t |  j ƒ |  _ d |  _ d |  _ d  S(   Ns	   empty seti    s   Set([])(   t   caseR"   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_sets.pyt   setUpW   s    			(   R-   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_sets.pyR/   V   s   t   TestBasicOpsSingletonc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sO   d |  _  d g |  _ t |  j ƒ |  _ t |  j ƒ |  _ d |  _ d |  _ d  S(   Ns   unit set (number)i   i   s   Set([3])(   R0   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_sets.pyR1   b   s    		c         C   s   |  j  d |  j k ƒ d  S(   Ni   (   t
   assertTrueR	   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_inj   s    c         C   s   |  j  d |  j k ƒ d  S(   Ni   (   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_sets.pyt   test_not_inm   s    (   R-   R.   R1   R4   R5   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyR2   a   s   		t   TestBasicOpsTuplec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sO   d |  _  d g |  _ t |  j ƒ |  _ t |  j ƒ |  _ d |  _ d |  _ d  S(   Ns   unit set (tuple)i    t   zeroi   s   Set([(0, 'zero')])(   i    R7   (   R0   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_sets.pyR1   s   s    		c         C   s   |  j  d |  j k ƒ d  S(   Ni    R7   (   i    R7   (   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_sets.pyR4   {   s    c         C   s   |  j  d |  j k ƒ d  S(   Ni	   (   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_sets.pyR5   ~   s    (   R-   R.   R1   R4   R5   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyR6   r   s   		t   TestBasicOpsTriplec           B   s   e  Z d  „  Z RS(   c         C   sX   d |  _  d d t j g |  _ t |  j ƒ |  _ t |  j ƒ |  _ d |  _ d  |  _	 d  S(   Ns
   triple seti    R7   i   (
   R0   t   operatort   addR"   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_sets.pyR1   „   s    		(   R-   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_sets.pyR8   ƒ   s   c           c   s   t  ‚ t Vd  S(   N(   t	   TypeErrort   True(    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   baditerŽ   s    c           c   s	   t  Vd  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_sets.pyt   gooditer’   s    t   TestExceptionPropagationc           B   s    e  Z d  Z d „  Z d „  Z RS(   s?   SF 628246:  Set constructor should not trap iterator TypeErrorsc         C   s   |  j  t t t ƒ  ƒ d  S(   N(   t   assertRaisesR;   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_sets.pyt   test_instanceWithException˜   s    c         C   sg   t  d d d g ƒ t  d ƒ t  i d d 6d d 6d d 6ƒ t  t d ƒ ƒ t  d ƒ t  t ƒ  ƒ d  S(	   Ni   i   i   t   onet   twot   threet   abc(   i   i   i   (   R   t   xrangeR>   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_instancesWithoutException›   s    

(   R-   R.   t   __doc__RA   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_sets.pyR?   •   s   	t   TestSetOfSetsc           B   s   e  Z d  „  Z RS(   c         C   s~   t  d g ƒ } t  | g ƒ } | j ƒ  } |  j t | ƒ t ƒ | j | ƒ | j | ƒ |  j | t  ƒ  ƒ | j | ƒ d  S(   Ni   (   R   t   popR   t   typeR   R:   t   removet   discard(   R
   t   innert   outert   element(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_constructor§   s    (   R-   R.   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_sets.pyRI   ¦   s   t   TestBinaryOpsc           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 d „  Z d „  Z RS(   c         C   s   t  d ƒ |  _ d  S(   Ni   i   i   (   i   i   i   (   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_sets.pyR1   ´   s    c         C   s2   |  j  |  j t i d d 6d d 6d d 6ƒ ƒ d  S(   Ni   i   i   i   i   i   (   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_sets.pyt   test_eq·   s    c         C   s0   |  j  t d g ƒ B} |  j | t d ƒ ƒ d  S(   Ni   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_sets.pyt   test_union_subsetº   s    c         C   sE   |  j  t d d d d g ƒ B} |  j | t d d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_union_superset¾   s    c         C   sE   |  j  t d d d g ƒ B} |  j | t d d d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_union_overlapÂ   s    c         C   s<   |  j  t d g ƒ B} |  j | t d d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_union_non_overlapÆ   s    c         C   s-   |  j  t d ƒ @} |  j | t d ƒ ƒ d  S(   Ni   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_sets.pyt   test_intersection_subsetÊ   s    c         C   sB   |  j  t d d d d g ƒ @} |  j | t d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_intersection_supersetÎ   s    c         C   s9   |  j  t d d d g ƒ @} |  j | t d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_intersection_overlapÒ   s    c         C   s*   |  j  t d g ƒ @} |  j | t ƒ d  S(   Ni   (   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_sets.pyt   test_intersection_non_overlapÖ   s    c         C   s0   |  j  t d ƒ A} |  j | t d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_sym_difference_subsetÚ   s    c         C   s0   |  j  t d ƒ A} |  j | t d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_sym_difference_supersetÞ   s    c         C   s9   |  j  t d ƒ A} |  j | t d d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_sym_difference_overlapâ   s    c         C   s<   |  j  t d g ƒ A} |  j | t d d d d g ƒ ƒ d  S(   Ni   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_sets.pyt   test_sym_difference_non_overlapæ   s    c         C   sx   t  d ƒ t  d ƒ } } |  j t t | | ƒ |  j t | | ƒ d ƒ |  j t t | d ƒ |  j t t d | ƒ d  S(   Nt   at   bi    i   RE   (   R   R@   R;   t   cmpR   (   R
   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_sets.pyt   test_cmpê   s
    c         C   sœ   |  j  j ƒ  } | | O} |  j | |  j  ƒ | | M} |  j | |  j  ƒ | | 8} |  j t | ƒ d ƒ |  j  j ƒ  } | | N} |  j t | ƒ d ƒ d  S(   Ni    (   R	   R   R   R   (   R
   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_sets.pyt   test_inplace_on_self÷   s    



(   R-   R.   R1   RS   RT   RU   RV   RW   RX   RY   RZ   R[   R\   R]   R^   R_   Rc   Re   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyRR   ³   s    															t   TestUpdateOpsc           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 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  d ƒ |  _ d  S(   Ni   i   i   (   i   i   i   (   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_sets.pyR1     s    c         C   s5   |  j  t d g ƒ O_  |  j |  j  t d ƒ ƒ d  S(   Ni   i   i   (   i   i   i   (   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_sets.pyRT   
  s    c         C   sJ   |  j  t d d d d g ƒ O_  |  j |  j  t d d d d g ƒ ƒ d  S(   Ni   i   i   i   (   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_sets.pyRU     s    !c         C   sJ   |  j  t d d d g ƒ O_  |  j |  j  t d d d d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   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_sets.pyRV     s    c         C   sA   |  j  t d g ƒ O_  |  j |  j  t d d d d g ƒ ƒ d  S(   Ni   i   i   i   (   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_sets.pyRW     s    c         C   sK   |  j  j t d d d g ƒ ƒ |  j |  j  t d d d d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   R	   t   union_updateR   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_sets.pyt   test_union_method_call  s    c         C   s2   |  j  t d ƒ M_  |  j |  j  t d ƒ ƒ d  S(   Ni   i   (   i   i   (   i   i   (   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_sets.pyRX     s    c         C   sG   |  j  t d d d d g ƒ M_  |  j |  j  t d d d g ƒ ƒ d  S(   Ni   i   i   i   (   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_sets.pyRY   "  s    !c         C   s>   |  j  t d d d g ƒ M_  |  j |  j  t d g ƒ ƒ d  S(   Ni   i   i   (   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_sets.pyRZ   &  s    c         C   s/   |  j  t d g ƒ M_  |  j |  j  t ƒ d  S(   Ni   (   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_sets.pyR[   *  s    c         C   s?   |  j  j t d d d g ƒ ƒ |  j |  j  t d g ƒ ƒ d  S(   Ni   i   i   (   R	   t   intersection_updateR   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_sets.pyt   test_intersection_method_call.  s    c         C   s5   |  j  t d ƒ N_  |  j |  j  t d g ƒ ƒ d  S(   Ni   i   i   (   i   i   (   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_sets.pyR\   2  s    c         C   s5   |  j  t d ƒ N_  |  j |  j  t d g ƒ ƒ d  S(   Ni   i   i   i   (   i   i   i   i   (   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_sets.pyR]   6  s    c         C   s>   |  j  t d ƒ N_  |  j |  j  t d d d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   i   i   i   (   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_sets.pyR^   :  s    c         C   sA   |  j  t d g ƒ N_  |  j |  j  t d d d d g ƒ ƒ d  S(   Ni   i   i   i   (   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_sets.pyR_   >  s    c         C   sH   |  j  j t d d d g ƒ ƒ |  j |  j  t d d d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   R	   t   symmetric_difference_updateR   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_sets.pyt   test_sym_difference_method_callB  s    c         C   s5   |  j  t d ƒ 8_  |  j |  j  t d g ƒ ƒ d  S(   Ni   i   i   (   i   i   (   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_sets.pyt   test_difference_subsetF  s    c         C   s2   |  j  t d ƒ 8_  |  j |  j  t g  ƒ ƒ d  S(   Ni   i   i   i   (   i   i   i   i   (   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_sets.pyt   test_difference_supersetJ  s    c         C   s8   |  j  t d ƒ 8_  |  j |  j  t d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   i   i   i   (   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_sets.pyt   test_difference_overlapN  s    c         C   s>   |  j  t d g ƒ 8_  |  j |  j  t d d d g ƒ ƒ d  S(   Ni   i   i   i   (   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_sets.pyt   test_difference_non_overlapR  s    c         C   sB   |  j  j t d d d g ƒ ƒ |  j |  j  t d d g ƒ ƒ d  S(   Ni   i   i   i   i   (   R	   t   difference_updateR   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_sets.pyt   test_difference_method_callV  s    (   R-   R.   R1   RT   RU   RV   RW   Rh   RX   RY   RZ   R[   Rj   R\   R]   R^   R_   Rl   Rm   Rn   Ro   Rp   Rr   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyRf     s*   																				t
   TestMutatec           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(   d d d g |  _  t |  j  ƒ |  _ d  S(   NR`   Ra   t   c(   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_sets.pyR1   ]  s    c         C   s-   |  j  j d ƒ |  j |  j  t d ƒ ƒ d  S(   NRt   RE   (   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_sets.pyt   test_add_presenta  s    c         C   s-   |  j  j d ƒ |  j |  j  t d ƒ ƒ d  S(   Nt   dt   abcd(   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_sets.pyt   test_add_absente  s    c         C   sg   t  ƒ  } d } x> |  j D]3 } | j | ƒ | d 7} |  j t | ƒ | ƒ q W|  j | |  j ƒ d  S(   Ni    i   (   R   R"   R:   R   R   R	   (   R
   t   tmpt   expected_lenR#   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_add_until_fulli  s    	
c         C   s-   |  j  j d ƒ |  j |  j  t d ƒ ƒ d  S(   NRa   t   ac(   R	   RL   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_sets.pyt   test_remove_presentr  s    c         C   s9   y! |  j  j d ƒ |  j d ƒ Wn t k
 r4 n Xd  S(   NRv   s7   Removing missing element should have raised LookupError(   R	   RL   t   failt   LookupError(   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_remove_absentv  s
    c         C   sZ   t  |  j ƒ } xD |  j D]9 } |  j j | ƒ | d 8} |  j t  |  j ƒ | ƒ q Wd  S(   Ni   (   R   R	   R"   RL   R   (   R
   Rz   R#   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_remove_until_empty}  s
    
c         C   s-   |  j  j d ƒ |  j |  j  t d ƒ ƒ d  S(   NRt   t   ab(   R	   RM   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_sets.pyt   test_discard_present„  s    c         C   s-   |  j  j d ƒ |  j |  j  t d ƒ ƒ d  S(   NRv   RE   (   R	   RM   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_sets.pyt   test_discard_absentˆ  s    c         C   s*   |  j  j ƒ  |  j t |  j  ƒ d ƒ d  S(   Ni    (   R	   t   clearR   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_sets.pyt
   test_clearŒ  s    c         C   sp   i  } x  |  j  r( d  | |  j  j ƒ  <q	 W|  j t | ƒ t |  j ƒ ƒ x! |  j D] } |  j | | ƒ qR Wd  S(   N(   R	   R   RJ   R   R   R"   R!   (   R
   t   poppedR#   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_pop�  s    c         C   s0   |  j  j d ƒ |  j |  j  t |  j ƒ ƒ d  S(   N(    (   R	   Rg   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_sets.pyt   test_update_empty_tuple˜  s    c         C   s0   |  j  j d ƒ |  j |  j  t |  j ƒ ƒ d  S(   NR`   (   R`   (   R	   Rg   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_sets.pyt   test_update_unit_tuple_overlapœ  s    c         C   s7   |  j  j d ƒ |  j |  j  t |  j d g ƒ ƒ d  S(   NR`   t   z(   R`   R‹   (   R	   Rg   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_sets.pyt"   test_update_unit_tuple_non_overlap   s    (   R-   R.   R1   Ru   Rx   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_sets.pyRs   \  s   														t   TestSubsetsc           B   sU   e  Z i d  d 6d d 6Z i d d 6d d 6d d 6d d 6d d 6d d 6Z d „  Z RS(	   t   issubsets   <=t
   issupersets   >=s   ==s   !=t   >t   <c         C   s  |  j  } |  j } xd	 D]þ } | |  j k } t d | d t ƒ  ƒ } |  j | | ƒ | t j k rœ t | t j | ƒ } | | ƒ } |  j | | ƒ n  t j	 | } t d | d t ƒ  ƒ } |  j | | ƒ | t j k r t | t j | ƒ } | | ƒ } |  j | | ƒ q q Wd  S(
   Ns   !=s   ==R‘   s   <=R�   s   >=t   xt   y(   s   !=s   ==R‘   s   <=R�   s   >=(
   t   leftt   rightt   casest   evalt   localsR   R�   t   case2methodt   getattrt   reverse(   R
   R’   R“   R0   t   expectedR   t   methodt   rcase(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_issubset´  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_sets.pyR�   ¦  s   



t   TestSubsetEqualEmptyc           B   s&   e  Z e ƒ  Z e ƒ  Z d  Z d Z RS(   s
   both emptys   ==s   <=s   >=(   s   ==s   <=s   >=(   R-   R.   R   R”   R•   t   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_sets.pyR    Ì  s   		t   TestSubsetEqualNonEmptyc           B   s8   e  Z e d  d g ƒ Z e d  d g ƒ Z d Z d Z RS(   i   i   s
   equal pairs   ==s   <=s   >=(   s   ==s   <=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_sets.pyR¢   Ô  s   t   TestSubsetEmptyNonEmptyc           B   s/   e  Z e ƒ  Z e d  d g ƒ Z d Z d Z RS(   i   i   s   one empty, one non-emptys   !=R‘   s   <=(   s   !=R‘   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_sets.pyR£   Ü  s   	t   TestSubsetPartialc           B   s5   e  Z e d  g ƒ Z e d  d g ƒ Z d Z d Z RS(   i   i   s&   one a non-empty proper subset of others   !=R‘   s   <=(   s   !=R‘   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_sets.pyR¤   ä  s   t   TestSubsetNonOverlapc           B   s2   e  Z e d  g ƒ Z e d g ƒ Z d Z d Z RS(   i   i   s   neither empty, neither containss   !=(   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_sets.pyR¥   ì  s   t   TestOnlySetsInBinaryOpsc           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   st   |  j  |  j |  j k t ƒ |  j  |  j |  j k t ƒ |  j  |  j |  j k t ƒ |  j  |  j |  j k t ƒ d  S(   N(   R   t   otherR	   t   FalseR<   (   R
   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt
   test_eq_neö  s    c            sÌ   ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ d  S(	   Nc              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_sets.pyt   <lambda>þ  t    c              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_sets.pyRª   ÿ  R«   c              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_sets.pyRª      R«   c              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_sets.pyRª     R«   c              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_sets.pyRª     R«   c              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_sets.pyRª     R«   c              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_sets.pyRª     R«   c              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_sets.pyRª     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_sets.pyt   test_ge_gt_le_ltý  s    c         C   s;   y |  j  |  j O_  Wn t k
 r) n X|  j d ƒ d  S(   Ns   expected TypeError(   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_sets.pyt   test_union_update_operator  s
    c         C   s?   |  j  r |  j j |  j ƒ n |  j t |  j j |  j ƒ d  S(   N(   t   otherIsIterableR	   Rg   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_sets.pyt   test_union_update  s    	c            sq   ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j rQ ˆ  j j ˆ  j ƒ n ˆ  j  t ˆ  j j ˆ  j ƒ d  S(   Nc              s   ˆ  j  ˆ  j BS(   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_sets.pyRª     R«   c              s   ˆ  j  ˆ  j BS(   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_sets.pyRª     R«   (   R@   R;   R®   R	   t   unionR§   (   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_sets.pyt
   test_union  s
    	c         C   s;   y |  j  |  j M_  Wn t k
 r) n X|  j d ƒ d  S(   Ns   expected TypeError(   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_sets.pyt!   test_intersection_update_operator  s
    c         C   s?   |  j  r |  j j |  j ƒ n |  j t |  j j |  j ƒ d  S(   N(   R®   R	   Ri   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_sets.pyt   test_intersection_update&  s
    			c            sq   ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j rQ ˆ  j j ˆ  j ƒ n ˆ  j  t ˆ  j j ˆ  j ƒ d  S(   Nc              s   ˆ  j  ˆ  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_sets.pyRª   /  R«   c              s   ˆ  j  ˆ  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_sets.pyRª   0  R«   (   R@   R;   R®   R	   t   intersectionR§   (   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_sets.pyt   test_intersection.  s
    	c         C   s;   y |  j  |  j N_  Wn t k
 r) n X|  j d ƒ d  S(   Ns   expected TypeError(   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_sets.pyt#   test_sym_difference_update_operator6  s
    c         C   s?   |  j  r |  j j |  j ƒ n |  j t |  j j |  j ƒ d  S(   N(   R®   R	   Rk   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_sets.pyt   test_sym_difference_update>  s
    			c            sq   ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j rQ ˆ  j j ˆ  j ƒ n ˆ  j  t ˆ  j j ˆ  j ƒ d  S(   Nc              s   ˆ  j  ˆ  j AS(   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_sets.pyRª   G  R«   c              s   ˆ  j  ˆ  j AS(   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_sets.pyRª   H  R«   (   R@   R;   R®   R	   t   symmetric_differenceR§   (   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_sets.pyt   test_sym_differenceF  s
    	c         C   s;   y |  j  |  j 8_  Wn t k
 r) n X|  j d ƒ d  S(   Ns   expected TypeError(   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_sets.pyt   test_difference_update_operatorN  s
    c         C   s?   |  j  r |  j j |  j ƒ n |  j t |  j j |  j ƒ d  S(   N(   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_sets.pyt   test_difference_updateV  s
    			c            sq   ˆ  j  t ‡  f d †  ƒ ˆ  j  t ‡  f d †  ƒ ˆ  j rQ ˆ  j j ˆ  j ƒ n ˆ  j  t ˆ  j j ˆ  j ƒ d  S(   Nc              s   ˆ  j  ˆ  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_sets.pyRª   _  R«   c              s   ˆ  j  ˆ  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_sets.pyRª   `  R«   (   R@   R;   R®   R	   t
   differenceR§   (   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_sets.pyt   test_difference^  s
    	(   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_sets.pyR¦   ô  s   													t   TestOnlySetsNumericc           B   s   e  Z d  „  Z RS(   c         C   s%   t  d ƒ |  _ d |  _ t |  _ d  S(   Ni   i   i   i   (   i   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_sets.pyR1   i  s    	(   R-   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_sets.pyR¾   h  s   t   TestOnlySetsDictc           B   s   e  Z d  „  Z RS(   c         C   s3   t  d ƒ |  _ i d d 6d d 6|  _ t |  _ d  S(   Ni   i   i   i   (   i   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_sets.pyR1   q  s    (   R-   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_sets.pyR¿   p  s   t   TestOnlySetsOperatorc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s(   t  d ƒ |  _ t j |  _ t |  _ d  S(   Ni   i   i   (   i   i   i   (   R   R	   R9   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_sets.pyR1   y  s    c         C   s*   t  j ƒ  � t t |  ƒ j ƒ  Wd  QXd  S(   N(   R    t   check_py3k_warningst   superRÀ   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_sets.pyR¬   ~  s    (   R-   R.   R1   R¬   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyRÀ   x  s   	t   TestOnlySetsTuplec           B   s   e  Z d  „  Z RS(   c         C   s%   t  d ƒ |  _ d |  _ t |  _ d  S(   Ni   i   i   i   i   (   i   i   i   (   i   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_sets.pyR1   …  s    	(   R-   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_sets.pyRÃ   „  s   t   TestOnlySetsStringc           B   s   e  Z d  „  Z RS(   c         C   s%   t  d ƒ |  _ d |  _ t |  _ d  S(   Ni   i   i   RE   (   i   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_sets.pyR1   �  s    	(   R-   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_sets.pyRÄ   Œ  s   t   TestOnlySetsGeneratorc           B   s   e  Z d  „  Z RS(   c         C   s1   d „  } t  d ƒ |  _ | ƒ  |  _ t |  _ d  S(   Nc          s   s&   x t  d d d ƒ D] }  |  Vq Wd  S(   Ni    i
   i   (   RF   (   t   i(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   gen–  s    i   i   i   (   i   i   i   (   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_sets.pyR1   •  s    	(   R-   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_sets.pyRÅ   ”  s   t   TestOnlySetsofSetsc           B   s   e  Z d  „  Z RS(   c         C   s7   t  d ƒ |  _ t  d ƒ t d ƒ g |  _ t |  _ d  S(   Ni   i   i   R‚   t   cd(   i   i   i   (   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_sets.pyR1      s    (   R-   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_sets.pyRÈ   Ÿ  s   t   TestCopyingc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sš   |  j  j ƒ  } |  j t | ƒ t |  j  ƒ ƒ t | ƒ } t |  j  ƒ } |  j t | ƒ t | ƒ ƒ x. t | ƒ D]  \ } } |  j | | | ƒ qr Wd  S(   N(   R	   R   R   R   t   sortedt	   enumeratet   assertIs(   R
   R   t   dup_listt   set_listRÆ   t   el(    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyR   ©  s    c         C   s)   t  j |  j ƒ } |  j | |  j ƒ d  S(   N(   R   t   deepcopyR	   t   assertSetEqual(   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_sets.pyt   test_deep_copy²  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_sets.pyRÊ   §  s   		t   TestCopyingEmptyc           B   s   e  Z d  „  Z RS(   c         C   s   t  ƒ  |  _ 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_sets.pyR1   ¹  s    (   R-   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_sets.pyRÔ   ¸  s   t   TestCopyingSingletonc           B   s   e  Z d  „  Z RS(   c         C   s   t  d g ƒ |  _ d  S(   Nt   hello(   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_sets.pyR1   ¿  s    (   R-   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_sets.pyRÕ   ¾  s   t   TestCopyingTriplec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   t  d d d  g ƒ |  _ d  S(   NR7   i    (   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_sets.pyR1   Å  s    c         C   s*   t  j ƒ  � t t |  ƒ j ƒ  Wd  QXd  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_sets.pyR   È  s    (   R-   R.   R1   R   (    (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyR×   Ä  s   	t   TestCopyingTuplec           B   s   e  Z d  „  Z RS(   c         C   s   t  d g ƒ |  _ d  S(   Ni   i   (   i   i   (   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_sets.pyR1   Ï  s    (   R-   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_sets.pyRØ   Î  s   t   TestCopyingNestedc           B   s   e  Z d  „  Z RS(   c         C   s   t  d d f g ƒ |  _ d  S(   Ni   i   i   i   (   i   i   (   i   i   (   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_sets.pyR1   Õ  s    (   R-   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_sets.pyRÙ   Ô  s   t   TestIdentitiesc           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sf   t  g  t d ƒ D] } t j d ƒ ^ q ƒ |  _ t  g  t d ƒ D] } t j d ƒ ^ qA ƒ |  _ d  S(   Ni2   id   (   R   RF   t   randomt	   randrangeR`   Ra   (   R
   RÆ   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyR1   Û  s    1c         C   s¼   |  j  |  j } } |  j | | | k ƒ |  j | | | k ƒ |  j | | @| k ƒ |  j | | @| k ƒ |  j | | B| k ƒ |  j | | B| k ƒ |  j | | A| | Bk ƒ d  S(   N(   R`   Ra   R3   (   R
   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_sets.pyt   test_binopsVsSubsetsß  s    c         C   s†   |  j  |  j } } |  j | | @| | @ƒ |  j | | B| | Bƒ |  j | | A| | Aƒ | | k r‚ |  j | | | | ƒ n  d  S(   N(   R`   Ra   R   t   assertNotEqual(   R
   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_sets.pyt   test_commutativityé  s    c         C   s    |  j  t ƒ  } } |  j | | A| ƒ |  j | | | ƒ |  j | | B| ƒ |  j | | @| ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ d  S(   N(   R`   R   R   R3   (   R
   R`   R7   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_reflexsive_relationsñ  s    c         C   sï   |  j  |  j } } |  j | | | | @B| | B| | Bƒ |  j | | @| | AB| | Bƒ |  j | | | B| | Bƒ |  j | | | B| | Bƒ |  j | | | | @B| ƒ |  j | | | | @B| ƒ |  j | | | | B| | Aƒ d  S(   N(   R`   Ra   R   (   R
   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_sets.pyt   test_summationsû  s    ( c         C   sm   |  j  |  j t ƒ  } } } |  j | | | @| ƒ |  j | | | @| ƒ |  j | | @| | A@| ƒ d  S(   N(   R`   Ra   R   R   (   R
   R`   Ra   R7   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt   test_exclusion  s    c         C   s  |  j  |  j } } |  j t | ƒ t | | ƒ t | | @ƒ ƒ |  j t | ƒ t | | ƒ t | | @ƒ ƒ |  j t | | Aƒ t | | ƒ t | | ƒ ƒ |  j t | | Bƒ t | | ƒ t | | @ƒ t | | ƒ ƒ |  j t | | Aƒ t | | @ƒ t | | Bƒ ƒ d  S(   N(   R`   Ra   R   R   (   R
   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_sets.pyt   test_cardinality_relations  s    ..2@(	   R-   R.   R1   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_sets.pyRÚ   Ú  s   		
		
		sÓ  
Example from the Library Reference:  Doc/lib/libsets.tex

>>> from sets import Set as Base  # override _repr to get sorted output
>>> class Set(Base):
...     def _repr(self):
...         return Base._repr(self, sorted=True)
>>> engineers = Set(['John', 'Jane', 'Jack', 'Janice'])
>>> programmers = Set(['Jack', 'Sam', 'Susan', 'Janice'])
>>> managers = Set(['Jane', 'Jack', 'Susan', 'Zack'])
>>> employees = engineers | programmers | managers           # union
>>> engineering_management = engineers & managers            # intersection
>>> fulltime_management = managers - engineers - programmers # difference
>>> engineers.add('Marvin')
>>> print engineers
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin'])
>>> employees.issuperset(engineers)           # superset test
False
>>> employees.union_update(engineers)         # update from another set
>>> employees.issuperset(engineers)
True
>>> for group in [engineers, programmers, managers, employees]:
...     group.discard('Susan')                # unconditionally remove element
...     print group
...
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin'])
Set(['Jack', 'Janice', 'Sam'])
Set(['Jack', 'Jane', 'Zack'])
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack'])
t
   libreftestc         C   s‡   d d  l  } d d l m } t j t t t t t	 t
 t t t t t t t t t t t t t t t t t t t t t | j  | ƒ ƒ d  S(   Niÿÿÿÿ(   t	   test_sets(!   t   doctestt   testRå   R    t   run_unittestRI   R?   R/   R2   R6   R8   RR   Rf   Rs   R    R¢   R£   R¤   R¥   R¾   R¿   RÀ   RÃ   RÄ   RÅ   RÈ   RÔ   RÕ   R×   RØ   RÙ   RÚ   t   DocTestSuite(   t   verboseRæ   Rå   (    (    s„   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_sets.pyt	   test_main:  s>    t   __main__Rê   (4   t   unittestR9   R   R&   RÛ   Rç   R    t   import_moduleR<   R   R   R   R   t   TestCaseR   R/   R2   R6   R8   R=   R>   R?   RI   RR   Rf   Rs   R�   R    R¢   R£   R¤   R¥   R¦   R¾   R¿   RÀ   RÃ   RÄ   RÅ   RÈ   RÊ   RÔ   RÕ   R×   RØ   RÙ   RÚ   Rä   t   __test__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_sets.pyt   <module>   sT   <	K		SVJ&t
Z"