ó
‹wÛjc           @   s  d  d l  m Z m Z m Z m Z m Z m Z m Z m Z m	 Z	 m
 Z
 m Z m Z d  d l Z d  d l Z d  d l m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m Z d  d l Z d e j f d „  ƒ  YZ d „  Z d „  Z e d	 k re ƒ  n  d S(
   iÿÿÿÿ(   t   verboset   run_unittestt   import_modulet   precisionbigmemtestt   _2Gt   cpython_onlyt   captured_stdoutt   have_unicodet   requires_unicodet   ut   check_warningst   check_py3k_warningsN(   t   Scanner(   t   proxyt   ReTestsc           B   s³  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e 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 d „  Z d „  Z d „  Z  e 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` d` e. j/ d* „ Z0 e d+ „  ƒ Z1 d, „  Z2 e d- „  ƒ Z3 d. „  Z4 d/ „  Z5 d0 „  Z6 d1 „  Z7 d2 „  Z8 d3 „  Z9 d4 „  Z: d5 „  Z; d6 „  Z< d7 „  Z= d8 „  Z> e d9 „  ƒ Z? d: „  Z@ d; „  ZA d< „  ZB d= „  ZC d> „  ZD d? „  ZE e d@ „  ƒ ZF dA „  ZG e dB „  ƒ ZH e dC „  ƒ ZI dD „  ZJ dE „  ZK e dF „  ƒ ZL dG „  ZM e dH „  ƒ ZN dI „  ZO dJ „  ZP dK „  ZQ dL „  ZR eS dM eT dN dO ƒ dP „  ƒ ZU eS dM eT dN da ƒ dS „  ƒ ZV dT „  ZW eX dU „  ƒ ZY dV „  ZZ dW „  Z[ dX „  Z\ dY „  Z] dZ „  Z^ d[ „  Z_ d\ „  Z` d] „  Za d^ „  Zb d_ „  Zc RS(b   c         C   sG   d } t  j d ƒ } t | ƒ } |  j | j d ƒ | j d ƒ ƒ d  S(   Nt   QabbbcRs   ab+c(   t   ret   compileR   t   assertEqualt   findall(   t   selft   st   xt   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_re.pyt   test_weakref   s    c         C   sR  |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ |  j  t j d	 d
 ƒ j d ƒ d ƒ |  j  t j d	 d
 ƒ j ƒ  d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j t j d d
 ƒ ƒ d  S(   Ns   x*t   axxi    s   x+i   i   R   t   aaas   a*t   xxxt   xxxas   a+(   i    i    (   i    i    (   i   i   (   i   i   (   i    i    (   i    i    (   i    i   (   i    i   (   R   R   t   searcht   spant   assertIsNonet   match(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_search_star_plus!   s    %"%"%"%"c         C   s#   t  | j d ƒ ƒ } t | d ƒ S(   Ni    i   (   t   intt   groupt   str(   R   t   matchobjt	   int_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_re.pyt   bump_num-   s    c      
      s¥  |  j  t j d d d ƒ d ƒ |  j  t j d |  j d ƒ d ƒ |  j  t j d |  j d d ƒ d	 ƒ |  j  t j d
 d „  d ƒ d ƒ |  j  t j d
 d d ƒ d ƒ d ‰  |  j  t j d ˆ  d ƒ d ƒ |  j  t j d ˆ  j d d ƒ d ƒ ˆ  ƒ |  j  t j d ‡  f d †  d ƒ ˆ  ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ t d ƒ t d ƒ t d  ƒ t d! ƒ t d" ƒ t d# ƒ t d$ ƒ ƒ xE d% D]= } t ƒ  �, |  j  t j d d | d ƒ d | ƒ Wd  QXqAW|  j  t j d& d' d( ƒ d) ƒ d  S(*   Ns   (?i)b+R   s	   bbbb BBBBs   x xs   \d+s   08.2 -2 23x99ys   9.3 -3 24x100yi   s   9.3 -3 23x99yt   .c         S   s   d S(   Ns   \n(    (   t   m(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   <lambda>8   t    s   \ns   
s   \1\1s   (.)t   xxs   \s   \\c            s   ˆ  S(   N(    (   R)   (   R   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyR*   >   R+   s   (?P<a>x)s
   \g<a>\g<a>t   xxxxs
   \g<a>\g<1>s
   (?P<unk>x)s   \g<unk>\g<unk>s
   \g<1>\g<1>t   as   \t\n\v\r\f\a\bs   	
i	   i
   i   i   i   i   i   t,   cdehijklmopqsuwxyzABCDEFGHIJKLMNOPQRSTUVWXYZs   ^\s*t   Xt   testt   Xtest(   R   R   t   subR'   t   replacet   chrR   (   R   t   c(    (   R   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_basic_re_sub1   s.    "+(I
1c         C   s#   |  j  t j d d d ƒ d ƒ d  S(   Ns
   (?P<unk>x)s   \g<1>\g<1>\bR,   s   xxxx(   R   R   R3   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_449964O   s    c         C   s€   |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ d  S(   Ns   \r\ns   \ns
   abc
def
s   abc
def
s   
s   
(   R   R   R3   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_449000T   s    c         C   s$  xd D]} xd D]} t  j | | d ƒ } |  j | d ƒ |  j t | ƒ t ƒ t  j | | d ƒ } |  j | d ƒ |  j t | ƒ t ƒ t  j | | t | ƒ ƒ } |  j | | ƒ |  j t | ƒ t ƒ t  j | | t | ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ q Wq Wd  S(	   NR   u   xR   u   yu    R+   (   R   u   x(   R   u   y(   R   R3   R   t   typet   unicodeR$   (   R   R   R   t   z(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_1140_   s    c         C   sŒ   t  j d ƒ } |  j t t  j | d t  j ƒ |  j t t  j | d t  j ƒ |  j t t  j | d t  j ƒ |  j t t  j | t  j ƒ d  S(   NR(   t   A(   R   R   t   assertRaisest
   ValueErrorR    t   IR   R   (   R   t   pattern(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_1661y   s
    c         C   s   t  j d ƒ d  S(   Ns   (?P<quote>)(?(quote))(   R   R   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_3629�   s    c         C   sÅ  |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d- ƒ |  j  t j d d	 d ƒ d. ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d/ ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d0 ƒ |  j  t j d d d ƒ d1 ƒ |  j  t j d d d ƒ d2 ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j t j t j d d d ƒ |  j t j t j d d d ƒ |  j t j t j d d d ƒ |  j t j t j d d d ƒ |  j t j t j d d  d ƒ |  j t j t j d d! d ƒ |  j t j t j d d" d ƒ |  j t j t j d d# d ƒ |  j t j t j d d$ d ƒ |  j t j t j d d% d ƒ |  j t j t j d d& d ƒ |  j t j t j d d' d ƒ |  j  t j d( d d ƒ d ƒ |  j  t j d) d$ d* ƒ d+ ƒ |  j  t j d) d% d* ƒ d, ƒ d  S(3   NR   s   \0s    s   \000s   \001s   s   \008t   8s   \009t   9s   \111RA   s   \117t   Os   \1111t   I1t   1s   \00s   \07s   s   \08s   \09s   \0aR.   s   \400s   \777s   ÿs   \1s   \8s   \9s   \11s   \18s   \1as   \90s   \99s   \118s   \11as   \181s   \800s   (((((((((((x)))))))))))s   ((((((((((y))))))))))(.)t   xyzt   xz8t   xzas    8s    9RH   s    8s    9s    a(   R   R   R3   R?   t   error(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt    test_sub_template_numeric_escape…   sB    c         C   sE   |  j  t j d d d ƒ d ƒ |  j  t j d d d d ƒ d ƒ d  S(   NR.   t   bt   aaaaat   bbbbbi   t   baaaa(   R   R   R3   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_qualified_re_sub¯   s    c         C   s#   |  j  t j d d d ƒ d ƒ d  S(   Ns   (\S)\s+(\S)s   \1 \2s   hello  theres   hello there(   R   R   R3   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_114660³   s    c         C   sB   |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ d  S(   Ns   x*t   -t   abxds   -a-b-d-s   x+s   ab-d(   R   R   R3   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_462270·   s    c         C   s•  t  j d ƒ t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d	 ƒ |  j t  j t  j d
 ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ |  j t  j t  j d ƒ d  S(   Ns   (?P<a>x)(?P=a)(?(a)y)s   (?P<a1>x)(?P=a1)(?(a1)y)s   (?P<a>)(?P<a>)s   (?Px)s   (?P=)s   (?P=1)s   (?P=a)s   (?P=a1)s   (?P=a.)s   (?P<)s   (?P<>)s   (?P<1>)s   (?P<a.>)s   (?())s   (?(a))s   (?(1a))s   (?(a.))(   R   R   R?   RM   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_symbolic_groups¼   s"    c         C   s7  |  j  t j t j d d d ƒ |  j  t j t j d d d ƒ |  j  t j t j d d d ƒ |  j  t j t j d d d ƒ |  j  t j t j d d d ƒ |  j  t j t j d d d ƒ |  j  t t j d d	 d ƒ |  j  t j t j d
 d d ƒ |  j  t j t j d
 d d ƒ |  j  t j t j d d d ƒ d  S(   Ns   (?P<a>x)s   \g<aR,   s   \g<s   \gs   \g<a a>s   \g<>s   \g<1a1>s   \g<ab>s   (?P<a>x)|(?P<b>y)s   \g<b>s   \2s   \g<-1>(   R?   R   RM   R3   t
   IndexError(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_symbolic_refsÏ   s    c         C   s¢   |  j  t j d d d ƒ d ƒ |  j  t j d d d ƒ d ƒ |  j  t j d d d	 ƒ d ƒ |  j  t j d d d	 ƒ d ƒ |  j  t j d d d	 d ƒ d ƒ d  S(   Ns   (?i)b+R   s	   bbbb BBBBs   x xi   s   b+s   x BBBBi   RJ   i    s   b*t   xxxyxzxi   t   xxxyz(   s   x xi   (   s   x BBBBi   (   RJ   i    (   R[   i   (   R\   i   (   R   R   t   subn(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_subnÛ   s
    c         C   sŸ  |  j  t j d d ƒ d d d d d g ƒ |  j  t j d d ƒ d d d d g ƒ |  j  t j d d ƒ d d d d d d	 d g ƒ |  j  t j d
 d ƒ d d d d g ƒ |  j  t j d d ƒ d d d d d d d g ƒ |  j  t j d d ƒ d d d d d g ƒ |  j  t j d d ƒ d d  d d d  d d d d  d d  d	 d g ƒ |  j  t j d d ƒ d d d d d g ƒ x¯ d d d d d g f d d d d d g f d d d d d d d	 d g f d d d d d d d d g f g D]A \ } } t d t f ƒ �! |  j  t j | d ƒ | ƒ Wd  QXqãWxp d d g f d d g f d d g f d d g f g D]8 \ } } t ƒ  �! |  j  t j | d ƒ | ƒ Wd  QXq_Wd  S(   Nt   :s   :a:b::cR+   R.   RO   R6   s   :+s   (:+)s   ::s   (?::+)s   (:)+s   ([b:]+)s   :b::s   (b)|(:+)s   (?:b)|(?::+)s   :*s   (?::*)s   (:*)s   (:)*s   \bs   (?=:)s   (?<=:)(   R   R   t   splitt   NoneR   t   FutureWarning(   R   t   sept   expected(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_splitâ   s8    +((.&
c         C   sú   |  j  t j d d d ƒ d d d g ƒ |  j  t j d d d ƒ d d d	 g ƒ |  j  t j d
 d d ƒ d d d d d g ƒ |  j  t j d d d ƒ d d d d d g ƒ t d t f ƒ �6 |  j  t j d d d d ƒd d d d d g ƒ Wd  QXd  S(   NR_   s   :a:b::ci   R+   R.   s   b::cs   a:b:c:dRO   s   c:ds   (:)s   (:+)s   (:*)t   maxsplit(   R   R   R`   R   Rb   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_qualified_re_split  s    ((c         C   s�   |  j  t j d d ƒ g  ƒ |  j  t j d d ƒ d d d g ƒ |  j  t j d d ƒ d d d g ƒ |  j  t j d d ƒ d
 d d g ƒ d  S(   Ns   :+t   abcs
   a:b::c:::dR_   s   ::s   :::s   (:+)s   (:)(:*)R+   (   R_   R+   (   R_   R_   (   R_   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_re.pyt   test_re_findall  s    %%c         C   s)   |  j  t j d d ƒ d d d g ƒ d  S(	   Ns   (a|(b))t   abaR.   R+   RO   (   R.   R+   (   RO   RO   (   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_re.pyt   test_bug_117612  s    c         C   sg  |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d d ƒ d ƒ t j d ƒ } |  j  | j d ƒ j ƒ  d ƒ |  j  | j d ƒ j ƒ  d ƒ |  j  | j d ƒ j ƒ  d ƒ |  j  | j d	 ƒ j ƒ  d ƒ |  j  | j d	 ƒ j d
 ƒ d ƒ t j d d ƒ } |  j  | j d ƒ d ƒ |  j  | j d ƒ d ƒ |  j  | j d ƒ d ƒ |  j  | j d d ƒ d ƒ t j d ƒ } |  j  | j d ƒ j d d d ƒ d ƒ |  j  | j d ƒ j d d d ƒ d ƒ |  j  | j d ƒ j d d d ƒ d ƒ d  S(   NR.   s   (a)i    i   s   ((a)|(b))(c)?RO   t   acR6   t   bcR+   s!   (?:(?P<a1>a)|(?P<b2>b))(?P<c3>c)?i   i   t   a1t   b2t   c3(    (   R.   (   R.   R.   (   R.   R.   NN(   RO   NRO   N(   R.   R.   NR6   (   RO   NRO   R6   (   RO   R+   RO   R6   (   R.   R.   (   R.   NN(   NRO   N(   R.   NR6   (   R   R   R    t   groupsR#   R   Ra   (   R   t   patR)   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_match  s*    ""%%("(!c         C   s{  |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d
 ƒ j ƒ  d ƒ |  j  t j d d
 ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ t j d ƒ } |  j  | j d ƒ j ƒ  d ƒ |  j  | j d ƒ j ƒ  d ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ d  S(   Ns   ^(\()?([^()]+)(?(1)\))$s   (a)t   (R.   s   a)s   (as   ^(?:(a)|c)((?(1)b|d))$t   abRO   t   cdt   ds   ^(?:(a)|c)((?(1)|d))$R+   s   (?P<g1>a)(?P<g2>b)?((?(g2)c|d))Rh   R6   t   adt   abdRl   (   Rt   R.   (   NR.   (   R.   RO   (   NRw   (   NRw   (   R.   R+   (   R.   RO   R6   (   R.   NRw   (   R   R   R    Rq   Ra   R   R   (   R   t   p(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_groupref_exists6  s*    c         C   s¾   |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j  t j d d	 ƒ j ƒ  d ƒ |  j  t j d
 d ƒ j ƒ  d ƒ d  S(   Ns   ^(\|)?([^()]+)\1$s   |a|t   |R.   s   ^(\|)?([^()]+)\1?$s   a|s   |as   ^(?:(a)|c)(\1)$t   aas   ^(?:(a)|c)(\1)?$R6   (   R|   R.   (   NR.   (   R.   R.   (   NN(   R   R   R    Rq   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_re.pyt   test_re_grouprefP  s    c         C   s4   |  j  t j d d ƒ j ƒ  i d d 6d d 6ƒ d  S(   Ns#   (?P<first>first) (?P<second>second)s   first secondt   firstt   second(   R   R   R    t	   groupdict(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_groupdict\  s    c         C   s)   |  j  t j d d ƒ j d ƒ d ƒ d  S(   Ns#   (?P<first>first) (?P<second>second)s   first seconds   \2 \1 \g<second> \g<first>s   second first second first(   R   R   R    t   expand(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_expanda  s    	c         C   sî  |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j t j d d ƒ j d ƒ d ƒ |  j t j d	 d ƒ j d ƒ d ƒ |  j t j d
 d ƒ j d ƒ d ƒ |  j t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j t j d d ƒ ƒ d  S(   Ns	   ^(\w){1}$Rh   s
   ^(\w){1}?$s   ^(\w){1,2}$s   ^(\w){1,2}?$s	   ^(\w){3}$i   R6   s   ^(\w){1,3}$s   ^(\w){1,4}$s   ^(\w){3,4}?$s
   ^(\w){3}?$s   ^(\w){1,3}?$s   ^(\w){1,4}?$s   ^x{1}$R   s   ^x{1}?$s   ^x{1,2}$s	   ^x{1,2}?$s   ^x{3}$s   ^x{1,3}$s   ^x{1,4}$s	   ^x{3,4}?$s   ^x{3}?$s	   ^x{1,3}?$s	   ^x{1,4}?$s   ^x{}$s   x{}(   R   R   R    R   R#   t
   assertTrue(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_repeat_minmaxg  s4    %%%%%%%%c         C   s¢   |  j  t j d d ƒ j d ƒ |  j  t j d d ƒ j d ƒ |  j  t j d d ƒ j d ƒ |  j  t j d d ƒ j d d f ƒ |  j t j d d ƒ j ƒ d  S(   Ns   (a)R.   i    i   (   i    i   (   i    i   (   R   R   R    t   post   endpost   stringt   regsR…   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_getattr‡  s
    %c         C   s»  |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ t rÿ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ n  |  j  t j d d t j ƒ j d	 ƒ d
 ƒ |  j  t j d d
 t j ƒ j d	 ƒ d
 ƒ |  j t j d d t j ƒ ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d	 ƒ d
 ƒ |  j  t j d d t j ƒ j d	 ƒ d
 ƒ |  j t j d d t j ƒ ƒ |  j  t j d d ƒ j d	 ƒ d ƒ |  j  t j d d t j ƒ j d	 ƒ d ƒ t r·|  j  t j d d t j ƒ j d	 ƒ d ƒ n  d  S(   Ns   \b(b.)\bs   abcd abc bcd bxi   t   bxs   \B(b.)\Bs   abc bcd bc abxds   ^abc$s   
abc
i    Rh   s	   ^\Aabc\Z$u   abcd abc bcd bxu   abc bcd bc abxdu   
abc
u   abcs   \d\D\w\W\s\Ss   1aa! a(	   R   R   R   R#   t   LOCALER   t   UNICODEt   MR   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_special_escapesŽ  s<    ++++c      	   C   s?  |  j  t j t j d ƒ |  j t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ |  j t j d	 d
 ƒ j ƒ  d
 ƒ |  j t j d	 d ƒ ƒ |  j t j d d ƒ j ƒ  d ƒ |  j t j d d ƒ ƒ t j ƒ  x‚ d D]z } | d k rPt	 n t
 } t d | f ƒ �H |  j t j d | | ƒ j ƒ  | ƒ |  j t j d | d ƒ ƒ Wd  QXq8Wx‚ d D]z } | d k rÕt	 n t
 } t d | f ƒ �H |  j t j d | | ƒ j ƒ  | ƒ |  j t j d | d ƒ ƒ Wd  QXq½Wd  S(   Ns   \s   \(Rt   t   )s   \\s   [\]]t   ]t   [s   [a\-c]RU   RO   s   [\^a]+s   a^t#   ceghijklmopquyzCEFGHIJKLMNOPQRTUVXYt   UuR+   s   \%c$s   \%cR.   t&   ceghijklmopquyzABCEFGHIJKLMNOPQRTUVXYZs   [\%c]$s   [\%c](   R?   R   RM   R   R   R    R#   R   t   purgeRb   t   DeprecationWarningR   (   R   R6   t   warn(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_other_escapes®  s*    """""
&'&c         C   sP  |  j  t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j  t t j	 d d ƒ ƒ d ƒ |  j  t t j	 d d ƒ ƒ d	 ƒ |  j  t t j	 d d
 ƒ ƒ d	 ƒ |  j  t t j	 d d ƒ ƒ d	 ƒ |  j  t t j	 d d
 ƒ ƒ d ƒ d  S(   Ns	   \b(abc)\bRh   i   s   \bs   \BR+   R.   i   i    t    s      (
   R   R   R   R#   R…   R    t   assertFalseR   t   lenR   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_string_boundariesÅ  s    """"c         C   sÔ   |  j  t j t d ƒ t d ƒ ƒ j d ƒ t d ƒ ƒ |  j  t j t d ƒ t d ƒ t j ƒ j d ƒ t d ƒ ƒ d d j t t t	 d d d	 ƒ ƒ ƒ } |  j  t j | t d
 ƒ t j ƒ j ƒ  t d
 ƒ ƒ d  S(   Ns   ([\u2222\u2223])i""  i   u   [%s]u    i   i   i   iÿ   iÿ  i   (
   R   R   R    R	   t   unichrR#   RŽ   t   joint   mapt   range(   R   t   r(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bigcharsetß  s    "((c         C   sX   t  j d j d „  t d ƒ Dƒ ƒ ƒ } |  j | j d ƒ ƒ |  j | j d ƒ ƒ d  S(   NR|   c         s   s   |  ] } d  | Vq d S(   s   %dN(    (   t   .0R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pys	   <genexpr>ê  s    i'  t   1000t   9999(   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_re.pyt   test_big_codesizeè  s    (c         C   sZ   |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ d  S(   Ns   a.bs   a
bi    s   a.*bs   a

b(   R   R   R    t   DOTALLR#   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_anyallî  s    $$c         C   sÇ  |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d	 d
 ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d
 ƒ j d ƒ d ƒ |  j  t j d d
 ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d  d ƒ ƒ d  S(!   Ns   (a(?=\s[^a]))s   a bi   R.   s   (a(?=\s[^a]*))s   (a(?=\s[abc]))s   (a(?=\s[abc]*))s   a bcs   (a)(?=\s\1)s   a as   (a)(?=\s\1*)s   a aas   (a)(?=\s(abc|a))s   (a(?!\s[^a]))s   (a(?!\s[abc]))s   a ds   (a)(?!\s\1)s   (a)(?!\s(abc|a))s   (a)b(?=\1)aRj   s   (a)b(?=\1)ct   abacs   (?P<g>a)b(?=(?P=g))as   (?P<g>a)b(?=(?P=g))cs   (?:(a)|(x))b(?=(?(2)x|c))cRh   s   (?:(a)|(x))b(?=(?(2)c|x))cs   (?:(a)|(x))b(?=(?(1)b|x))cs   (?:(a)|(x))b(?=(?(1)c|x))cs   (a)b(?=(?(2)x|c))(c)s   (a)b(?=(?(2)b|x))(c)s   (a)b(?=(?(1)c|x))(c)(   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_re.pyt   test_lookaheadô  s.    %%%%%%%%%%%c      	   C   s   |  j  t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j  t j d d ƒ ƒ t d t f ƒ � t j d ƒ Wd  QXt d t f ƒ � t j d ƒ Wd  QXt d t f ƒ � t j d	 ƒ Wd  QXt d t f ƒ � t j d
 ƒ Wd  QXd  S(   Ns	   ab(?<=b)cRh   s	   ab(?<=c)cs	   ab(?<!b)cs	   ab(?<!c)cR+   s   (a)a(?<=\1)cs   (?P<g>a)a(?<=(?P=g))cs   (a)b(?<=(?(1)b|x))cs   (a)b(?<=(?(2)b|x))(c)(   R…   R   R    R   R
   t   RuntimeWarningR   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_lookbehind  s    c         C   sW  |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d	 t j ƒ j d ƒ d	 ƒ |  j  t j d
 d t j ƒ j d ƒ d ƒ |  j  t j d d	 t j ƒ j d ƒ d	 ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ |  j  t j d d t j ƒ j d ƒ d ƒ t rSt d ƒ j ƒ  d k sÒt ‚ |  j	 t j d t d ƒ t j
 t j Bƒ ƒ |  j	 t j d t d ƒ t j
 t j Bƒ ƒ |  j	 t j t d ƒ d t j
 t j Bƒ ƒ |  j	 t j t d ƒ d t j
 t j Bƒ ƒ t d ƒ j ƒ  d k s t ‚ |  j	 t j d t d ƒ t j
 t j Bƒ ƒ |  j	 t j d t d ƒ t j
 t j Bƒ ƒ |  j	 t j t d ƒ d t j
 t j Bƒ ƒ |  j	 t j t d ƒ d t j
 t j Bƒ ƒ n  d  S(   NRh   t   ABCi    u   ABCs	   (a\s[^a])s   a bi   s
   (a\s[^a]*)s   a bbs
   (a\s[abc])s   (a\s[abc]*)s	   ((a)\s\2)s   a as
   ((a)\s\2*)s   a aas   ((a)\s(abc|a))s   ((a)\s(abc|a)*)s   \u212au   ku   Ks   \u017fu   Su   s(   R   R   R    RA   R#   R   R	   t   lowert   AssertionErrorR…   t   Ut   upper(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_ignore_case%  s*    ++++++++++,,,,,,,c         C   sÉ  |  j  t j d d t j ƒ ƒ |  j  t j d d t j ƒ ƒ |  j  t j d d t j ƒ ƒ |  j  t j d d t j ƒ ƒ t rÅ|  j  t j d d t j t j Bƒ ƒ |  j  t j d d t j t j Bƒ ƒ |  j  t j d d t j t j Bƒ ƒ |  j  t j d d t j t j Bƒ ƒ t d	 ƒ j ƒ  d
 k s8t ‚ |  j  t j t d ƒ t d	 ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d	 ƒ t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ |  j  t j t d ƒ d
 t j t j Bƒ ƒ t d ƒ j	 ƒ  d k st ‚ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ n  d  S(   Ns   [19A]R>   s   [19a]R.   u   [19A]u   Au   [19a]u   as   \u212au   ks   [19K]s   [19k]s
   [19\u212a]u   Ks   \u017fu   Su   [19S]u   [19s]s
   [19\u017f]u   s(
   R…   R   R    RA   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_re.pyt   test_ignore_case_set=  s&    &&&&22,,,,,c         C   s1  |  j  t j d d t j ƒ ƒ |  j t j d d t j ƒ ƒ |  j  t j d d t j ƒ ƒ |  j t j d d t j ƒ ƒ |  j  t j d d t j ƒ ƒ |  j t j d d t j ƒ ƒ t r-|  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j t j t d ƒ t d	 ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d	 ƒ t j t j Bƒ ƒ |  j t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d
 ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d
 ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ t j	 d k rŽ|  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ t d ƒ t j t j Bƒ ƒ n  t d ƒ j
 ƒ  d k s¬t ‚ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ t d ƒ j ƒ  d k szt ‚ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j d t d ƒ t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ |  j  t j t d ƒ d t j t j Bƒ ƒ n  d  S(   Ns   [9-a]t   _s   [9-A]s   [\xc0-\xde]s   ×s   ÷s   [\xe0-\xfe]s   \xd7s   \xf7s   [\u0430-\u045f]s   \u0450s   \u0400s   [\u0400-\u042f]iÿÿ  s   [\U00010428-\U0001044f]s
   \U00010428s
   \U00010400s   [\U00010400-\U00010427]s   \u212au   ku   [J-M]u   [j-m]s   [\u2129-\u212b]u   Ks   \u017fu   Su   [R-T]u   [r-t]s   [\u017e-\u0180]u   s(   R…   R   R    RA   R   R   R	   R²   t   syst
   maxunicodeR°   R±   R³   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_ignore_case_rangeR  sX    22 ,,,,,,,c         C   s)   |  j  t j d d ƒ j d ƒ d ƒ d  S(   Ns   (\s)R›   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_re.pyt   test_category‚  s    c         C   sí   d d  l  } |  j | j t d ƒ d ƒ t d ƒ ƒ |  j | j t d ƒ t j ƒ t d ƒ ƒ t r“ |  j | j t d ƒ t j ƒ t d ƒ ƒ n  |  j t j d d t j	 ƒ j
 d ƒ d ƒ |  j t j d d t j	 ƒ j
 d ƒ d ƒ d  S(   NiÿÿÿÿR>   i    R.   Rh   R¯   u   ABC(   t   _sreR   t   getlowert   ordR   R�   R   RŽ   R    RA   R#   (   R   R»   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_getlower…  s    (+.+c         C   sN   |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ d  S(   Ns   \s([^a])s    bi   RO   s	   \s([^a]*)s    bbt   bb(   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_re.pyt   test_not_literal�  s    %c         C   sN   |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ d  S(   Ns   \s(b)s    bi   RO   s   a\ss   a 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_re.pyt   test_search_coverage“  s    %c         C   s¦   | d  k r3 | d  k r3 | } d t | ƒ f } n' | d  k sK | d  k rZ t d ƒ ‚ n  | | | ƒ } |  j | ƒ |  j | j ƒ  | ƒ |  j | j ƒ  | ƒ d  S(   Ni    s@   If match is not None, span should be specified (and vice versa).(   Ra   R�   R@   R…   R   R#   R   (   R   RB   t   textR    R   t   matcherR)   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   assertMatch—  s    c         C   sé   t  t j t j ƒ } d j d „  t d ƒ Dƒ ƒ } x” | D]Œ } | | k rj |  j t j | ƒ | ƒ nE | d k r’ |  j t j | ƒ d ƒ n |  j t j | ƒ d | ƒ |  j	 t j | ƒ | ƒ q< W|  j	 t j | ƒ | ƒ d  S(   Nu    c         s   s   |  ] } t  | ƒ Vq d  S(   N(   RŸ   (   R¥   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_re.pys	   <genexpr>¨  s    i   u    u   \000u   \(
   R;   R‰   t   ascii_letterst   digitsR    R¢   R   R   t   escapeRÄ   (   R   t   alnum_charsRz   R6   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_escape¥  s    c         C   sã   t  j t  j } d j d „  t d ƒ Dƒ ƒ } x” | D]Œ } | | k rd |  j t j | ƒ | ƒ nE | d k rŒ |  j t j | ƒ d ƒ n |  j t j | ƒ d | ƒ |  j t j | ƒ | ƒ q6 W|  j t j | ƒ | ƒ d  S(   NR+   c         s   s   |  ] } t  | ƒ Vq d  S(   N(   R5   (   R¥   RÅ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pys	   <genexpr>µ  s    i   s    s   \000s   \(	   R‰   RÆ   RÇ   R    R¢   R   R   RÈ   RÄ   (   R   RÉ   Rz   RO   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_escape_byte³  s    c         C   sz   t  d ƒ } t j | ƒ } |  j | t  d ƒ ƒ |  j | | ƒ |  j d t j t d ƒ ƒ | t  d ƒ d t j ƒ d  S(	   Ns   xxx\u2620\u2620\u2620xxxs   xxx\\\u2620\\\u2620\\\u2620xxxu   .%s+.i &  s   x\u2620\u2620\u2620xi   i   (   i   i   (   R	   R   RÈ   R   RÄ   RŸ   R   (   R   R   t	   s_escaped(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_escape_non_asciiÀ  s    c         C   sj   d } t  j | ƒ } |  j | d ƒ |  j | | ƒ t  j t  j d ƒ | ƒ } |  j t | ƒ d ƒ d  S(   Ns	   yâ˜ yâ˜ ys   y\â\˜\ y\â\˜\ ys   â˜ i   (   R   RÈ   R   RÄ   R   R�   (   R   RO   t	   b_escapedt   res(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_re_escape_non_ascii_bytesÉ  s    c         C   sf   d d  l  } |  j | ƒ d d  l } |  j | ƒ t d d t ƒd d l m } d d l m } d  S(   Niÿÿÿÿt   sret
   deprecated(   t   _compile(   t   picklet   pickle_testt   cPickleR   t   TrueRÑ   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_re.pyt   test_picklingÑ  s    c         C   sb   t  j d ƒ } xL t | j d ƒ D]7 } | j | | ƒ } | j | ƒ } |  j | | ƒ q# Wd  S(   Ns   a(?:b|(c|e){1,2}?|d)+?(.)i   (   R   R   R¢   t   HIGHEST_PROTOCOLt   dumpst   loadsR   (   R   RÔ   t   oldpatt   protot   pickledt   newpat(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyRÕ   Ü  s
    c         C   sr   |  j  t j t j ƒ |  j  t j t j ƒ |  j  t j t j ƒ |  j  t j t j	 ƒ |  j  t j
 t j ƒ d  S(   N(   R   R   RA   t
   IGNORECASEt   LR�   R�   t	   MULTILINEt   SR©   R0   t   VERBOSE(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_constantsã  s
    c         C   sL   xE t  j t  j t  j t  j t  j g D] } |  j t  j d | ƒ ƒ q% Wd  S(   Ns	   ^pattern$(   R   RA   R�   R0   Rã   Rá   R…   R   (   R   t   flag(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt
   test_flagsê  s    +c         C   s+  xd d d d d d d d g D]è } |  j  t j d	 | t | ƒ ƒ ƒ |  j  t j d
 | t | ƒ d ƒ ƒ |  j  t j d | t | ƒ d ƒ ƒ |  j  t j d | t | ƒ ƒ ƒ |  j  t j d | t | ƒ d ƒ ƒ |  j  t j d | t | ƒ d ƒ ƒ q W|  j t j t j d d ƒ d  S(   Ni    i   i   i    i@   i   i€   iÿ   s   \%03os   \%03o0t   0s   \%03o8RE   s   \x%02xs   \x%02x0s   \x%02xzR<   s   \911R+   (   R…   R   R    R5   R?   RM   (   R   RÅ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_sre_character_literalsî  s    %#''#'+c         C   s  xø d d d d d d d d g D]Ø } |  j  t j d	 | t | ƒ ƒ ƒ |  j  t j d
 | t | ƒ ƒ ƒ |  j  t j d | t | ƒ ƒ ƒ |  j  t j d | t | ƒ ƒ ƒ |  j  t j d | t | ƒ ƒ ƒ |  j  t j d | t | ƒ ƒ ƒ q W|  j t j t j d d ƒ d  S(   Ni    i   i   i    i@   i   i€   iÿ   s   [\%03o]s   [\%03o0]s   [\%03o8]s   [\x%02x]s	   [\x%02x0]s	   [\x%02xz]s   [\911]R+   (   R…   R   R    R5   R?   RM   (   R   RÅ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt!   test_sre_character_class_literalsø  s    %#####'c         C   ss   |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ |  j  t j d d ƒ j d ƒ d ƒ d  S(   Ns   (a)|(b)RO   i   iÿÿÿÿ(   iÿÿÿÿiÿÿÿÿ(   R   R   R    t   startt   endR   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_113254  s    %%c         C   sœ   |  j  t j d d ƒ j ƒ |  j t j d d ƒ j d ƒ |  j t j d d ƒ j d ƒ |  j t j d d ƒ j d ƒ |  j t j d d ƒ j d ƒ d  S(	   Ns   (a)?aR.   s   (a)(b)?bRu   i   s   (?P<a>a)(?P<b>b)?bs   (?P<a>a(b))s   ((a))(   R   R   R    t	   lastindexR   t	   lastgroup(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_527371  s
    c         C   s   |  j  t j t j d ƒ d  S(   Ns   foo[a-(   R?   R   RM   R   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_545855  s    c         C   sÄ   |  j  t j d d d d ƒ j d ƒ d ƒ |  j  t j d d d d	 d d d
 ƒ j d ƒ d ƒ |  j  t j d d d d ƒ j d ƒ d ƒ |  j  t j d d d d ƒ j d ƒ d ƒ d  S(   Ns   .*?ci'  Ru   Rv   i    i!N  s   .*?cdiˆ  R6   t   cdei#N  i N  Rh   t   deiaê  s   (a|b)*?c(   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_re.pyt   test_bug_418626  s
    -2-c         C   s@   d t  j t d ƒ ƒ d } |  j t  j | ƒ o5 d d ƒ d  S(   Nu   [i9   u   ]i   (   R   RÈ   RŸ   R   R   (   R   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_re.pyt   test_bug_612074   s    c         C   s‡   |  j  t j d d d ƒ j d ƒ d ƒ |  j  t j d d d d ƒ j d ƒ d ƒ |  j  t j d d d d ƒ j d ƒ d ƒ d  S(   Ns   (x)*iPÃ  R   i   s   (x)*yR   s   (x)*?y(   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_re.pyt   test_stack_overflow%  s    )-c         C   sš   |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ |  j  t j d d ƒ ƒ d  S(   Ns   (?:a?)*yR<   s   (?:a?)+ys   (?:a?){2,}ys	   (?:a?)*?ys	   (?:a?)+?ys   (?:a?){2,}?y(   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_re.pyt    test_unlimited_zero_width_repeat,  s    c         C   s±   d „  } d „  } d „  } d „  } t  d | f d | f d | f d | f d g ƒ } |  j | j j d
 ƒ j ƒ |  j | j d ƒ d d d d d d d d d g	 d
 f ƒ d  S(   Nc         S   s   | S(   N(    (   t   scannert   token(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   s_ident6  R+   c         S   s   d | S(   Ns   op%s(    (   Rø   Rù   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt
   s_operator7  R+   c         S   s
   t  | ƒ S(   N(   t   float(   Rø   Rù   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   s_float8  R+   c         S   s
   t  | ƒ 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_re.pyt   s_int9  R+   s   [a-zA-Z_]\w*s   \d+\.\d*s   \d+s   =|\+|-|\*|/s   \s+R+   s   sum = 3*foo + 312.50 + bart   sums   op=i   s   op*t   foos   op+g     ˆs@t   bar(   s   \s+N(   R   Ra   R…   Rø   RB   R   t   scan(   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_re.pyt   test_scanner5  s    								c         C   sa   xZ d	 D]R } |  j  t j d | d ƒ j ƒ  d
 ƒ |  j  t j d | d ƒ j ƒ  d ƒ q Wd  S(   NR+   t   ?t   *s
   ((.%s):)?zR<   s   a:zs   a:R.   (   R+   R  R  (   NN(   s   a:R.   (   R   R   R    Rq   Ra   (   R   t   op(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_448951I  s
    c         C   s  |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d	 d ƒ j ƒ  d ƒ |  j  t j d
 d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ d  S(   Ns	   ^((a)|b)*Rh   RO   R.   s   ^(([ab])|c)*R6   s   ^((d)|[ab])*s   ^((a)c|[ab])*s   ^((a)|b)*?cs   ^(([ab])|c)*?dt   abcds   ^((d)|[ab])*?cs   ^((a)c|[ab])*?c(   RO   R.   (   R6   RO   (   RO   N(   RO   N(   RO   R.   (   R6   RO   (   RO   N(   RO   N(   R   R   R    Rq   Ra   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_725106R  s     c         C   sH   |  j  t j d d ƒ j ƒ  d ƒ |  j  t j d d ƒ j ƒ  d ƒ d  S(   Ns   (a)(?:(?=(b)*)c)*t   abbR.   s   (a)((?!(b)*))*(   R.   N(   R.   NN(   R   R   R    Rq   Ra   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_725149e  s    c         C   sE   d t  f d „  ƒ  Y} t j | d ƒ ƒ } |  j | j d ƒ ƒ d  S(   Nt
   my_unicodec           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyR  o  s    Rh   RJ   (   R;   R   R   R   R    (   R   R  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_re.pyt   test_bug_764548l  s    c         C   sK   t  j d d ƒ } |  j g  | D] } | j d ƒ ^ q d d d g ƒ d  S(   Ns   :+s
   a:b::c:::di    R_   s   ::s   :::(   R   t   finditerR   R#   (   R   t   itert   item(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_finditers  s    %c         C   s&   |  j  t j d ƒ t j d ƒ ƒ d  S(   Nt
   bug_926075u
   bug_926075(   t   assertIsNotR   R   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_926075x  s    c         C   s;   t  d ƒ } |  j t j | ƒ j d ƒ d d d g ƒ d  S(   Ns   [\u002E\u3002\uFF0E\uFF61]s   a.b.cR.   RO   R6   (   R	   R   R   R   R`   (   R   RB   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_931848}  s    c         C   sŒ   t  j d d ƒ } |  j | j ƒ  j ƒ  d ƒ |  j t | j ƒ t  j d ƒ j d ƒ } |  j | j	 ƒ  j ƒ  d ƒ |  j
 | j	 ƒ  ƒ d  S(   Ns   \ss   a bi   i   (   i   i   (   i   i   (   R   R  R   t   nextR   R?   t   StopIterationR   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_re.pyt   test_bug_581080ƒ  s    c         C   sa   t  j d d ƒ } |  j | j ƒ  j ƒ  d ƒ |  j | j ƒ  j ƒ  d ƒ |  j t | j ƒ d  S(   Ns   .*t   asdfi    i   (   i    i   (   i   i   (   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_re.pyt   test_bug_817234Œ  s    c         C   s»   t  d ƒ t  d ƒ t  d ƒ g } x9 | D]1 } |  j t j d | t j ƒ j d ƒ | ƒ q( Wt  d ƒ t  d ƒ t  d ƒ t  d	 ƒ g } x- | D]% } |  j t j d | t j ƒ ƒ qŽ Wd  S(
   Ni7   iX  iÿ  s   ^\d$i    ie!  i90  i‚   i´2  (   RŸ   R   R   R    RŽ   R#   R   (   R   t   decimal_digitsR   t   not_decimal_digits(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_6561’  s    		/			c         C   s�   d d  l  } d } t r% | d 7} n  xd | D]\ } | j  | ƒ } |  j t j d ƒ j | ƒ ƒ |  j t j d ƒ j | ƒ j ƒ  d ƒ q, Wd  S(   Niÿÿÿÿt   cbBhHiIlLfdR	   t   blaR+   (    (   t   arrayR   R   R   R   R    R   Rq   (   R   R"  t	   typecodest   typecodeR.   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_empty_array¨  s    c      
   C   sB  t  d ƒ } t  d ƒ } t j | t j t j Bƒ } | j | ƒ } |  j | ƒ t j | t j t j Bƒ } | j | ƒ } |  j | ƒ t j d | t j ƒ } | j | ƒ } |  j | ƒ t j d | t j ƒ } | j | ƒ } |  j | ƒ t j d | ƒ } | j | ƒ } |  j | ƒ t j d | ƒ } | j | ƒ } |  j | ƒ |  j t j d | | ƒ ƒ |  j t j d | | ƒ ƒ t j ƒ  t ƒ  � t j d t j	 t j
 Bƒ Wd  QXt ƒ  � t j d t j
 ƒ Wd  QXt ƒ  � t j d t j	 ƒ Wd  QXt ƒ  � t j d	 ƒ Wd  QXt ƒ  � t j d
 ƒ Wd  QXd  S(   Ni   i¡  s   (?i)s   (?iu)s   (?ixu) R+   s   (?L)s   (?u)s   (?Lu)s   (?uL)(   RŸ   R   R   RA   R²   R    R…   R—   R   R�   RŽ   (   R   t
   upper_chart
   lower_charRz   t   q(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_inline_flags³  sB    

 



c         C   sÐ   t  j d ƒ } |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ t  j d t  j ƒ } |  j | j d d ƒ d	 ƒ |  j | j d d ƒ d
 ƒ |  j | j d d ƒ d ƒ d S(   s>   $ matches the end of string, and just before the terminating 
t   $t   #s   a
b
s   a
b#
#s   a
b
cs   a
b
c#s   
s   #
#s   a#
b#
#s   a#
b#
c#N(   R   R   R   R3   Râ   (   R   RB   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_dollar_matches_twiceá  s    c         C   sN   d d  l  } d } |  j t t j d i  ƒ |  j t | j d d | g ƒ d  S(   Niÿÿÿÿi   i€   R.   Rh   i    l	                    (   R»   R?   t	   TypeErrorR   R  t   OverflowErrorR   (   R   R»   t   long_overflow(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_deallocí  s    c         C   sn   t  j d ƒ } |  j | t  j ƒ t  j | ƒ } |  j | t  j ƒ |  j | | ƒ |  j t t  j d ƒ d  S(   Ns   random patterni    (   R   R   t   assertIsInstancet   _pattern_typet   assertIsR?   R-  (   R   RB   t   same_pattern(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_compileø  s    c         C   s?   t  ƒ  �0 |  j t j d d ƒ d d d d d g ƒ Wd  QXd  S(   Ns   [\A\B\b\C\Z]s   ABCZR>   t   Bs   t   Ct   Z(   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_re.pyt   test_bug_13899  s    
t   sizet   memusei   c         C   sY   d | } t  j d | ƒ } |  j | ƒ |  j | j ƒ  | ƒ |  j | j ƒ  | ƒ d  S(   NR.   R*  (   R   R   t   assertIsNotNoneR   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_re.pyt   test_large_search	  s
    
i   i   c         C   sM   d | } t  j d d | ƒ \ } } |  j | | ƒ |  j | | d ƒ d  S(   NR.   R+   i   (   R   R]   R   (   R   R:  R   R£   t   n(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_large_subn  s    
c         C   sH  d d } |  j  t j d | ƒ j ƒ  d ƒ |  j  t j d | ƒ j ƒ  d ƒ |  j  t j d | ƒ j ƒ  d ƒ |  j  t j d | ƒ j ƒ  d ƒ |  j  t j d
 | ƒ j ƒ  d ƒ |  j  t j d | ƒ j ƒ  d ƒ |  j t t j d d ƒ |  j t t j d d ƒ |  j t t j d d ƒ |  j t t j d d d f ƒ d  S(   NR   i † s   .{65535}i    iÿÿ  s	   .{,65535}s
   .{65535,}?s   .{65536}i   s	   .{,65536}s
   .{65536,}?s   .{%d}i   i€   s   .{,%d}s   .{%d,}?s   .{%d,%d}i�   (   i    iÿÿ  (   i    iÿÿ  (   i    iÿÿ  (   i    i   (   i    i   (   i    i   l	                    l	                    l	                    l	                    l	                    (   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_re.pyt   test_repeat_minmax_overflow  s    
""""""c         C   sý   y d d l  m } Wn t k
 r4 |  j d ƒ n Xd d } |  j t j d | d | ƒ ƒ |  j t j d | d | ƒ j ƒ  d ƒ |  j t j d
 | d | ƒ ƒ |  j	 t
 t j d | ƒ |  j	 t
 t j d | ƒ |  j	 t
 t j d
 | ƒ d  S(   Niÿÿÿÿ(   t	   MAXREPEATs    requires _sre.MAXREPEAT constantR   i † s   .{%d}i   s   .{,%d}i    s   .{%d,}?(   i    i † (   R»   RA  t   ImportErrort   skipTestR   R   R    R   R   R?   R.  R   (   R   RA  R‰   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt%   test_repeat_minmax_overflow_maxrepeat,  s    
!#!c         C   s-   |  j  t j d ƒ � t j d ƒ Wd  QXd  S(   Ns   <foo>s
   (?P=<foo>)(   t   assertRaisesRegexpt   sre_constantsRM   R   R   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt$   test_backref_group_name_in_exception;  s    c         C   s-   |  j  t j d ƒ � t j d ƒ Wd  QXd  S(   Ns   \?foos
   (?P<?foo>)(   RE  RF  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_re.pyt   test_group_name_in_exception@  s    c         C   s¯   x¨ d D]  } x— d D]� } d | | d } |  j  t j | t j ƒ j d ƒ d g d	 | ƒt r t | ƒ } |  j  t j | t j ƒ j d
 ƒ d
 g d	 | ƒq q Wq Wd  S(   NR  t   +R  s   {1}R+   R(   t   yzRJ   t   msgu   xyz(   R  RI  R  s   {1}(   R+   R  (   R   R   R   Rã   R   R   R;   (   R   t   repst   modRB   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_issue17998E  s    !!c         C   s™   x’ d D]Š } x� d D]y } t  j d | | f ƒ } | j d ƒ } |  j | j d ƒ d	 ƒ |  j | j d
 ƒ d ƒ |  j | j d ƒ d ƒ q Wq Wd  S(   Ns   {0,}R  RI  s   {1,187}R  s   ^((x|y)%s)%st   xyyzyi    t   xyyi   R+   i   R   (   s   {0,}R  RI  s   {1,187}(   s   {0,}R  R  (   R   R   R    R   R#   (   R   t   outer_opt   inner_opR£   R)   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_bug_2537Q  s    c         C   s†   d } t  ƒ  � } t j | t j ƒ Wd  QXd } |  j | j ƒ  | ƒ t  ƒ  � } t j | t j ƒ Wd  QX|  j | j ƒ  | ƒ d  S(   Ns   (\.)(?:[ch]|py)(?(1)$|: )sÙ   subpattern 1
  literal 46
subpattern None
  branch
    in
      literal 99
      literal 104
  or
    literal 112
    literal 121
subpattern None
  groupref_exists 1
    at at_end
  else
    literal 58
    literal 32
(   R   R   R   t   DEBUGR   t   getvalue(   R   Rr   t   outt   dump(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_debug_flag[  s    c         C   sÅ   t  j d ƒ } |  j | j d d d d d d ƒ j ƒ  d ƒ |  j | j d d d d	 d d ƒ j ƒ  d ƒ |  j | j d d d d	 d d ƒ d
 g ƒ |  j | j d d d d ƒ d d
 d g ƒ d  S(   Ns   (ab)R‰   t   abracadabraR‡   i   Rˆ   i
   i	   i   Ru   Rf   i   R+   t	   racadabra(   i   i	   (   i   i	   (   R   R   R   R    R   R   R   R`   (   R   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_re.pyt   test_keyword_parametersx  s    ((%c         C   sR   |  j  t j d d ƒ j d ƒ d ƒ |  j t t j d d ƒ j t j d ƒ d  S(   Ns   (foo)R   l    R+   i   (   R   R   R    R#   R?   RY   R·   t   maxint(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_match_group_takes_long…  s    %c         C   s»   t  j t  j ƒ } |  j t  j t  j | ƒ xM d D]E } y t  j t  j | ƒ Wq2 t  j k
 rv |  j d | ƒ q2 Xq2 Wt j ƒ  |  j ƒ  |  j	 ƒ  t j ƒ  |  j	 ƒ  |  j ƒ  d  S(   Ns   en_US.iso88591s
   en_US.utf8s   test needs %s locale(   s   en_US.iso88591s
   en_US.utf8(
   t   localet	   setlocalet   LC_CTYPEt
   addCleanupt   ErrorRC  R   R—   t   check_en_US_iso88591t   check_en_US_utf8(   R   t	   oldlocalet   loc(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   test_locale_caching‰  s    




c         C   sÔ   t  j t  j d ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ d  S(   Ns   en_US.iso88591s   Åås   Ås   ås   (?Li)Åås   (?Li)Ås   (?Li)å(   R^  R_  R`  R…   R   R    Rá   RA   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyRc  ›  s    &&&c         C   sÔ   t  j t  j d ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d t j t j Bƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ |  j t j d d ƒ ƒ d  S(   Ns
   en_US.utf8s   Åås   Ås   ås   (?Li)Åås   (?Li)Ås   (?Li)å(	   R^  R_  R`  R…   R   R    Rá   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_re.pyRd  ¤  s    &&&Ni   (d   R  R  R   R!   R'   R7   R8   R9   R   R=   RC   RD   RN   RS   RT   RW   RX   RZ   R^   Re   Rg   Ri   Rk   Rs   R{   R~   R‚   R„   R†   R‹   R�   Rš   Rž   R¤   R¨   Rª   R¬   R®   R´   Rµ   R¹   Rº   R¾   RÀ   RÁ   Ra   R   R    RÄ   RÊ   RË   RÍ   RÐ   RØ   RÕ   Rå   Rç   Ré   Rê   Rí   Rð   Rñ   Rô   Rõ   Rö   R÷   R  R  R	  R  R  R  R  R  R  R  R  R%  R)  R,  R0  R5  R9  R   R   R=  R?  R@  R   RD  RG  RH  RN  RS  RX  R[  R]  Rg  Rc  Rd  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyR      s¸   									*							"									 		 										0		
										
	
																	.			
							
						c          C   s  d d l  m }  m } m } m } t r0 d GHn  xÖ|  D]Î} t j j ƒ  d  } } } } }	 t
 | ƒ d k rŠ | \ } } } } }	 n3 t
 | ƒ d k r® | \ } } } n t d | f ‚ y t j | ƒ }
 Wnm t j k
 rþ | | k rò qd G| GHq7 t k
 rt ‚ q7 d G| GHt rt j d	 t j ƒ qq7 Xy |
 j | ƒ } Wn) t j k
 r~} d
 G| Gt | ƒ GHn X| | k rŽq7 | | k rµ| d  k r©qd G| GHq7 | | k r7 | d  k	 r'| j d ƒ \ } } i | j d ƒ d 6| j ƒ  d 6| j j d 6} xg t d d ƒ D]V } y( | j | ƒ } | d  k rOd } n  Wn t k
 rid } n X| | d | <q"Wxf | j j j ƒ  D]R } y( | j | ƒ } | d  k r¼d } n  Wn t k
 rÖd } n X| | | <q�Wt | | ƒ } | |	 k r0d G| Gt | ƒ d t |	 ƒ GHq0n	 d G| GHy4 |
 j t | d ƒ ƒ } | d  k rcd G| GHn  Wn' t k
 rzq7 n t k
 r�q7 n Xt j t | d ƒ ƒ }
 |
 j | ƒ } | d  k rÍd G| GHn  | d  d k rN| d d k rN| d  k	 rNt j | ƒ }
 |
 j | | j d ƒ | j  d ƒ d ƒ } | d  k rNd G| GHqNn  t j | t j! ƒ }
 |
 j | ƒ } | d  k rŠd G| GHn  t j | t j" ƒ }
 |
 j | ƒ } | d  k rÆd  G| GHn  t j | t j# ƒ }
 |
 j | ƒ } | d  k rd! G| GHqq7 q7 Wd  S("   Niÿÿÿÿ(   t   testst   SUCCEEDt   FAILt   SYNTAX_ERRORs   Running re_tests test suitei   i   s%   Test tuples should have 3 or 5 fieldss   === Syntax error:s   *** Unexpected error ***t   files   === Unexpected exceptions   === Succeeded incorrectlyi    t   foundRq   t   flagsi   id   Ra   Rb  s   g%ds   === grouping errors    should be s   === Failed incorrectlys   latin-1s   === Fails on unicode matchs"   === Fails on unicode pattern matchi   s   \Biþÿÿÿs!   === Failed on range-limited matchs#   === Fails on case-insensitive matchs#   === Fails on locale-sensitive matchs$   === Fails on unicode-sensitive match($   t   test.re_testsRh  Ri  Rj  Rk  R    R·   t   stdoutt   flushRa   R�   R@   R   R   RM   t   KeyboardInterruptt	   tracebackt	   print_excR   t   reprR   R#   Rn  R¢   RY   t
   groupindext   keyst   evalR;   t	   NameErrorR-  Rë   Rì   Rà   R�   RŽ   (   Rh  Ri  Rj  Rk  t   tRB   R   t   outcomet   replRd   t   objt   resultRK  Rë   Rì   t   vardictRÅ   t   gi(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   run_re_tests®  s´    "  		 

	 +c          C   s7   t  t ƒ d t f g }  t |  Œ  � t ƒ  Wd  QXd  S(   Ns
   bad escape(   R   R   R˜   R   R�  (   t   deprecations(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt	   test_main*  s    
t   __main__(   t   test.test_supportR    R   R   R   R   R   R   R   R   R	   R
   R   R^  R   R   RF  R·   R‰   Rs  t   weakrefR   t   unittestt   TestCaseR   R�  Rƒ  R  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_re.pyt   <module>   s$   R	ÿ ÿ ÿ ÿ ™	|	