ó
ŒwÛjc           @   s·   d  d l  Z  d  d l Z d  d l Z d  d l m Z m Z d e f d „  ƒ  YZ d e j e j	 e j
 e j f d „  ƒ  YZ d e  j f d „  ƒ  YZ d	 „  Z e d
 k r³ e ƒ  n  d S(   iÿÿÿÿN(   t   test_supportt   string_testst   StrSubclassc           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_str.pyR      s   t   StrTestc           B   sé   e  Z e Z d  „  Z d „  Z d „  Z e j d „  ƒ Z	 d „  Z
 d „  Z e j e j d k pr e j d ƒ d	 k d
 ƒ 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   | S(   N(    (   t   selft   obj(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   fixtype   s    c         C   s×   |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ |  j  t d
 ƒ d ƒ |  j  t g  ƒ d ƒ |  j  t i  ƒ d ƒ g  } | j | ƒ |  j  t | ƒ d ƒ i  } | | d <|  j  t | ƒ d	 ƒ d  S(   Nt    i    t   0l    s   ()s   []s   {}s   [[...]]s
   {0: {...}}(    (   t   assertEqualt   strt   append(   R   t   a(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_basic_creation   s    
c         C   s*   t  j j |  ƒ |  j t d j d ƒ d  S(   Ns   %ci4  (   R   t   MixinStrUnicodeUserStringTestt   test_formattingt   assertRaisest   OverflowErrort   __mod__(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR   %   s    c         C   sG   d d l  m } d j | d ƒ } |  j t ƒ � | d } Wd  QXd  S(   Niÿÿÿÿ(   t   INT_MAXs   %.{}fi   g¸…ëQ¸@(   t	   _testcapiR   t   formatR   t
   ValueError(   R   R   t   format_stringt   result(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_formatting_huge_precision)   s    c         C   s:   d j  t j d ƒ } |  j t ƒ � | d } Wd  QXd  S(   Ns   %{}fi   g¸…ëQ¸@(   R   t   syst   maxsizeR   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_str.pyt   test_formatting_huge_width0   s    c         C   sh  d d d „  ƒ  Y} d d d „  ƒ  Y} d t  f d „  ƒ  Y} d t  f d „  ƒ  Y} d	 t f d
 „  ƒ  Y} d t f d „  ƒ  Y} d t f d „  ƒ  Y} d t f d „  ƒ  Y} d t f d „  ƒ  Y}	 d t f d „  ƒ  Y}
 |  j t | ƒ  ƒ j d ƒ ƒ |  j t | ƒ  ƒ d ƒ |  j t | ƒ  ƒ d ƒ |  j t | ƒ  ƒ d ƒ |  j t | d ƒ ƒ d ƒ |  j t | d ƒ ƒ d ƒ |  j t | d ƒ ƒ d ƒ |  j t | d ƒ ƒ d ƒ |  j t |	 d ƒ ƒ d ƒ |  j t t |	 d ƒ ƒ ƒ |	 ƒ |  j t |	 d ƒ ƒ d ƒ |  j t t |	 d ƒ ƒ ƒ t ƒ |  j t |
 d ƒ ƒ d ƒ |  j t |
 d ƒ ƒ d ƒ d  S(   Nt   Foo0c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Nu   foo(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   __unicode__8   s    (   R   R   R    (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR   7   s   t   Foo1c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Nt   foo(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   __str__<   s    (   R   R   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR!   ;   s   t   Foo2c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   NR"   (    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   @   s    (   R   R   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR$   ?   s   t   Foo3c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Nu   foo(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   D   s    (   R   R   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR%   C   s   t   Foo4c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Nu   foo(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   H   s    (   R   R   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR&   G   s   t   Foo5c           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Nu   foo(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   L   s    (   R   R   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR'   K   s   t   Foo6c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d S(   Nt   foos(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   P   s    c         S   s   d S(   Nu   foou(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR    S   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_str.pyR(   O   s   	t   Foo7c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d S(   NR)   (    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   W   s    c         S   s   d S(   Nu   foou(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR    Y   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_str.pyR*   V   s   	t   Foo8c           B   s   e  Z d  d „ Z d „  Z RS(   R	   c         S   s   t  j |  d | ƒ S(   Ni   (   R   t   __new__(   t   clst   content(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR,   ]   s    c         S   s   |  S(   N(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   _   s    (   R   R   R,   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR+   \   s   t   Foo9c           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   d S(   Nt   string(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   c   s    c         S   s   d S(   Ns   not unicode(    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR    e   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_str.pyR/   b   s   	t   <R"   t   barR)   t   foofooR0   u   not unicode(    (    (	   t   objectt   unicodeR   t
   assertTruet
   startswithR   t   assertIst   typeR   (   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_str.pyt   test_conversion5   s0    ""i   i    t   Pi   s    only applies to 32-bit platformsc         C   s   |  j  t d j t j ƒ d  S(   Ns   t	t	(   R   R   t
   expandtabsR   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_str.pyt$   test_expandtabs_overflows_gracefullyz   s    c            s³  ‡  f 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 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  S()   Nc            s:   ˆ  j  |  j | ƒ | ƒ ˆ  j  |  j | d ƒ | ƒ d  S(   Nt   s(   R   t
   __format__(   t   valueR   t   expected(   R   (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test€   s    R	   t   abcs   .3t   abt   abcdefs   .0s   3.3s   2.3s   2.2s   3.2s   ab R   s   x<0s   x<5s   x<6s   x<7t   resultxs   x<8t   resultxxs    <7s   result s   <7s   >7s    results   >8s     results   ^8s    result s   ^9s	    result  s   ^10s
     result  R   t   10000t    i'  i'  t   10000000i€–˜ (    (   R   RC   (    (   R   sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test__format__   s4    c         C   s,  |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d ƒ |  j  d j ƒ  d	 ƒ |  j  d
 j ƒ  d ƒ |  j  d j ƒ  d ƒ d d  l } |  j  d j d ƒ d ƒ |  j  d j t d d ƒ ƒ d ƒ |  j  d j d ƒ d ƒ | j d d d ƒ } |  j  d j | ƒ d ƒ d dÖ d „  ƒ  Y} d d× d „  ƒ  Y} d dØ d  „  ƒ  Y} d! dÙ d" „  ƒ  Y} d# dÚ d$ „  ƒ  Y} d% dÛ d& „  ƒ  Y} d' | j f d( „  ƒ  Y}	 d) t f d* „  ƒ  Y}
 |  j  d j ƒ  d ƒ |  j  d+ j ƒ  d+ ƒ |  j  d, j d+ ƒ d+ ƒ |  j  d- j d+ ƒ d+ ƒ |  j  d. j d+ ƒ d/ ƒ |  j  d0 j d+ ƒ d1 ƒ |  j  d2 j d+ ƒ d3 ƒ |  j  d4 j d5 d+ ƒ d+ ƒ |  j  d6 j d5 d+ ƒ d/ ƒ |  j  d7 j d5 d+ ƒ d1 ƒ |  j  d8 j d5 d+ ƒ d3 ƒ |  j  d, j d9 ƒ d: ƒ |  j  d; j d9 d+ ƒ d< ƒ |  j  d= j d9 d+ ƒ d> ƒ |  j  d? j ƒ  d@ ƒ |  j  dA j ƒ  dB ƒ |  j  dC j ƒ  dD ƒ |  j  dE j ƒ  dF ƒ |  j  dG j dH ƒ dI ƒ |  j  dJ j ƒ  dK ƒ |  j  dL j ƒ  dM ƒ |  j  dN j ƒ  dO ƒ |  j  dP j i dQ dR 6ƒ dQ ƒ |  j  dS j i dQ dT 6ƒ dQ ƒ |  j  dU j i dV dW 6ƒ dX ƒ |  j  dY j dZ | d[ ƒ ƒ d\ ƒ |  j  d] j | d^ ƒ | d[ ƒ ƒ d_ ƒ |  j  d` j | | d+ ƒ ƒ ƒ d+ ƒ |  j  da j d+ db g ƒ d+ ƒ |  j  dc j d+ db g ƒ db ƒ |  j  dd j d+ db g g ƒ db ƒ |  j  de j d+ | db ƒ g g ƒ db ƒ |  j  df j d+ ƒ d+ ƒ |  j  df j d ƒ d ƒ |  j  df j dg ƒ d+ ƒ |  j  dh j dg ƒ d ƒ |  j  di j d+ ƒ d+ ƒ |  j  dj j d+ ƒ d+ ƒ |  j  dk j d+ ƒ d ƒ |  j  dl j d+ ƒ dm ƒ |  j  dn j do ƒ do ƒ |  j  dp j do ƒ do ƒ |  j  dq j do ƒ do ƒ |  j  dr j do ƒ ds ƒ |  j  dt j do ƒ du ƒ |  j  dv j do ƒ dw ƒ |  j  dx j do ƒ dw ƒ |  j  dy j do ƒ dz ƒ |  j  d{ j do ƒ d| ƒ |  j  d} j do ƒ d~ ƒ |  j  d j do ƒ d€ ƒ |  j  d� j do ƒ d‚ ƒ |  j  dƒ j d ƒ d dW d„ ƒ |  j  dƒ j d ƒ dW d… ƒ |  j  d† j d ƒ dW d‡ ƒ |  j  dˆ j | ƒ  ƒ d+ ƒ |  j  d‰ j dŠ ƒ dŠ ƒ |  j  d‹ j dŠ ƒ dŠ ƒ |  j  dŒ j dŠ ƒ d� ƒ |  j  dŽ j dŠ ƒ d� ƒ |  j  d� j dŠ ƒ d� ƒ |  j  d‘ j dŠ ƒ d� ƒ |  j  d� j | dŠ ƒ ƒ d’ ƒ |  j  d, j i  ƒ dD ƒ |  j  d, j g  ƒ d“ ƒ |  j  d, j d5 g ƒ d” ƒ |  j  d, j | d• ƒ ƒ d– ƒ |  j  d— j | d• ƒ ƒ d˜ ƒ |  j  d‰ j | d• ƒ ƒ d™ ƒ dš } t j | t f ƒ �b |  j  d› j | d• ƒ ƒ dœ ƒ |  j  d� j | d• ƒ ƒ dœ ƒ |  j  d� j | d• ƒ ƒ dž ƒ Wd  QX|  j  dŸ j |	 d  d d¡ d d¢ d£ ƒ ƒ d¤ ƒ |  j  d, j |
 d^ ƒ ƒ d\ ƒ |  j  d- j d ƒ d ƒ |  j  d¥ j d¦ d§ ƒ d¨ ƒ |  j  d© j d¦ d§ ƒ d¨ ƒ |  j  dª j d¦ d« d§ ƒd¨ ƒ |  j  d¬ j d¦ d­ d^ d« d§ ƒd® ƒ |  j  d¬ j d¦ d­ d¯ d« d° ƒd® ƒ |  j	 t
 d@ j ƒ |  j	 t
 dB j ƒ |  j	 t
 d j ƒ |  j	 t
 d j ƒ |  j	 t
 d± j ƒ |  j	 t
 d² j ƒ |  j	 t d, j ƒ |  j	 t d4 j d+ ƒ |  j	 t dF j ƒ |  j	 t
 dM j ƒ |  j	 t
 d@ j ƒ |  j	 t
 dB j ƒ |  j	 t
 d³ j ƒ |  j	 t
 d´ j ƒ |  j	 t dµ j ƒ |  j	 t
 dµ j d¶ ƒ |  j	 t d· j ƒ |  j	 t
 d· j g  ƒ |  j	 t d¸ j ƒ |  j	 t
 d¹ j d¶ ƒ |  j	 t
 dº j d¶ ƒ |  j	 t
 d» j d¶ ƒ |  j	 t
 d¼ j d¶ ƒ |  j	 t d½ j ƒ |  j	 t
 d¾ j d¶ ƒ |  j	 t
 d¿ j d¶ ƒ |  j	 t dÀ j dÁ dV ƒ|  j	 t
 dÂ j dV ƒ |  j	 t
 dÃ j d¶ ƒ |  j	 t
 dÄ j d¶ ƒ |  j	 t
 dÅ j ƒ |  j	 t dÆ j ƒ |  j	 t dÇ j ƒ |  j	 t dD j ƒ |  j	 t
 dÈ j d  g ƒ |  j	 t
 dÉ j d  g ƒ |  j	 t dÊ j dË dÌ ƒ |  j	 t
 dÍ j d+ dÎ d ƒ |  j	 t
 dÏ j d¶ d5 dÐ dV dÌ d§ dÑ dÒ ƒ
 |  j	 t
 dÓ j d ƒ |  j	 t
 t d dÔ ƒ |  j	 t
 dÕ j d ƒ d  S(Ü   NR	   R   RE   s   a{{s   a{s   a}}s   a}s   {{bs   {bs   }}bs   }bs   a{{bs   a{biÿÿÿÿs   My name is {0}t   Freds   My name is Freds   My name is {0[name]}t   names   My name is {0} :-{{}}s   My name is Fred :-{}i×  i   i   s   The year is {0.year}s   The year is 2007t   Cc           B   s   e  Z d  d „ Z d „  Z RS(   id   c         S   s   | |  _  d  S(   N(   t   _x(   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_str.pyt   __init__·   s    c         S   s   | S(   N(    (   R   t   spec(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   ¹   s    (   R   R   RR   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRO   ¶   s   t   Dc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   RQ   (   R   RQ   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRR   ½   s    c         S   s   t  |  j ƒ S(   N(   R   RQ   (   R   RS   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   ¿   s    (   R   R   RR   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRT   ¼   s   	t   Ec           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   RQ   (   R   RQ   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRR   Ä   s    c         S   s   d |  j  d S(   Ns   E(t   )(   RQ   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   Æ   s    (   R   R   RR   R#   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRU   Ã   s   	t   Fc           B   s   e  Z d  „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   RQ   (   R   RQ   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRR   Ë   s    c         S   s   d |  j  d S(   Ns   F(RV   (   RQ   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   __repr__Í   s    (   R   R   RR   RX   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRW   Ê   s   	t   Gc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         S   s   | |  _  d  S(   N(   RQ   (   R   RQ   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRR   Ò   s    c         S   s   d |  j  S(   Ns
   string is (   RQ   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR#   Ô   s    c         S   s+   | d k r d |  j  d St j |  | ƒ S(   Nt   ds   G(RV   (   RQ   R4   R@   (   R   t   format_spec(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   Ö   s    (   R   R   RR   R#   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRY   Ñ   s   		t   Hc           B   s   e  Z d  „  Z RS(   c         S   s   d S(   Ng      ð?(    (   R   R[   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   Ý   s    (   R   R   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR\   Ü   s   t   Ic           B   s   e  Z d  „  Z RS(   c         S   s   |  j  | ƒ S(   N(   t   strftime(   R   R[   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   á   s    (   R   R   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR]   à   s   t   Jc           B   s   e  Z d  „  Z RS(   c         S   s   t  j |  d | ƒ S(   Ni   (   t   intR@   (   R   R[   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   å   s    (   R   R   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR_   ä   s   RD   s   {0}s   {0:}s   X{0}t   Xabcs   {0}Xt   abcXs   X{0}Yt   XabcYs   {1}i   s   X{1}s   {1}Xs   X{1}Yiñÿÿÿs   -15s   {0}{1}s   -15abcs   {0}X{1}s   -15Xabcs   {{t   {s   }}t   }s   {{}}s   {}s   {{x}}s   {x}s   {{{0}}}i{   s   {123}s	   {{{{0}}}}s   {{0}}s   }}{{s   }{s   }}x{{s   }x{s   {0[foo-bar]}t   bazs   foo-bars   {0[foo bar]}s   foo bars   {0[ ]}i   RJ   t   3s   {foo._x}R"   i   t   20s   {1}{0}i
   t   2010s   {0._x.x}s   {0[0]}t   defs   {0[1]}s	   {0[1][0]}s   {0[1][0].x}s   {0:.3s}RF   s   {0:.0s}s   {0:3.3s}s   {0:2.3s}s   {0:2.2s}s   {0:3.2s}s   ab s   {0:x<0s}R   s   {0:x<5s}s   {0:x<6s}s   {0:x<7s}RG   s   {0:x<8s}RH   s   {0: <7s}s   result s   {0:<7s}s   {0:>7s}s    results   {0:>8s}s     results   {0:^8s}s    result s   {0:^9s}s	    result  s   {0:^10s}s
     result  s	   {0:10000}i'  i'  s   {0:10000000}i€–˜ s   {0:abc}s   {0!s}t   Hellos   {0!s:}s   {0!s:15}s   Hello          s	   {0!s:15s}s   {0!r}s   'Hello's   {0!r:}s   F(Hello)s   []s   [1]t   datas   E(data)s   {0:d}s   G(data)s   string is datas>   object.__format__ with a non-empty format string is deprecateds   {0:^10}s
    E(data)  s   {0:>15s}s    string is datas   {0:date: %Y-%m-%d}t   yeart   montht   dayi   s   date: 2007-08-27s   {0:.{1}}s   hello worldi   t   hellos	   {0:.{1}s}s   {0:.{precision}s}t	   precisions   {0:{width}.{precision}s}t   widths
   hello     t   10t   5s   {as   }as   abc{0:{}s   {0s   {0.}i    s   {0[}s   {0]}s   {0.[]}s   {0..foo}s   {0[0}s	   {0[0:foo}s   {c]}s	   {{ {{{0}}s   {0}}s   {foo}R2   s   {0!x}s   {0!}s   {0!rs}s   {!}s   {:}s   {:s}s   {0[0]x}s
   {0[0](10)}s   {0[{1}]}t   abcdefgi   s   {0:{1:{2}}}R?   s   {0:{1:{2:{3:{4:{5:{6}}}}}}}i   i   i   s   {0:-s}t   -s   {0:=s}(    (    (    (    (    (    (   R   R   t   datetimet   dictt   dateR`   R    t   check_warningst   PendingDeprecationWarningR   R   t
   IndexErrort   KeyErrort   Nonet	   TypeError(   R   Rw   RZ   RO   RT   RU   RW   RY   R\   R]   R_   t   msg(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_formatŸ   s2      "(%"(!%	%%c         C   s?   d j  t j d ƒ } |  j t ƒ � t  d | ƒ } Wd  QXd  S(   Ns   .{}fi   g¸…ëQ¸@(   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_str.pyt   test_format_huge_precisionˆ  s    c         C   s?   d j  t j d ƒ } |  j t ƒ � t  d | ƒ } Wd  QXd  S(   Ns   {}fi   g¸…ëQ¸@(   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_str.pyt   test_format_huge_width�  s    c         C   s?   d j  t j d ƒ } |  j t ƒ � | j  d ƒ } Wd  QXd  S(   Ns
   {{{}:.6f}}i   g¸…ëQ¸@(   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_str.pyt   test_format_huge_item_number’  s    c         C   s  d d0 d „  ƒ  Y} |  j  d j d ƒ d ƒ |  j  d j d ƒ d ƒ |  j  d	 j d ƒ d
 ƒ |  j  d j | d ƒ ƒ d ƒ |  j  d j d d g ƒ d ƒ |  j  d j i d d 6d d 6ƒ d ƒ |  j  d j d d ƒ d ƒ |  j  d j d d ƒ d ƒ |  j  d j d d ƒ d ƒ |  j t d  j d d ƒ |  j t d! j d d ƒ |  j t d" j d d ƒ |  j t d# j d d ƒ |  j  d$ j d d% d& ƒd' ƒ |  j  d( j d d% d& ƒd) ƒ |  j  d* j d d+ d, d, d% d ƒd- ƒ |  j  d. j d d d% d d, d, ƒd/ ƒ d  S(1   NRO   c           B   s   e  Z d  d „ Z d „  Z RS(   id   c         S   s   | |  _  d  S(   N(   RP   (   R   RQ   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRR   ™  s    c         S   s   | S(   N(    (   R   RS   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR@   ›  s    (   R   R   RR   R@   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyRO   ˜  s   s   {}i
   Rs   s   {:5}R?   s   s    s   {!r}s   's's   {._x}s   {[1]}i   i   t   2s   {[a]}i   R   t   bt   4s   a{}b{}ci    t   a0b1cs   a{:{}}bRQ   s   ^10s   a    x     bs   a{:{}x}bi   t   #t   a0x14bs   {}{1}s   {1}{}s   {:{1}}s   {0:{}}s   {f}{}t   fRC   t   test4s   {}{f}t   4tests   {:{f}}{g}{}i   t   gs    1g3s   {f:{}}{}{g}s    14g(    (   R   R   R   R   (   R   RO   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_format_auto_numbering—  s$    '(c         C   s0   |  j  t d j d ƒ |  j  t d j d ƒ d  S(   Ns   {0:c}iÿÿÿÿi   (   R   R   R   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_format_c_overflowµ  s    c         C   s   |  j  t t j j d ƒ d  S(   NR	   (   R   R   R   t   stdint   readinto(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_buffer_is_readonlyº  s    c         C   s¶   |  j  d j d d ƒ d j d d d ƒƒ |  j  d j d d ƒ d j d d d d ƒ ƒ |  j  d j d d ƒ d j d d d ƒƒ |  j  d j d d ƒ d j d d d d ƒ ƒ d  S(   Nt   abcdet   asciit   replacet   errorst   ignoret   encodings   Andr‚ x(   R   t   encodet   decode(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_encode_and_decode_kwargs½  s    c      	   C   sË   |  j  t ƒ � d j d ƒ Wd  QX|  j  t ƒ � d j d ƒ Wd  QXx~ d j d j f D]j } |  j  t ƒ � } | d g ƒ Wd  QXt | j ƒ } |  j d | ƒ |  j d | ƒ |  j d | ƒ qY Wd  S(   Ns   ÿu   xR"   R‹   R5   R   t   tuple(   R   t   UnicodeDecodeErrorR7   t   endswithR   R   t	   exceptiont   assertIn(   R   t   metht   cmt   exc(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_startswith_endswith_errorsÇ  s    c         C   s4   d t  f d „  ƒ  Y} |  j d | d ƒ d ƒ d  S(   Nt   SubclassedStrc           B   s   e  Z d  „  Z RS(   c         S   s   d j  | ƒ S(   Ns'   Success, self.__rmod__({!r}) was called(   R   (   R   t   other(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   __rmod__Ø  s    (   R   R   R¨   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyR¦   ×  s   s	   lhs %% %rt   rhss.   Success, self.__rmod__('lhs %% %r') was called(   R   R   (   R   R¦   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_issue28598_strsubclass_rhsÔ  s    I       (   R   R   R   t	   type2testR   R   R   R    t   cpython_onlyR   R   R:   t   unittestt   skipIfR   R=   t   structt   calcsizeR>   RL   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_str.pyR   
   s(   					E'	 	é							
	t   CAPITestc           B   s   e  Z d  „  Z RS(   c         C   sM  t  j d ƒ } t  j d ƒ } d d l m } m } d d l m } m } m } m } m	 }	 m
 }
 m } | j } | | _ |  j | d ƒ d ƒ |  j | d d ƒ d	 ƒ |  j | d
 | d ƒ ƒ d ƒ |  j | d
 | t d ƒ ƒ ƒ d ƒ |  j | d
 | d ƒ ƒ d ƒ |  j | d | d ƒ | d ƒ |	 d ƒ ƒ d ƒ |  j | d | d ƒ | d ƒ |	 d ƒ ƒ d ƒ |  j | d | d ƒ | d ƒ |	 d ƒ ƒ d ƒ |  j | d | d ƒ ƒ d ƒ |  j | d | d  ƒ ƒ d! ƒ |  j | d" | d# ƒ ƒ d$ ƒ |  j | d% | d& ƒ ƒ d' ƒ |	 d ƒ j } xØ d( | | j t f d( | | j t f d) | | j t f d) | | j t f d* | | j t f d+ |
 | j t f d+ |
 | j t f d, |	 | t f f D]C \ } } } } |  j | | | | ƒ ƒ | | ƒ j d- ƒ ƒ f q¾W|  j | d. d/ ƒ d/ ƒ |  j | d0 d1 ƒ d2 ƒ |  j | d3 ƒ d4 ƒ |  j | d5 ƒ d6 ƒ |  j | d7 | t d8 ƒ ƒ ƒ d9 ƒ |  j | d: ƒ d; ƒ |  j | d4 ƒ d4 ƒ |  j | d< | d ƒ | d ƒ ƒ d= ƒ |  j | d> | d ƒ ƒ d? ƒ |  j | d> | d@ ƒ ƒ dA ƒ |  j | dB ƒ dB ƒ |  j | d; dB ƒ dB ƒ d  S(C   Nt   ctypesR   iÿÿÿÿ(   t	   pythonapit	   py_object(   t   c_intt   c_uintt   c_longt   c_ulongt   c_size_tt	   c_ssize_tt   c_char_pR   s
   Hello %s !t   worlds   Hello world !s   c=%ci    s   c= t   @s   c=@iÿ   s   c=ÿs   d=%d ld=%ld zd=%zdi   i   i   s   d=1 ld=2 zd=3iþÿÿÿiýÿÿÿs   d=-1 ld=-2 zd=-3s   u=%u lu=%lu zu=%zui{   iÈ  i  s   u=123 lu=456 zu=789s   i=%is   i=123i…ÿÿÿs   i=-123s   x=%xi¼
  s   x=abcs   s=%st   cstrs   s=cstrs   %ds   %lds   %lus   %zds   %zuR•   s   %5sR   s   %.3sRF   RD   s   %%t   %s   [%%]s   [%]s   %%%ct   _s   %_s   %%ss   %ss   x=%i y=%s   x=2 y=%s   %cs   ÿi   s    R	   (   R    t   import_moduleR²   R³   R´   Rµ   R¶   R·   R¸   R¹   Rº   R»   t   PyString_FromFormatt   restypeR   t   ordRA   t   INT_MINR   R   t   LONG_MINt   LONG_MAXt	   ULONG_MAXt   PY_SSIZE_T_MINt   PY_SSIZE_T_MAXRš   (   R   R²   R   R³   R´   Rµ   R¶   R·   R¸   R¹   Rº   R»   RÂ   t   size_maxt	   formatstrt   ctypes_typeRA   t   py_formatter(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   test_from_formatá  sŠ    4		%!(   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_str.pyR±   Þ  s   c           C   s   t  j t t ƒ d  S(   N(   R    t   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_str.pyt	   test_main?  s    t   __main__(   R­   R¯   R   RC   R    R   R   R   t
   CommonTestR   t   MixinStrUserStringTestt   MixinStrUnicodeTestR   t   TestCaseR±   RÑ   R   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_str.pyt   <module>   s   ÿ Ña	