ó
ŠwÛjc           @   s^   d  d l  m Z m Z d  d l Z d e j f d „  ƒ  YZ d „  Z e d k rZ e ƒ  n  d S(   iÿÿÿÿ(   t   run_unittestt   check_py3k_warningsNt   AugAssignTestc           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s¡   d } | d 7} | d 9} | d C} | d 8} | d } | d ;} | d M} | d O} | d N} | d :} d d d k r� |  j  | d ƒ n |  j  | d ƒ d  S(   Ni   i   i   i   i   i    g      @(   t   assertEqual(   t   selft   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_augassign.pyt	   testBasic   s    









c         C   s   |  j  t t d d d ƒ d  S(   Ns	   x, b += 3s   <test>t   exec(   t   assertRaisest   SyntaxErrort   compile(   R   (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt   test_with_unpacking   s    c         C   sè   d g } | d c d 7<| d c d 9<| d c d C<| d c d 8<| d c d <| d c d ;<| d c d M<| d c d O<| d c d N<| d c d :<d d d k rÐ |  j  | d d ƒ n |  j  | d d ƒ d  S(   Ni   i    i   i   i   i   g      @(   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_augassign.pyt
   testInList   s    	c         C   sì   i d d 6} | d c d 7<| d c d 9<| d c d C<| d c d 8<| d c d <| d c d ;<| d c d M<| d c d O<| d c d N<| d c d :<d d d k rÔ |  j  | d d ƒ n |  j  | d d ƒ d  S(   Ni   i    i   i   i   i   g      @(   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_augassign.pyt
   testInDict/   s    c      
   C   sÂ   d d g } | d d g 7} | d 9} |  j  | d d d d d d d d g ƒ d d d g } | } | d d c !d 9+| d d c !d g 7+|  j  | d d d d d g ƒ |  j | | k ƒ d  S(   Ni   i   i   i   (   R   t
   assertTrue(   R   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_augassign.pyt   testSequences@   s    
(c            s5  d d ‡  f d †  ƒ  Y‰  d ˆ  f d „  ƒ  Y} d ˆ  f ‡ f d †  ƒ  Y‰ ˆ  d ƒ } | } | d 7} |  j  | ˆ  ƒ |  j | | k	 ƒ |  j | j d	 ƒ | d
 ƒ } | } | d 7} |  j | | k ƒ |  j | j d ƒ ˆ d ƒ } | } | d 7} |  j  | ˆ ƒ |  j | | k	 ƒ |  j | j d ƒ d  S(   Nt   aug_testc              s)   e  Z d  „  Z d „  Z ‡  f d †  Z RS(   c         S   s   | |  _  d  S(   N(   t   val(   R   t   value(    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt   __init__R   s    c         S   s   |  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_augassign.pyt   __radd__T   s    c            s   ˆ  |  j  | ƒ S(   N(   R   (   R   R   (   R   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt   __add__V   s    (   t   __name__t
   __module__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_augassign.pyR   Q   s   		t	   aug_test2c           B   s   e  Z d  „  Z RS(   c         S   s   |  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_augassign.pyt   __iadd__Z   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_augassign.pyR   Y   s   t	   aug_test3c              s   e  Z ‡  f d  †  Z RS(   c            s   ˆ  |  j  | ƒ S(   N(   R   (   R   R   (   R   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyR   _   s    (   R   R   R   (    (   R   (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyR   ^   s   i   i
   i   i   i   i   i   (    (   t   assertIsInstanceR   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_augassign.pyt   testCustomMethods1O   s(    


c            s´  g  ‰  d d ‡  f d †  ƒ  Y} | ƒ  } | d d | | d 7} | d d | | d 8} | d d | | d 9} d d d k r£ | d d | | d :} n' | j  d ƒ | j d ƒ | j d ƒ | d d | | d } | d d | | d ;} | d d | | d C} | d Bd | B| d O} | d @d | @| d M} | d Ad | A| d N} | d ?d | ?| d L} | d >d | >| d K} |  j ˆ  d j ƒ  ƒ d  S(   Nt   testallc              sB  e  Z ‡  f d  †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z	 ‡  f d †  Z
 ‡  f d	 †  Z ‡  f d
 †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z ‡  f d †  Z  ‡  f d †  Z! ‡  f d  †  Z" ‡  f d! †  Z# ‡  f d" †  Z$ ‡  f d# †  Z% ‡  f d$ †  Z& ‡  f d% †  Z' RS(&   c            s   ˆ  j  d ƒ d  S(   Ns   __add__ called(   t   append(   R   R   (   t   output(    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyR   ~   s    c            s   ˆ  j  d ƒ d  S(   Ns   __radd__ called(   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_augassign.pyR   €   s    c            s   ˆ  j  d ƒ |  S(   Ns   __iadd__ called(   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_augassign.pyR   ‚   s    c            s   ˆ  j  d ƒ d  S(   Ns   __sub__ called(   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_augassign.pyt   __sub__†   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rsub__ called(   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_augassign.pyt   __rsub__ˆ   s    c            s   ˆ  j  d ƒ |  S(   Ns   __isub__ called(   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_augassign.pyt   __isub__Š   s    c            s   ˆ  j  d ƒ d  S(   Ns   __mul__ called(   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_augassign.pyt   __mul__Ž   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rmul__ called(   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_augassign.pyt   __rmul__�   s    c            s   ˆ  j  d ƒ |  S(   Ns   __imul__ called(   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_augassign.pyt   __imul__’   s    c            s   ˆ  j  d ƒ d  S(   Ns   __div__ called(   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_augassign.pyt   __div__–   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rdiv__ called(   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_augassign.pyt   __rdiv__˜   s    c            s   ˆ  j  d ƒ |  S(   Ns   __idiv__ called(   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_augassign.pyt   __idiv__š   s    c            s   ˆ  j  d ƒ |  S(   Ns   __floordiv__ called(   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_augassign.pyt   __floordiv__ž   s    c            s   ˆ  j  d ƒ |  S(   Ns   __ifloordiv__ called(   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_augassign.pyt   __ifloordiv__¡   s    c            s   ˆ  j  d ƒ |  S(   Ns   __rfloordiv__ called(   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_augassign.pyt   __rfloordiv__¤   s    c            s   ˆ  j  d ƒ |  S(   Ns   __truediv__ called(   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_augassign.pyt   __truediv__¨   s    c            s   ˆ  j  d ƒ |  S(   Ns   __itruediv__ called(   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_augassign.pyt   __itruediv__«   s    c            s   ˆ  j  d ƒ d  S(   Ns   __mod__ called(   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_augassign.pyt   __mod__¯   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rmod__ called(   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_augassign.pyt   __rmod__±   s    c            s   ˆ  j  d ƒ |  S(   Ns   __imod__ called(   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_augassign.pyt   __imod__³   s    c            s   ˆ  j  d ƒ d  S(   Ns   __pow__ called(   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_augassign.pyt   __pow__·   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rpow__ called(   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_augassign.pyt   __rpow__¹   s    c            s   ˆ  j  d ƒ |  S(   Ns   __ipow__ called(   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_augassign.pyt   __ipow__»   s    c            s   ˆ  j  d ƒ d  S(   Ns   __or__ called(   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_augassign.pyt   __or__¿   s    c            s   ˆ  j  d ƒ d  S(   Ns   __ror__ called(   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_augassign.pyt   __ror__Á   s    c            s   ˆ  j  d ƒ |  S(   Ns   __ior__ called(   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_augassign.pyt   __ior__Ã   s    c            s   ˆ  j  d ƒ d  S(   Ns   __and__ called(   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_augassign.pyt   __and__Ç   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rand__ called(   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_augassign.pyt   __rand__É   s    c            s   ˆ  j  d ƒ |  S(   Ns   __iand__ called(   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_augassign.pyt   __iand__Ë   s    c            s   ˆ  j  d ƒ d  S(   Ns   __xor__ called(   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_augassign.pyt   __xor__Ï   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rxor__ called(   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_augassign.pyt   __rxor__Ñ   s    c            s   ˆ  j  d ƒ |  S(   Ns   __ixor__ called(   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_augassign.pyt   __ixor__Ó   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rshift__ called(   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_augassign.pyt
   __rshift__×   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rrshift__ called(   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_augassign.pyt   __rrshift__Ù   s    c            s   ˆ  j  d ƒ |  S(   Ns   __irshift__ called(   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_augassign.pyt   __irshift__Û   s    c            s   ˆ  j  d ƒ d  S(   Ns   __lshift__ called(   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_augassign.pyt
   __lshift__ß   s    c            s   ˆ  j  d ƒ d  S(   Ns   __rlshift__ called(   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_augassign.pyt   __rlshift__á   s    c            s   ˆ  j  d ƒ |  S(   Ns   __ilshift__ called(   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_augassign.pyt   __ilshift__ã   s    ((   R   R   R   R   R   R!   R"   R#   R$   R%   R&   R'   R(   R)   R*   R+   R,   R-   R.   R/   R0   R1   R2   R3   R4   R5   R6   R7   R8   R9   R:   R;   R<   R=   R>   R?   R@   RA   RB   RC   (    (   R    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyR   }   sL   i   i   i    sR  __add__ called
__radd__ called
__iadd__ called
__sub__ called
__rsub__ called
__isub__ called
__mul__ called
__rmul__ called
__imul__ called
__div__ called
__rdiv__ called
__idiv__ called
__floordiv__ called
__rfloordiv__ called
__ifloordiv__ called
__mod__ called
__rmod__ called
__imod__ called
__pow__ called
__rpow__ called
__ipow__ called
__or__ called
__ror__ called
__ior__ called
__and__ called
__rand__ called
__iand__ called
__xor__ called
__rxor__ called
__ixor__ called
__rshift__ called
__rrshift__ called
__irshift__ called
__lshift__ called
__rlshift__ called
__ilshift__ called
(    (   R'   R(   R)   R   t
   splitlines(   t	   test_selfR   R   (    (   R    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt   testCustomMethods2z   sZ    j	










	%(	   R   R   R   R   R   R   R   R   RF   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyR      s   						+c           C   s'   t  d t f ƒ � t t ƒ Wd  QXd  S(   Ns   classic int division(   R   t   DeprecationWarningR    R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt	   test_mainF  s    t   __main__(   t   test.test_supportR    R   t   unittestt   TestCaseR   RH   R   (    (    (    s‰   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_augassign.pyt   <module>   s   ÿ @	