ó
ŠwÛjc        :   @   s  d  d l  Z  d  d l Z d  d l Z d  d l m Z d  d l Z d „  Z d d d d d d	 d
 d d d d d d d d d d d d d d d d d d d d d d  d! d" d# d$ d% d& d' d( d) d* d+ d, g) Z d- g Z d d. d/ d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d: d; d< d= d> d? d@ dA dB dC dD dE g Z	 dF e j
 f dG „  ƒ  YZ dH e j
 f dI „  ƒ  YZ dJ „  Z dK „  Z dL dM dN dO f dP dN dO f d dQ f f f g f dL dR dN dO f dS dT g  e e g  f dU dN dV f f g g  f g f dL dR dN dO f dS dT dP dN dW f dX dY f f g e e g  f dU dN dZ f f g g  f g f dL dR dN dO f dS dT dP dN dW f dX dY f f g e e d[ dN d\ f dO f g f dU dN d] f f g g  f g f dL dR dN dO f dS dT g  d^ e g  f dU dN d_ f f g g  f g f dL dR dN dO f dS dT g  e d` g  f dU dN da f f g g  f g f dL dR dN dO f dS dT dP dN dW f dX dY f f dP dN dV f db dY f f dP dN d_ f dc dY f f dP dN dd f de dY f f dP dN df f dg dY f f g d^ d` d[ dN dh f dN f dP dN di f d dQ f f dj dN dk f g  dQ f f dl dN dm f g  g  f g f dU dN dn f f g g  f g f dL do dN dO f dp g  dU dN d\ f f g g  f g f dL do dN dO f dp dP dN d\ f dq dQ f f g dU dN da f f g g  f g f dL dR dN dO f dS dT g  e e g  f dr dN d\ f d[ dN ds f dN f f g g  f g f dL dt dN dO f dP dN du f d? dv f f g f g f dL dw dN dO f dP dN dO f d? dx f f g d[ dN du f dN f f g f dL dy dN dO f dP dN dO f d? dx f f dz f d[ dN d{ f dN f f g f dL d| dN dO f dP dN d\ f dS dQ f f d[ dN dh f dN f g e f g f dL d} dN dO f dP dN du f d? dx f f dP dN dV f d? dQ f f dU dN dh f f g g  f g f dL d~ dN dO f dP dN dW f d? dQ f f dU dN d\ f f g g  f g f dL d dN dO f dP dN d€ f d? dQ f f dU dN d{ f f g g  f g f dL d� dN dO f dP dN dW f d‚ dQ f f dƒ dN da f d„ f e f g f dL d… dN dO f dU d† d† f f g d‡ d€ dO f dP d€ dˆ f d‚ dQ f f e dU du d† f f g f g g  f g f dL d‰ dN dO f dU d† d† f f g dU du d† f f g f g f dL dŠ dN dO f dP dN dˆ f d? dQ f f e f g f dL d‹ dN dO f dŒ d� e f g f g f dL dŽ dN dO f d� dŒ d? e f g dO f g f dL d� dN dO f dƒ dN d{ f d? f e e f g f dL d� dN dO f d? g f g f dL dM dN dO f d[ dN dO f dN f f g f dL dU dN dO f f g f dL d‘ dN dO f f g f dL d’ dN dO f f g f dL d} dN dO f d“ dN du f dP dN du f dX dx f f dP dN dW f db dx f f g dx f f dP dN dh f dc dQ f f dU dN d_ f f g g  f g f dL dM dN dO f d” dN dN f d“ dN d† f dP dN d† f dX dQ f f dP dN du f db dQ f f g dQ f f d• d“ dN dh f dP dN dh f dX dx f f dP dN d– f db dx f f g dx f f dP dN d— f dc dQ f f g  f g f f g f dL dM dN dO f d˜ dN dN f d“ dN d† f dP dN d† f dX dQ f f dP dN du f db dQ f f g dQ f f d• d“ dN dh f dP dN dh f dX dx f f dP dN d– f db dx f f g dx f f dP dN d— f dc dQ f f g  f g f f g f dL dM dN dO f d˜ dN dN f d“ dN d† f dP dN d† f dX dQ f f dP dN du f db dQ f f g dQ f f d• d“ dN d] f dP dN d] f dX dx f f dP dN d_ f db dx f f g dx f f dP dN d™ f dc dQ f f g  f g f f g f dL dM dN dO f d˜ d† du f d“ d€ du f dP d€ du f dš dQ f f dP d{ dˆ f d› dQ f f g dQ f f d• d“ d\ du f dP d\ du f dš dx f f dP dZ du f d› dx f f g dx f f dP dZ dZ f dœ dQ f f g  f g f f g f dL dM dN dO f d� dN dN f dP dN dN f dX dQ f f dP dN d{ f db dQ f f d• dP dN dh f dž dx f f dP dN di f dŸ dQ f f g  f d• dP dN dd f d  dx f f dP dN d¡ f d¢ dQ f f dP dN d£ f d¤ dQ f f g f g f f g f dL dM dN dO f d� dN dN f dP dN dN f dX dQ f f dP dN d{ f db dQ f f d• d“ dN dh f dP dN dh f d? dx f f dP dN d– f dž dx f f g dx f f dP dN d— f dŸ dQ f f g  f g f f g f dL dM dN dO f d¥ dN dN f dP dN dN f d¦ dQ f f d• dP dN dˆ f d§ dx f f dP dN d] f dŸ dQ f f dP dN da f d¤ dQ f f g f g f f g f dL dM dN dO f d¥ dN dN f dP dN dN f d¦ dQ f f d• d“ dN dˆ f dP dN dˆ f d§ dx f f dP dN dV f d  dx f f g dx f f dP dN d_ f dŸ dQ f f g  f g f f g f dL dR dN dO f dS dT g  e e g  f dU du dV f f g dP dN dN f d¨ dQ f f d© d† dN f dP d† dN f dª dQ f f g  g  e e f d© d€ dN f dP d€ dN f d« dQ f f d[ d€ dˆ f dN f g g  e e f g f g f dL do dN dO f dp g  dU du dV f f g dP dN dN f d¨ dQ f f d© d† dN f dP d† dN f dª dQ f f g  g  e e f d© d€ dN f dP d€ dN f d« dQ f f d[ d€ dˆ f dN f g g  e e f g f g f dL dR dN dO f dS dT g  e e g  f dU d† dV f f g d© dN dN f dP dN dN f d¬ dQ f f d˜ dN dW f dP dN dW f dX dQ f f d• dP dN d] f dX dx f f dP dN da f db dQ f f g  f g f g g  e e f g f g f g) Z d­ dM dN dO f d® dN dO f d[ dN dO f dN f dz f d[ dN d† f d† f f f g f g Z d¯ dP dN dO f d dQ f f f d¯ d° dN dO f d± f dP dN dO f dX dQ f f dP dN dW f db dQ f f g f f d¯ d® dN dO f dP dN dO f dX dQ f f dz f dP dN du f db dQ f f f f d¯ d² dN dO f d³ f dP dN du f d? dQ f f f f d¯ d´ dN dO f dT g  e e g  f dP dN dˆ f d dQ f f f f d¯ dl dN dO f d[ dN d† f dN f g d[ dN du f d† f g f f d¯ dl dN dO f g  g  f f d¯ dµ dN dO f dP dN dN f d dQ f f g f f d¯ dl dN dO f d[ d† dW f dN f g d[ du dZ f d† f g f f d¯ d” dN dN f dP dN dN f dX dQ f f d• dP dN dˆ f db dx f f dP dN d] f dc dQ f f dP dN da f de dQ f f g f g f f d¯ d˜ dN dN f dP dN dN f dX dQ f f d• dP dN dˆ f db dx f f dP dN d] f dc dQ f f dP dN da f de dQ f f g f g f f d¯ d¶ dN dO f d[ dN dO f dN f d· f d· f g d[ dN du f d† f d[ dN d\ f d€ f g f f d¯ d© dN dO f dP dN dO f dS dQ f f d[ dN d† f dN f d[ dN du f d† f g d¸ dc d[ dN d\ f d€ f f g dP dN dh f de dQ f f dP dN ds f dg dQ f f f f d¯ d¹ dN dO f dP dN dN f d? dQ f f f f d¯ d[ dN dO f dº f f d¯ dƒ dN dO f d„ f f d¯ d» dN dO f dP dN dO f dX dQ f f db dQ f f f d¯ d¼ dN dO f dP dN dO f dX dQ f f d½ dP dN d† f db dQ f f dP dN du f dc dQ f f e f dQ f f f d¯ dP dN dO f d? dQ f f f d¯ dj dN dO f d[ dN dN f dN f d[ dN d€ f d† f d[ dN d{ f d€ f g dQ f f f d¯ dj dN dO f g  dQ f f f d¯ d“ dN dO f d[ dN dO f dN f d[ dN d† f d† f d[ dN du f d€ f g dQ f f f d¯ d“ dN dN f d[ dN dN f dN f d[ dN d€ f d† f d[ dN d{ f d€ f g dQ f f f d¯ d“ dN dO f g  dQ f f f d¯ d© dN dO f d» dN dO f d» dN dO f d» dN dO f dP dN dO f dX dQ f f db dQ f f dc dQ f f de dQ f f d¼ dN d\ f d» dN d\ f dP dN d\ f dX dQ f f db dQ f f d½ d[ dN d] f dN f d[ dN d_ f d† f e f dQ f f g g  e e f f g Z e ƒ  d S(¾   iÿÿÿÿN(   t   test_supportc         C   só   |  d  k s' t |  t t t t f ƒ r+ |  St |  t ƒ rW g  |  D] } t | ƒ ^ qA S|  j j	 g } t
 |  d ƒ r  t
 |  d ƒ r  | j |  j |  j f ƒ n  |  j d  k r¹ t | ƒ Sx- |  j D]" } | j t t |  | ƒ ƒ ƒ qÃ Wt | ƒ S(   Nt   linenot
   col_offset(   t   Nonet
   isinstancet
   basestringt   intt   longt   complext   listt   to_tuplet	   __class__t   __name__t   hasattrt   appendR   R   t   _fieldst   tuplet   getattr(   t   tt   et   resultt   f(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyR
      s    '
 R   s   def f(): passs   def f(a): passs   def f(a=0): passs   def f(*args): passs   def f(**kwargs): passs8   def f(a, b=1, c=None, d=[], e={}, *args, **kwargs): passs   class C:passs   class C(object): passs   def f():return 1s   del vs   v = 1s   v += 1s   print >>f, 1, s   for v in v:passs   while v:passs	   if v:passs   raise Exception, 'string's$   try:
  pass
except Exception:
  passs   try:
  pass
finally:
  passs   assert vs
   import syss   from sys import vs   exec 'v's   global vt   1t   passt   breakt   continues   for a,b in c: passs   [(a,b) for a,b in c]s   ((a,b) for a,b in c)s   ((a,b) for (a,b) in c)sL   (
    (
    Aa
    ,
       Bb
    )
    for
    Aa
    ,
    Bb in Cc
    )s"   {a : b for w in x for m in p if g}s   {a : b for v,w in x}s   {r for l in x if g}s   {r for l,m in x}s'   @deco1
@deco2()
@deco3(1)
def f(): passs'   @deco1
@deco2()
@deco3(1)
class C: passs!   @deco(a for a in b)
def f(): passs   1+2s   a and bs   a + bs   not vs   lambda:Nones   { 1:2 }s   {}s   {None,}s&   {
      1
        :
          2
     }s   [a for b in c if d]s   (a for b in c if d)s	   1 < 2 < 3s   f(1,2,c=3,*d,**e)s   `v`t   10Ls   'string's   a.bs   a[b:c]t   vs   [1,2,3]s   []s   1,2,3s   (1,2,3)s   ()s   a.b.c.d(a.b[1:2])t	   AST_Testsc           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 RS(   c         C   sú   t  | t j ƒ s" | j d  k r& d  St  | t j t j t j f ƒ r� | j | j	 f } |  j
 | | k ƒ | j | j	 f } n  xr | j D]g } t | | ƒ } t  | t ƒ rÓ x@ | D] } |  j | | ƒ q¶ Wq‹ | d  k	 r‹ |  j | | ƒ q‹ q‹ Wd  S(   N(   R   t   astt   ASTR   R   t   exprt   stmtt   excepthandlerR   R   t
   assertTrueR   R	   t   _assertTrueorder(   t   selft   ast_nodet
   parent_post   node_post   namet   valuet   child(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyR#   ¼   s    "!c      	   C   s¨   t  j ƒ  } |  j | j d ƒ |  j t ƒ � | j Wd  QX|  j t ƒ � d | _ Wd  QX|  j t ƒ � t  j d d ƒ Wd  QX|  j t ƒ � t  j d ƒ Wd  QXd  S(   Ni   R   i   (    (	   R   R   t   assertEqualR   t   assertRaisest   AttributeErrort   varargt   foobart	   TypeError(   R$   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_ast.pyt   test_AST_objectsË   s    c         C   s£   xœ t  t d f t t d f t t d f f D]p \ } } } x^ t j | | ƒ D]J \ } } t | d | t	 j
 ƒ } |  j t | ƒ | ƒ |  j | d ƒ qM Wq+ Wd  S(   Nt   exect   singlet   evalt   ?i    (   i    i    (   t
   exec_testst   exec_resultst   single_testst   single_resultst
   eval_testst   eval_resultst	   itertoolst   izipt   compileR   t   PyCF_ONLY_ASTR+   R
   R#   (   R$   t   inputt   outputt   kindt   it   ot   ast_tree(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_snippetsÜ   s    c         C   sl   t  j d ƒ j d j j } |  j | j ƒ |  j | j ƒ |  j | j	 t  j
 ƒ |  j | j	 j d ƒ d  S(   Ns   x[::]i    R   (   R   t   parset   bodyR)   t   slicet   assertIsNonet   uppert   lowert   assertIsInstancet   stept   NameR+   t   id(   R$   t   slc(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt
   test_sliceå   s
    c         C   s*   t  j d ƒ j d } |  j | j ƒ d  S(   Ns   from . import yi    (   R   RH   RI   RK   t   module(   R$   t   im(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_from_importì   s    c         C   sS   t  j d ƒ } |  j | j d t  j ƒ d j ƒ  | j d _ t | d d ƒ d  S(   Ns   from __future__ import divisioni    s    __future__ s   <test>R3   (   R   RH   RN   RI   t
   ImportFromt   stripRT   R?   (   R$   t   mod(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt!   test_non_interned_future_from_astð   s    c         C   s¬   |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j t j ƒ ƒ |  j  t t j	 t j ƒ ƒ d  S(   N(
   R"   t
   issubclassR   t   ForR    RP   R   R   t   comprehensiont   Gt(   R$   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_base_classesö   s    c         C   s‰   x‚ t  j j ƒ  D]q \ } } t | t ƒ r | d k r | d j ƒ  r | ƒ  } t | t  j ƒ r� |  j t | j ƒ t	 ƒ q� q q Wd  S(   NR   i    (
   R   t   __dict__t	   iteritemsR   t   typet   isupperR   R+   R   R   (   R$   R(   t   itemR1   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_field_attr_existenceþ   s
    +	c         C   sk   t  j ƒ  } |  j | j d	 ƒ |  j t ƒ � | j Wd  QXt  j d d d d ƒ } |  j | j d ƒ d  S(
   Nt   argsR.   t   kwargt   defaultsi   i   i   i   (   Rf   R.   Rg   Rh   (   R   t	   argumentsR+   R   R,   R-   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_ast.pyt   test_arguments  s    c         C   s,   t  j ƒ  } d | _ |  j | j d ƒ d  S(   Niš  (   R   t   NumR   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_ast.pyt   test_field_attr_writable  s    	c      
   C   sG  t  j ƒ  } |  j | j d ƒ |  j t ƒ � | j Wd  QXt  j d ƒ } |  j | j d ƒ |  j t ƒ � | j Wd  QX|  j t ƒ � | j Wd  QXt  j d d ƒ } |  j | j d ƒ t  j d d d ƒ} |  j | j d ƒ |  j | j d ƒ |  j | j d ƒ |  j t	 t  j d d ƒ |  j t	 t  j d d d d ƒd  S(	   Nt   ni*   R   i   i    i   (   Rm   (   Rm   (
   R   Rk   R+   R   R,   R-   Rm   R   R/   R0   (   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_ast.pyt   test_classattrs  s$    c         C   s8   t  j d ƒ g } t  j | ƒ } |  j | j | ƒ d  S(   Ni*   (   R   Rk   t   ModuleR+   RI   (   R$   RI   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_ast.pyt   test_module0  s    c      	   C   s†  t  j ƒ  } |  j | j d ƒ d | _ |  j | j d ƒ t  j d ƒ } t  j d ƒ } t  j ƒ  } t  j | | | ƒ } |  j | j | ƒ |  j | j | ƒ |  j | j	 | ƒ t  j d d d ƒ } |  j | j d ƒ |  j | j d ƒ |  j | j	 d ƒ t  j d d d d d	 ƒ} |  j | j d ƒ |  j | j d ƒ |  j | j	 d ƒ |  j | j
 d	 ƒ |  j t t  j d d ƒ |  j t t  j d d d d
 ƒ |  j t t  j d d d d	 ƒ|  j t t  j d d d d
 d d	 ƒt  j d d d d d d d d	 ƒ } |  j | j d ƒ |  j | j d ƒ |  j | j	 d ƒ |  j | j
 d	 ƒ t  j d d d d d ƒ} |  j | j d ƒ d  S(   Nt   leftt   opt   righti   i   i   i   R   i    i   t	   foobarbazi*   (   Rq   Rr   Rs   (   R   t   BinOpR+   R   Rt   Rk   t   AddRq   Rr   Rs   R   R,   R0   (   R$   R1   t   n1t   n3t   addop(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_nodeclasses5  s>    	%$c         C   s#   t  j ƒ  } |  j | j d ƒ d  S(   N(    (   R   t   SubR+   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_ast.pyt   test_no_fieldse  s    c   	      C   sÍ   d d  l  } | g } y d d  l } | j | ƒ Wn t k
 rE n Xd d d g } xq | D]i } x` | D]X } xO d „  t Dƒ D]= } | j | j | | ƒ ƒ } |  j t | ƒ t | ƒ ƒ q€ Wqi Wq\ Wd  S(   Niÿÿÿÿi    i   i   c         s   s$   |  ] } t  | d  d d ƒ Vq d S(   R6   R3   i   N(   R?   (   t   .0RD   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pys	   <genexpr>u  s    (	   t   picklet   cPickleR   t   ImportErrorR7   t   loadst   dumpsR+   R
   (	   R$   R~   t   modsR   t	   protocolsRY   t   protocolR   t   ast2(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_picklingj  s    	c         C   s   t  j t  j t  j d t  j ƒ  ƒ ƒ g ƒ } t  j | ƒ |  j t ƒ � } t | d d ƒ Wd  QX|  j	 d t
 | j ƒ ƒ d  S(   Nu   xs   <test>R3   s   identifier must be of type str(   R   Ro   t   ExprRP   t   Loadt   fix_missing_locationsR,   R0   R?   t   assertInt   strt	   exception(   R$   t   mt   cm(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_invalid_identitifery  s
    -c         C   sv   t  j t  j t  j d ƒ ƒ g ƒ } t  j | ƒ |  j t ƒ � } t | d d ƒ Wd  QX|  j d t	 | j
 ƒ ƒ d  S(   Ni+   s   <test>R3   s!   string must be of type str or uni(   R   Ro   Rˆ   t   StrRŠ   R,   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_ast.pyt   test_invalid_string€  s
    $(   R   t
   __module__R#   R2   RG   RS   RV   RZ   R_   Re   Rj   Rl   Rn   Rp   Rz   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_ast.pyR   º   s"   										
				0			t   ASTHelpers_Testc           B   sb   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   c         C   sM   t  j d ƒ } t d d d t  j ƒ } |  j t  j | ƒ t  j | ƒ ƒ d  S(   Ns
   foo(1 + 1)s	   <unknown>R3   (   R   RH   R?   R@   R+   t   dump(   R$   t   at   b(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt
   test_parseŠ  s    c         C   sj   t  j d ƒ } |  j t  j | ƒ d ƒ |  j t  j | d t ƒd ƒ |  j t  j | d t ƒd ƒ d  S(   Ns   spam(eggs, "and cheese")s£   Module(body=[Expr(value=Call(func=Name(id='spam', ctx=Load()), args=[Name(id='eggs', ctx=Load()), Str(s='and cheese')], keywords=[], starargs=None, kwargs=None))])t   annotate_fieldsse   Module([Expr(Call(Name('spam', Load()), [Name('eggs', Load()), Str('and cheese')], [], None, None))])t   include_attributess  Module(body=[Expr(value=Call(func=Name(id='spam', ctx=Load(), lineno=1, col_offset=0), args=[Name(id='eggs', ctx=Load(), lineno=1, col_offset=5), Str(s='and cheese', lineno=1, col_offset=11)], keywords=[], starargs=None, kwargs=None, lineno=1, col_offset=0), lineno=1, col_offset=0)])(   R   RH   R+   R•   t   Falset   True(   R$   t   node(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt	   test_dump�  s    c         C   s_   t  j d d d ƒ} t  j t  j d ƒ | j j ƒ | j _ |  j t  j | d t ƒd ƒ d  S(   Ns   1 + 1t   modeR5   i   Rš   s‡   Expression(body=BinOp(left=Num(n=1, lineno=1, col_offset=0), op=Add(), right=Num(n=2, lineno=1, col_offset=4), lineno=1, col_offset=0))(	   R   RH   t   copy_locationRk   RI   Rs   R+   R•   Rœ   (   R$   t   src(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_copy_location¢  s    'c         C   s—   t  j d ƒ } | j j t  j t  j t  j d t  j ƒ  ƒ t  j d ƒ g g  d  d  ƒ ƒ ƒ |  j
 | t  j | ƒ ƒ |  j
 t  j | d t ƒd ƒ d  S(   Ns   write("spam")t   spamt   eggsRš   s´  Module(body=[Expr(value=Call(func=Name(id='write', ctx=Load(), lineno=1, col_offset=0), args=[Str(s='spam', lineno=1, col_offset=6)], keywords=[], starargs=None, kwargs=None, lineno=1, col_offset=0), lineno=1, col_offset=0), Expr(value=Call(func=Name(id='spam', ctx=Load(), lineno=1, col_offset=0), args=[Str(s='eggs', lineno=1, col_offset=0)], keywords=[], starargs=None, kwargs=None, lineno=1, col_offset=0), lineno=1, col_offset=0)])(   R   RH   RI   R   Rˆ   t   CallRP   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_ast.pyt   test_fix_missing_locations«  s    *"c         C   s°   t  j d d d ƒ} |  j t  j | d d ƒ| ƒ |  j t  j | d t ƒd ƒ t  j d d d ƒ} |  j t  j | j d d ƒ| j ƒ |  j t  j | d t ƒd ƒ d  S(   Ns   1 + 1RŸ   R5   Rm   i   Rš   s‡   Expression(body=BinOp(left=Num(n=1, lineno=4, col_offset=0), op=Add(), right=Num(n=1, lineno=4, col_offset=4), lineno=4, col_offset=0))(   R   RH   R+   t   increment_linenoR•   Rœ   RI   (   R$   R¡   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_increment_lineno»  s    %c         C   sy   t  j d d d ƒ} t t  j | j ƒ ƒ } |  j | j d ƒ j d ƒ |  j | i g  d 6d  d 6g  d 6d  d	 6ƒ d  S(
   Ns   foo()RŸ   R5   t   funct   foot   keywordst   kwargsRf   t   starargs(	   R   RH   t   dictt   iter_fieldsRI   R+   t   popRQ   R   (   R$   R�   t   d(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_iter_fieldsÌ  s
    c         C   s½   t  j d d d ƒ} |  j t t t  j | j ƒ ƒ ƒ d ƒ t  j | j ƒ } |  j t | ƒ j d ƒ |  j t | ƒ j	 d ƒ |  j t | ƒ j	 d ƒ |  j t  j
 t | ƒ ƒ d ƒ d  S(	   Ns   spam(23, 42, eggs='leek')RŸ   R5   i   R£   i   i*   s(   keyword(arg='eggs', value=Str(s='leek'))(   R   RH   R+   t   lenR	   t   iter_child_nodesRI   t   nextRQ   Rm   R•   (   R$   R�   t   iterator(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_iter_child_nodesÓ  s    (c         C   s3   t  j d ƒ } |  j t  j | j d ƒ d ƒ d  S(   Ns&   def foo():
  """line one
  line two"""i    s   line one
line two(   R   RH   R+   t   get_docstringRI   (   R$   R�   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_get_docstringÞ  s    c         C   s~   |  j  t j d ƒ d d d g ƒ |  j  t j d ƒ i d d 6ƒ |  j  t j d ƒ t t d  f ƒ |  j t t j d	 ƒ d  S(
   Ns	   [1, 2, 3]i   i   i   s   {"foo": 42}i*   Rª   s   (True, False, None)s   foo()(   R+   R   t   literal_evalRœ   R›   R   R,   t
   ValueError(   R$   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   test_literal_evalã  s    " "c         C   se   |  j  t j d ƒ d ƒ |  j  t j d ƒ d ƒ |  j  t j d ƒ d	 ƒ |  j t t j d ƒ d  S(
   Nt   2jy               @s   10 + 2ji
   s   1.5 - 2jg      ø?s   2 + (3 + 4j)y      $@       @y      ø?       À(   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_ast.pyt   test_literal_eval_issue4907é  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_ast.pyR”   ˆ  s   										c           C   s0   t  j d t f ƒ � t  j t t ƒ Wd  QXd  S(   Ns   backquote not supported(   R    t   check_py3k_warningst   SyntaxWarningt   run_unittestR   R”   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt	   test_mainð  s    	c       	   C   s´   t  d k r d  St j d d g k r© xr t d f t d f t d f f D]O \ }  } | d GHx2 |  D]* } t t t | d | d	 ƒ ƒ ƒ d
 GHqd Wd GHqH Wd GHt	 ‚ n  t
 ƒ  d  S(   Nt   __main__i   s   -gR3   R4   R5   s   _results = [R6   i   t   ,t   ]s   main()(   R   t   syst   argvR7   R9   R;   t   reprR
   R?   t
   SystemExitRÂ   (   t
   statementsRC   t   s(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   mainõ  s    	(		Ro   Rˆ   i   i    RP   R‰   t   FunctionDefR   Ri   t   Passi	   i   R–   t   Parami
   Rk   i   i   Rf   i   R¬   i   R—   t   ci   R±   i   R   i   i   t   Listi   t   Dicti   i4   t   ClassDeft   Ct   objectt   Returni   t   Deletei   t   Delt   Assignt   Storet	   AugAssignRv   i   t   PrintR\   t   Whilet   Ifi   t   Raiset	   ExceptionR‘   t   stringt	   TryExcepti   t   ExceptHandleri   t
   TryFinallyt   Assertt   Importt   aliasRÆ   RW   t   Exect   Globalt   Breakt   Continuet   Tuplet   ListCompR]   i   i   t   GeneratorExpi   t   Aat   Bbt   Cct   DictCompt   wR1   RŽ   i   t   pi    t   gt   SetCompt   rt   lt   deco1R¥   t   deco2t   deco3t   decot   InteractiveRu   t
   Expressiont   BoolOpt   Andt   UnaryOpt   Nott   Lambdat   Sett   Comparet   Ltt   keywordt   Reprl   
 t	   Attributet	   Subscriptt   Slice(   RÆ   R=   t   unittestt   testR    R   R
   R7   R9   R;   t   TestCaseR   R”   RÂ   RÌ   R   R›   R8   R:   R<   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_ast.pyt   <module>   s  $				Îh		0BZlBBÿ 3KT3EHH]EEEl<3'-0*�ÛÛÛÛäÃ“«ÒÃÞWNK3??0?��]¢-6lTTTù