ó
ŠwÛjc           @   s–  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l	 Z	 d d l
 Z d d l Z e j j r¢ d „  Z n	 d „  Z d f  d „  ƒ  YZ d e	 j f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e	 j f d „  ƒ  YZ d e	 j f d „  ƒ  YZ d e j j e j j f d „  ƒ  YZ d e f d „  ƒ  YZ d e	 j f d „  ƒ  YZ d „  Z e d k r’e ƒ  n  d S(   sŸ   Unit tests for the bytes and bytearray types.

XXX This is a mess.  Common tests should be unified with string_tests.py (and
the latter should be modernized).
iÿÿÿÿNc            s"   t  j ˆ  ƒ ‡  f d †  ƒ } | S(   Nc             s0   t  j j d t f ƒ � ˆ  |  | Ž  SWd  QXd  S(   Nt    (   t   testt   test_supportt   check_warningst   BytesWarning(   t   argst   kw(   t   func(    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   wrapper   s    (   t	   functoolst   wraps(   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_bytes.pyt   check_bytes_warnings   s    c         C   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_bytes.pyR      s    t	   Indexablec           B   s   e  Z d  d „ Z d „  Z RS(   i    c         C   s   | |  _  d  S(   N(   t   value(   t   selfR   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   __init__"   s    c         C   s   |  j  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_bytes.pyt	   __index__$   s    (   t   __name__t
   __module__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_bytes.pyR   !   s   t   BaseBytesTestc           B   sÙ  e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z 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& d$ „  Z' d% „  Z( d& „  Z) d' „  Z* d( „  Z+ d) „  Z, d* „  Z- d+ „  Z. d, „  Z/ d- „  Z0 d. „  Z1 d/ „  Z2 d0 „  Z3 d1 „  Z4 d2 „  Z5 RS(3   c         C   s?   |  j  ƒ  } |  j t | ƒ |  j  ƒ |  j | j |  j  ƒ d  S(   N(   t	   type2testt   assertEqualt   typet	   __class__(   R   t   b(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_basics*   s    c            s9  |  j  ƒ  ‰  |  j t ˆ  ƒ 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 †  ƒ |  j t ‡  f d	 †  ƒ |  j t ‡  f d
 †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ d  S(   Ni    c              s   ˆ  d S(   Ni    (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   <lambda>2   R    c              s   ˆ  d S(   Ni   (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   3   R    c              s   ˆ  t  j S(   N(   t   syst   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_bytes.pyR   4   R    c              s   ˆ  t  j d S(   Ni   (   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_bytes.pyR   5   R    c              s   ˆ  d S(   Ni
   id   l                DG¨†dªrÓâÈYâ|gÄO¬s&YR5I (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   6   R    c              s   ˆ  d S(   Niÿÿÿÿ(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   7   R    c              s   ˆ  d S(   Niþÿÿÿ(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   8   R    c              s   ˆ  t  j S(   N(   R   R   (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   9   R    c              s   ˆ  t  j d S(   Ni   (   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_bytes.pyR   :   R    c              s   ˆ  t  j d S(   Ni   (   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_bytes.pyR   ;   R    c              s   ˆ  d S(   Ni
   id   l                DG¨†dªrÓâÈYâ|gÄO¬s&YR5I léÿÿÿ             DG¨†dªrÓâÈYâ|gÄO¬s&YR5I (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   <   R    (   R   R   t   lent   assertRaisest
   IndexError(   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_bytes.pyt   test_empty_sequence/   s    c         C   s�  |  j  t d ƒ ƒ } |  j t | ƒ d ƒ |  j t | ƒ t t d ƒ ƒ ƒ |  j  d h ƒ } |  j | d ƒ |  j  d d h ƒ } |  j t | ƒ d d h ƒ |  j  t t d ƒ ƒ ƒ } |  j t | ƒ d ƒ |  j t | ƒ t t d ƒ ƒ ƒ |  j  d „  t d ƒ Dƒ ƒ } |  j t | ƒ d ƒ |  j t | ƒ t t d ƒ ƒ d d  d	 … ƒ d
 d d „  ƒ  Y} |  j  | ƒ  ƒ } |  j | d ƒ d  S(   Ni   i*   t   *i+   i-   c         s   s   |  ] } | d  r | Vq d S(   i   N(    (   t   .0t   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_bytes.pys	   <genexpr>O   s    i€   i   i   t   Sc           B   s   e  Z d  „  Z RS(   c         S   s   d | S(   Ni   i   i   (   i   i   i   (    (   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_bytes.pyt   __getitem__U   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_bytes.pyR$   T   s   s   (   i+   i-   (   i-   i+   (    (   R   t   rangeR   R   t   listt   assertInt   tuplet   iter(   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_bytes.pyt   test_from_iterable>   s     ""/c         C   sv   |  j  t t d ƒ ƒ ƒ } |  j t | ƒ d ƒ |  j t | ƒ t t d ƒ ƒ ƒ |  j  d ƒ } |  j | d ƒ d  S(   Ni   i   i   i   s   (   i   i   i   (   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_bytes.pyt   test_from_tupleZ   s
    "c         C   s   |  j  t t d ƒ ƒ ƒ } |  j t | ƒ d ƒ |  j t | ƒ t t d ƒ ƒ ƒ |  j  d d d g ƒ } |  j | d ƒ d  S(   Ni   i   i   i   s   (   R   R'   R&   R   R   (   R   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_from_listb   s
    "c         C   s”   |  j  t ƒ  t d ƒ t d ƒ t d ƒ g ƒ } |  j t | ƒ d d d d g ƒ |  j t |  j  t d ƒ g ƒ |  j t |  j  t d ƒ g ƒ d  S(   Ni   iþ   iÿ   i    iÿÿÿÿi   (   R   R   R   R'   R   t
   ValueError(   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_bytes.pyt   test_from_indexj   s
    "c         C   sŒ   |  j  t j d d d d g ƒ ƒ } |  j | d ƒ |  j  d ƒ } |  j | d ƒ d t f d „  ƒ  Y} |  j |  j  | d ƒ ƒ d ƒ d  S(   Nt   Bi   i   i   s   c           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   t	   TypeError(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   z   s    (   R   R   R   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR0   y   s   t   foobar(   R   t   arrayR   t   bytes(   R   t   aR0   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_from_bufferq   s    $c         C   s·   |  j  |  j d ƒ d ƒ |  j  |  j d ƒ d ƒ |  j  |  j d ƒ d ƒ |  j t |  j d ƒ |  j  |  j d d	 ƒ d ƒ |  j  |  j d ƒ d ƒ |  j t |  j t j d ƒ d  S(
   Ni    R    i   s    i   s        iÿÿÿÿt   0t   ascii(   R   R   R   R.   t   OverflowErrorR   t   maxsize(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_from_ssize   s    c         C   s{   |  j  t |  j d ƒ d d d „  ƒ  Y} |  j  t |  j d g ƒ |  j  t |  j d  g ƒ |  j  t |  j | ƒ  g ƒ d  S(   Ng        t   Cc           B   s   e  Z RS(    (   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_bytes.pyR<   ‹   s   (    (   R   R1   R   t   None(   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_bytes.pyt   test_constructor_type_errors‰   s
    c         C   s  |  j  t |  j d g ƒ |  j  t |  j t j g ƒ |  j  t |  j t j d g ƒ |  j  t |  j t j d g ƒ |  j  t |  j d	 g ƒ |  j  t |  j d g ƒ |  j  t |  j d g ƒ |  j  t |  j t j g ƒ |  j  t |  j t j d g ƒ |  j  t |  j d
 g ƒ d  S(   Niÿÿÿÿi   i   i
   id   i   i  l                DG¨†dªrÓâÈYâ|gÄO¬s&YR5I léÿÿÿ             DG¨†dªrÓâÈYâ|gÄO¬s&YR5I l                DG¨†dªrÓâÈYâ|gÄO¬s&YR5I (   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_bytes.pyt   test_constructor_value_errors“   s    !! c         C   sx   d d d „  ƒ  Y} |  j  t |  j | ƒ  ƒ |  j  t |  j | ƒ  g ƒ d d d „  ƒ  Y} |  j  t |  j | ƒ  ƒ d  S(   Nt   BadIntc           B   s   e  Z d  „  Z RS(   c         S   s   d d d  S(   Ni   i    (    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.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_bytes.pyR@   ¢   s   t   BadIterablec           B   s   e  Z d  „  Z RS(   c         S   s   d d d  S(   Ni   i    (    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   __iter__©   s    (   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_bytes.pyRA   ¨   s   (    (    (   R   t   ZeroDivisionErrorR   (   R   R@   RA   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_constructor_exceptionsŸ   s
    c         C   sv  |  j  d d d g ƒ } |  j  d d d g ƒ } |  j  d d g ƒ } |  j | | ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k  ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k ƒ |  j | | k  ƒ |  j | | k  ƒ |  j | | k ƒ d  S(   Ni   i   i   (   R   R   t
   assertTruet   assertFalse(   R   t   b1t   b2t   b3(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_compare­   s&    c         C   s¾   |  j  |  j d ƒ d k t ƒ |  j  |  j d ƒ d k t ƒ |  j  |  j d ƒ d k t ƒ |  j  |  j d ƒ d k t ƒ |  j  |  j ƒ  t ƒ  k t ƒ |  j  |  j ƒ  t ƒ  k t ƒ d  S(   Ns    a b cu   abcs      a   b   cs   a b c s   a   b   c   (   R   R   t   Falset   unicodet   True(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_compare_to_strÄ   s    c         C   sT   t  t t d ƒ ƒ } |  j | ƒ } t  t | ƒ ƒ } | j ƒ  |  j | | ƒ d  S(   Nt   Hello(   R'   t   mapt   ordR   t   reversedt   reverseR   (   R   t   inputR   t   output(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_reversedÏ   s
    
c            sŒ  ‡  f d †  } | d ƒ } ˆ  j  | d  | d ƒ ƒ ˆ  j  | d d !| d ƒ ƒ ˆ  j  | d d !| d ƒ ƒ ˆ  j  | d | d	 ƒ ƒ ˆ  j  | d d
 !| d	 ƒ ƒ ˆ  j  | d d !| d	 ƒ ƒ ˆ  j  | d  | d ƒ ƒ ˆ  j  | d d !| d ƒ ƒ ˆ  j  | d d !| d ƒ ƒ ˆ  j  | d | d	 ƒ ƒ ˆ  j  | d d
 !| d	 ƒ ƒ ˆ  j  | d d !| d	 ƒ ƒ ˆ  j  | d d !| d ƒ ƒ d  S(   Nc            s   ˆ  j  t t |  ƒ ƒ S(   N(   R   RP   RQ   (   t   s(   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   by×   s    s   Hello, worldi   RO   i   t   elloi   s   , t   worldi   id   iùÿÿÿiõÿÿÿiûÿÿÿiœÿÿÿ(   R   (   R   RX   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_bytes.pyt   test_getsliceÖ   s    c      
   C   s•   t  t d ƒ ƒ } |  j | ƒ } d } xg | D]_ } xV | D]N } xE | d D]9 } |  j | | | | … |  j | | | | … ƒ ƒ qL Wq; Wq. Wd  S(   Niÿ   i    i   i   i   id   iÿÿÿÿiþÿÿÿiáÿÿÿiœÿÿÿ(
   i    Ni   i   i   id   iÿÿÿÿiþÿÿÿiáÿÿÿiœÿÿÿ(   R'   R&   R   R=   R   (   R   t   LR   t   indicest   startt   stopt   step(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_extended_getsliceê   s    c         C   s�   d } xB d D]: } |  j  | | ƒ } |  j | |  j  | j | ƒ ƒ ƒ q W|  j t |  j  | d ƒ |  j  | d d ƒ } |  j | |  j  | d  d ƒ ƒ d  S(	   Nu   Hello world
áˆ´å™¸éª¼í»°t   utf8t   utf16t   latin1t   ignoreiüÿÿÿs   utf-8(   Rb   Rc   (   R   R   t   encodeR   t   UnicodeEncodeError(   R   t   samplet   encR   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_encodingõ   s    &c         C   s²   d } x9 d
 D]1 } |  j  | | ƒ } |  j | j | ƒ | ƒ q Wd } |  j  | d ƒ } |  j t | j d ƒ |  j | j d d ƒ d ƒ |  j | j d d d	 d ƒ d ƒ d  S(   Nu   Hello world
áˆ´å™¸éª¼\def0\def0Rb   Rc   u   Hello world
Â€Â�Ã¾Ã¿Rd   Re   s   Hello world
t   errorst   encoding(   Rb   Rc   (   R   R   t   decodeR   t   UnicodeDecodeError(   R   Rh   Ri   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_decodeþ   s    c         C   s‡   |  j  d ƒ } |  j | |  j  ƒ  ƒ |  j  d ƒ } |  j | |  j  d g d ƒ ƒ |  j  d ƒ } |  j | |  j  d g d ƒ ƒ d  S(   Ni    i
   i'  (   R   R   (   R   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_from_int
  s     c            sœ   |  j  d ƒ ‰  |  j  d ƒ ‰ |  j ˆ  ˆ d ƒ |  j ˆ  t d ƒ d ƒ |  j t d ƒ ˆ  d ƒ |  j t ‡  f d †  ƒ |  j t ‡ f d †  ƒ d  S(   Nt   abct   deft   abcdeft   defabcc              s   ˆ  d S(   Nu   def(    (    (   RG   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR     R    c              s   d ˆ  S(   Nu   abc(    (    (   RH   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR     R    (   R   R   R4   R   R1   (   R   (    (   RG   RH   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_concat  s    c            s±   xª d |  j  d ƒ f D]“ ‰  |  j ˆ  d d ƒ |  j ˆ  d d ƒ |  j ˆ  d d ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t t f ‡  f d	 †  ƒ q Wd  S(
   NRq   i   t	   abcabcabci    R    iÿÿÿÿc              s   ˆ  d S(   Ng…ëQ¸	@(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR      R    c              s   d ˆ  S(   Ng…ëQ¸	@(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   !  R    c              s   ˆ  t  j S(   N(   R   R:   (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   $  R    (   R   R   R   R1   R9   t   MemoryError(   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_bytes.pyt   test_repeat  s    c         C   s7   |  j  |  j d ƒ d |  j t d ƒ g d ƒ ƒ d  S(   Nt   xid   (   R   R   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_bytes.pyt   test_repeat_1char&  s    c            sÛ  |  j  d ƒ ‰  |  j t d ƒ ˆ  ƒ |  j t t d ƒ ƒ ˆ  ƒ |  j d ˆ  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ xt t	 f D]ø } |  j | d	 ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d
 ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ |  j | d ƒ ˆ  ƒ qÛ Wd  S(   NRq   R5   iÈ   c              s
   d ˆ  k S(   Ni,  (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   .  R    c              s
   d ˆ  k S(   Niÿÿÿÿ(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   /  R    c              s
   d  ˆ  k 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_bytes.pyR   0  R    c              s   t  t d ƒ ƒ ˆ  k S(   NR5   (   t   floatRQ   (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   1  R    c              s
   d ˆ  k S(   Nu   a(    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   2  R    R    R   t   ct   abt   bct   act   dt   dabt   abd(
   R   R(   RQ   t   intt   assertNotInR   R.   R1   R4   t	   bytearray(   R   t   f(    (   R   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_contains)  s*    c         C   s;  |  j  t |  j j ƒ |  j  t |  j j d ƒ |  j |  j j d ƒ |  j ƒ  ƒ t d d d g ƒ } |  j |  j j d ƒ | ƒ |  j |  j j d ƒ | ƒ |  j |  j j d ƒ d	 ƒ |  j  t |  j j d
 ƒ |  j  t |  j j d ƒ |  j  t |  j j d ƒ |  j  t |  j j d ƒ |  j  t |  j j d ƒ d  S(   Ni   u    i   i+   i0   u   1a2B30u     1A 2B  30   u   0000s     u   au   rtu   1a b cdu    u   12       34(   R   R1   R   t   fromhexR   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_bytes.pyt   test_fromhex@  s    "c         C   s2  |  j  |  j d ƒ j g  ƒ d ƒ |  j  |  j d ƒ j d g ƒ d ƒ x¼ d g d d g d d g d d d g g D]� } t t |  j | ƒ ƒ } |  j  |  j d ƒ j | ƒ d ƒ |  j  |  j d ƒ j t | ƒ ƒ d ƒ |  j  |  j d ƒ j t | ƒ ƒ d ƒ qr W|  j  |  j d ƒ j d d	 g ƒ d
 ƒ d  S(   NR    Rq   R5   R~   R}   R|   R   t   .t   cds   ab.cd(   R   R   t   joinR'   RP   R)   R*   (   R   t   lst(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt	   test_joinN  s    "%1"(,c         C   s^   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ d  S(   Nt   mississippiR#   i   t   ssi   t   wi    (   R   R   t   count(   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_bytes.pyt
   test_countY  s    c         C   s�   |  j  d ƒ } |  j |  j  ƒ  j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ d  S(   Nt   hellot   anythingt   helt   ht   hellowt   ha(   R   RF   t
   startswithRE   (   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_bytes.pyt   test_startswith_  s    c         C   sš   |  j  d ƒ } |  j t ƒ  j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ |  j | j d ƒ ƒ d  S(   NR”   R•   t   llot   ot   whellot   no(   R   RF   R…   t   endswithRE   (   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_bytes.pyt   test_endswithh  s    c         C   s¸   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j | j d	 ƒ d ƒ |  j | j d
 ƒ d ƒ d  S(   NR�   R�   i   i   i   i   i   iÿÿÿÿR‘   t   mississippian(   R   R   t   find(   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_bytes.pyt	   test_findq  s    c         C   s™   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j d d d ƒ d ƒ |  j | j d ƒ d	 ƒ |  j | j d
 ƒ d	 ƒ d  S(   NR�   R�   i   i   i    i   i   R‘   iÿÿÿÿR¢   (   R   R   t   rfind(   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_bytes.pyt
   test_rfindz  s    c         C   sq   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | j d ƒ |  j t | j d ƒ d  S(   NRZ   R‘   i    t   orli   t   wormt   ldo(   R   R   t   indexR   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_bytes.pyt
   test_index‚  s
    c         C   sq   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j t | j d ƒ |  j t | j d ƒ d  S(   NRZ   R‘   i    R§   i   R¨   R©   (   R   R   t   rindexR   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_bytes.pyt   test_rindex‰  s
    c         C   sK   |  j  d ƒ } |  j | j d d ƒ d ƒ |  j | j d d ƒ d ƒ d  S(   NR�   R#   R5   t   massassappaR�   Ry   t	   mixixippi(   R   R   t   replace(   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_bytes.pyt   test_replace‘  s    c         C   s&   |  j  t |  j d ƒ j d d ƒ d  S(   Ns   a bi    R    (   R   R1   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_bytes.pyt   test_replace_int_error–  s    c         C   sB   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   Ns   a bu    (   R   R1   R   t   splitt   rsplit(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_split_string_error™  s    c         C   sB   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   Ns   a bi    (   R   R1   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_bytes.pyt   test_split_int_error�  s    c         C   se   x6 d D]. } |  j  | ƒ } |  j | j ƒ  | g ƒ q W|  j  d ƒ } |  j | j ƒ  d g ƒ d  S(   Ns   abs   abs   abs   abs	   	
s   (   s   abs   abs   abs   ab(   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_bytes.pyt   test_split_unicodewhitespace¡  s
    c         C   s,   |  j  d ƒ } |  j | j ƒ  d g ƒ d  S(   Ns	   	
s   (   R   R   R´   (   R   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_rsplit_unicodewhitespace¨  s    c         C   sE   |  j  d ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ d  S(	   NR�   R�   t   mit   issippiR‘   R    (   R¹   R�   Rº   (   R�   R    R    (   R   R   t	   partition(   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_bytes.pyt   test_partition¬  s    c         C   s^   |  j  d ƒ } |  j | j d ƒ d	 ƒ |  j | j d ƒ d
 ƒ |  j | j d ƒ d ƒ d  S(   NR�   R�   t   missit   ippiR#   t
   mississippR    R‘   (   R½   R�   R¾   (   R¿   R#   R    (   R    R    R�   (   R   R   t
   rpartition(   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_bytes.pyt   test_rpartition±  s    c         C   sB   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   Ns   a bu    (   R   R1   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_bytes.pyt   test_partition_string_error·  s    c         C   sB   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   Ns   a bi    (   R   R1   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_bytes.pyt   test_partition_int_error»  s    c         C   ss   xl t  t j d ƒ D]W } xN d D]F } |  j | ƒ } t j | | ƒ } t j | ƒ } |  j | | ƒ q! Wq Wd  S(   Ni   R    R5   Rq   s   ÿab€s     ÿ  (   R    R5   Rq   s   ÿab€s     ÿ  (   R&   t   picklet   HIGHEST_PROTOCOLR   t   dumpst   loadsR   (   R   t   protoR   t   pst   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_bytes.pyt   test_pickling¿  s    c         C   s|   |  j  |  j d ƒ j t d ƒ ƒ d ƒ |  j  |  j d ƒ j t d ƒ ƒ d ƒ |  j  |  j d ƒ j t d ƒ ƒ d ƒ d  S(   NRq   R   R   R~   R}   (   R   R   t   stript
   memoryviewt   lstript   rstrip(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_strip_bytearrayÇ  s    ((c         C   sa   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   NRq   u   ac(   R   R1   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_bytes.pyt   test_strip_string_errorÌ  s    c         C   sa   |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ |  j  t |  j d ƒ j d ƒ d  S(   Ns    abc i    (   R   R1   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_bytes.pyt   test_strip_int_errorÑ  s    c         C   sj   |  j  t |  j d ƒ j d d ƒ |  j  t |  j d ƒ j d d ƒ |  j  t |  j d ƒ j d d ƒ d  S(   NRq   i   i    (   R   R1   R   t   centert   ljustt   rjust(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_xjust_int_errorÖ  s    ""c         C   sb   |  j  d ƒ } |  j g  t t | ƒ ƒ D] } t | | | d !ƒ ^ q( d d d d d g ƒ d  S(   Ns    A€ÿi   i    iA   i   i€   iÿ   (   R   R   R&   R   RQ   (   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_bytes.pyt   test_ordÛ  s    9c         C   sž  |  j  d ƒ } |  j  d ƒ } |  j  d ƒ } |  j  d ƒ } |  j  d ƒ } |  j d | j | d  ƒ ƒ |  j d | j | d d  ƒ ƒ |  j d | j | d  d ƒ ƒ |  j d	 | j | d  d  ƒ ƒ |  j d | j | d  ƒ ƒ |  j d | j | d d  ƒ ƒ |  j d | j | d  d ƒ ƒ |  j d	 | j | d  d  ƒ ƒ |  j d | j | d  ƒ ƒ |  j d | j | d d  ƒ ƒ |  j d | j | d  d ƒ ƒ |  j d	 | j | d  d  ƒ ƒ |  j d | j | d  ƒ ƒ |  j d | j | d d  ƒ ƒ |  j d | j | d  d ƒ ƒ |  j d	 | j | d  d  ƒ ƒ |  j d | j | d  ƒ ƒ |  j d
 | j | d d  ƒ ƒ |  j d
 | j | d  d ƒ ƒ |  j d	 | j | d  d  ƒ ƒ |  j t | j	 | d  ƒ ƒ |  j t | j	 | d d  ƒ ƒ |  j t | j	 | d  d ƒ ƒ |  j t
 | j	 | d  d  ƒ ƒ |  j t | j | d  ƒ ƒ |  j t | j | d d  ƒ ƒ |  j t | j | d  d ƒ ƒ |  j t
 | j | d  d  ƒ ƒ d  S(   NR”   t   lR—   Ry   R�   i   i   iþÿÿÿi    i   (   R   R   R£   R=   R¥   Rª   R¬   R’   RM   R    RK   Rš   (   R   R   RØ   R—   Ry   R�   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_none_argumentsà  sB    c         C   s  |  j  d ƒ } |  j  d ƒ } |  j t d | j | d  d  d  ƒ |  j t d | j | d  d  d  ƒ |  j t d | j | d  d  d  ƒ |  j t d | j | d  d  d  ƒ |  j t d | j | d  d  d  ƒ |  j t d | j	 | d  d  d  ƒ |  j t d	 | j
 | d  d  d  ƒ d  S(
   NR”   Ry   s   \bfind\bs	   \brfind\bs	   \bindex\bs
   \brindex\bs	   \bcount\bs   \bstartswith\bs   \bendswith\b(   R   t   assertRaisesRegexpR1   R£   R=   R¥   Rª   R¬   R’   Rš   R    (   R   R   Ry   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt*   test_find_etc_raise_correct_error_messages  s     c         C   s6   t  j j |  t |  j ƒ t  j j |  t |  j ƒ d  S(   N(   R   R   t   check_free_after_iteratingR*   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_bytes.pyt   test_free_after_iterating  s    (6   R   R   R   R    R+   R,   R-   R/   R6   R;   R>   R?   RD   RJ   R   RN   RV   R[   Ra   Rj   Ro   Rp   Ru   Rx   Rz   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Ý   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   (   sf   								
	
																																												+	t   ByteArrayTestc           B   sï   e  Z e Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   |  j  t t t ƒ  ƒ d  S(   N(   R   R1   t   hashR…   (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_nohash&  s    c      
   C   sK  d } | d d t  | ƒ } t j ƒ  } zñ t | d ƒ � } | j | ƒ Wd  QXt | d ƒ �" } t d ƒ } | j | ƒ } Wd  QX|  j | t  | ƒ ƒ d „  | Dƒ } |  j t | ƒ t | ƒ ƒ t | d ƒ � } | j | ƒ Wd  QXt | d ƒ � } |  j | j	 ƒ  | ƒ Wd  QXWd  y t
 j | ƒ Wn t
 j k
 rEn XXd  S(   Ns   Hello world
s    i   t   wbt   rbc         s   s   |  ] } t  | ƒ Vq d  S(   N(   RQ   (   R"   RW   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pys	   <genexpr>7  s    (   R   t   tempfilet   mktempt   opent   writeR…   t   readintoR   R'   t   readt   ost   removet   error(   R   t   short_sampleRh   t   tfnR†   R   t   nt   b_sample(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_bytearray_api)  s(     c         C   s|   t  d ƒ } |  j | j ƒ  d  ƒ |  j | d ƒ t  d ƒ } | j ƒ  |  j | d ƒ t  ƒ  } | j ƒ  |  j | ƒ d  S(   NR”   t   olleht   hello1t   1olleh(   R…   R   RS   R=   RF   (   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_bytes.pyt   test_reverseE  s    
	
c         C   sG   d „  } | d ƒ } |  j  t j d | ƒ | d ƒ | d ƒ g ƒ d  S(   Nc         S   s   t  t t |  ƒ ƒ S(   N(   R…   RP   RQ   (   RW   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyRX   Q  s    s   Hello, worlds   \w+RO   RZ   (   R   t   ret   findall(   R   RX   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_regexpsP  s    	c         C   s‹  t  d d d g ƒ } d | d <|  j | t  d d d g ƒ ƒ d | d <|  j | t  d d d g ƒ ƒ t d ƒ | d <|  j | t  d d d g ƒ ƒ y d | d <|  j d	 ƒ Wn t k
 rÄ n Xy d | d
 <|  j d	 ƒ Wn t k
 ró n Xy d | d <|  j d ƒ Wn t k
 r"n Xy! t d ƒ | d <|  j d ƒ Wn t k
 rWn Xy d  | d <|  j d ƒ Wn t k
 r†n Xd  S(   Ni   i   i   id   iÈ   iÿÿÿÿi
   i    s   Didn't raise IndexErroriöÿÿÿi   s   Didn't raise ValueErrors   Didn't raise TypeError(   R…   R   R   t   failR   R.   R=   R1   (   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_bytes.pyt   test_setitemV  s@    





c      
   C   s”   t  t d ƒ ƒ } | d =|  j | t  t d d ƒ ƒ ƒ | d =|  j | t  t d d ƒ ƒ ƒ | d =|  j | t  d d d d d	 d
 d g ƒ ƒ d  S(   Ni
   i    i   iÿÿÿÿi	   i   i   i   i   i   i   (   R…   R&   R   (   R   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_delitemx  s    c         C   s?  t  t d ƒ ƒ } |  j t | ƒ t t d ƒ ƒ ƒ t  d d d d d g ƒ | d d +|  j | t  d d d d d d d d d d g
 ƒ ƒ | d d	 5|  j | t  d d d d d g ƒ ƒ t  d d d
 d d g ƒ | d d +|  j | t  t d ƒ ƒ ƒ t  d d g ƒ | d d +|  j | t  d d d
 d d d d d g ƒ ƒ d d d d g | d d +|  j | t  t d ƒ ƒ ƒ d d d g | d d +|  j | t  d d d
 d d d d d d d d d d g ƒ ƒ d | d )|  j | t  d d d
 d d d g ƒ ƒ t d ƒ | d *|  j | t  d d d d d d g ƒ ƒ g  | d d +|  j | t  d d d d d g ƒ ƒ t d ƒ | d )|  j | t  d d d d d g ƒ ƒ xX d d	 d t d ƒ d d d d g g  g g D]) } |  j t ƒ � | | d d +Wd  QXqÅWxF d d d g d d  g g D]) } |  j t ƒ � | | d d +Wd  QXqWd  S(!   Ni
   i   i    i   i   i   i   i	   iûÿÿÿi   i   i   id   ie   iùÿÿÿiýÿÿÿi*   t   fooif   io   t   uuuuiu   gPïâÖäKDu   strgffffff@u   au   biþ   iÿ   i   i ÿÿÿi(#  (	   R…   R&   R   R'   RÍ   t   longR   R1   R.   (   R   R   t   elem(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_setslice�  s8    ""4
%".=
((%%4"c         C   s  d d  d d d d d d d d	 d
 f } xá | D]Ù } xÐ | D]È } x¿ | d D]³ } t t d ƒ ƒ } t | ƒ } | | | | … } | j ƒ  | | | | | … <| | | | | … <|  j | t | ƒ ƒ | | | | … =| | | | … =|  j | t | ƒ ƒ qL Wq; Wq. Wd  S(   Ni    i   i   i   i,  iM  iÿÿÿÿiþÿÿÿiáÿÿÿiÔþÿÿiÿ   l                                                (   R=   R'   R&   R…   RS   R   (   R   R]   R^   R_   R`   R\   R   t   data(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_extended_set_del_slice«  s    '
c         C   sR   t  t d ƒ ƒ } | | d )|  j | t  t t d ƒ ƒ t t d ƒ ƒ ƒ ƒ d  S(   Ni   i   (   R…   R&   R   R'   (   R   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_setslice_trap¿  s    
c         C   sœ   t  d ƒ } | } | d 7} |  j | d ƒ |  j | | ƒ |  j | | k ƒ | d 7} |  j | d ƒ y | d 7} Wn t k
 rŠ n X|  j d ƒ d  S(   NRq   Rr   Rs   t   xyzt	   abcdefxyzu    s'   bytes += unicode didn't raise TypeError(   R…   R   RE   R1   Rø   (   R   R   RG   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_iconcatÆ  s    

c         C   sS   t  d ƒ } | } | d 9} |  j | d ƒ |  j | | ƒ |  j | | k ƒ d  S(   NRq   i   Rv   (   R…   R   RE   (   R   R   RG   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_irepeatÖ  s    
c         C   sW   t  d ƒ } | } | d 9} |  j | d d ƒ |  j | | ƒ |  j | | k ƒ d  S(   NRy   id   (   R…   R   RE   (   R   R   RG   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_irepeat_1charÞ  s    
c         C   s”   t  ƒ  } | j ƒ  } |  j | d k ƒ | g } x\ t d ƒ D]N } | d 7} | j ƒ  } |  j | t | ƒ ƒ | | k r> | j | ƒ q> q> Wd  S(   Ni    id   Ry   (   R…   t	   __alloc__RE   R&   t   assertGreaterR   t   append(   R   R   t   alloct   seqR#   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt
   test_allocæ  s    		
c            sŒ   t  ƒ  ‰  ‡  ‡ f d †  } ˆ  j | ƒ  ƒ ˆ j t ˆ  ƒ t t d d ƒ ƒ ƒ ˆ j t ˆ  ƒ d ƒ ˆ  j ƒ  } ˆ j | t ˆ  ƒ ƒ d  S(   Nc          3   s¬   x¥ t  d d ƒ D]” }  |  Vt ˆ  ƒ } ˆ j | t t  d t | ƒ d ƒ ƒ ƒ ˆ j t ˆ  ƒ t | ƒ ƒ ˆ j t ˆ  ƒ |  ƒ ˆ  j ƒ  } ˆ j | t ˆ  ƒ ƒ q Wd  S(   Ni   id   (   R&   R'   R   R   t   assertLessEqualR  R	  (   R#   R5   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_bytes.pyt   gô  s    )i   id   ic   (   R…   R   R   R'   R&   R   R  R	  (   R   R  R  (    (   R   R   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_init_allocò  s    		%c         C   sú  d } t  | ƒ } | j | ƒ |  j | | | ƒ |  j | d | ƒ t  d ƒ } | j t t | d ƒ ƒ | j d „  | d Dƒ ƒ |  j | | d ƒ |  j | d | ƒ t  d ƒ } | j t t t | d ƒ ƒ ƒ |  j | | d ƒ |  j | d | ƒ t  d ƒ } | j t t t | d ƒ ƒ ƒ |  j | | d ƒ |  j | d | ƒ t  d ƒ } |  j t | j d d	 d
 d g ƒ |  j t | j d d	 d
 d g ƒ |  j t	 | ƒ d ƒ t  d ƒ } | j t
 t d ƒ ƒ g ƒ |  j | d ƒ d  S(   NR”   i   R    i   c         s   s   |  ] } t  | ƒ Vq d  S(   N(   RQ   (   R"   Ry   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pys	   <genexpr>  s    i2   iûÿÿÿi    i   i   i   iÿÿÿÿR5   (   R…   t   extendR   RP   RQ   R*   R'   R   R.   R   R   (   R   t   origR5   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_extend  s2      ""c            s†  t  d ƒ ‰  ˆ  j t d ƒ ƒ |  j ˆ  d ƒ ˆ  j t d ƒ ƒ |  j ˆ  d ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ |  j t ‡  f d †  ƒ ˆ  j t d ƒ ƒ ˆ  j t d	 ƒ ƒ |  j ˆ  d
 ƒ |  j t ‡  f d †  ƒ ˆ  j t t d
 ƒ ƒ ƒ |  j ˆ  d ƒ t  d d d d g ƒ } | j d ƒ |  j | t  d d d g ƒ ƒ | j d ƒ |  j | t  d d g ƒ ƒ d  S(   NR”   RØ   t   helot   heoc              s   ˆ  j  t d ƒ ƒ S(   NRØ   (   Rê   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_bytes.pyR   %  R    c              s   ˆ  j  d ƒ S(   Ni�  (   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_bytes.pyR   &  R    c              s   ˆ  j  d ƒ S(   Nu   e(   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_bytes.pyR   '  R    R�   R—   t   ec              s   ˆ  j  d ƒ S(   Nu   e(   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_bytes.pyR   ,  R    R    i~   i   i€   i�   (   R…   Rê   RQ   R   R   R.   R1   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_bytes.pyt   test_remove  s&    c            s²   t  d ƒ ‰  |  j ˆ  j ƒ  t d ƒ ƒ |  j ˆ  j d ƒ t d ƒ ƒ |  j ˆ  j d ƒ t d ƒ ƒ |  j t ‡  f d †  ƒ |  j t d „  ƒ |  j t  d	 ƒ j ƒ  d
 ƒ d  S(   NRZ   R€   i    R‘   iþÿÿÿt   rc              s   ˆ  j  d ƒ S(   Ni
   (   t   pop(    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   <  R    c           S   s   t  ƒ  j ƒ  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_bytes.pyR   =  R    s   ÿiÿ   (   R…   R   R  RQ   R   R   (   R   (    (   R   s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_pop7  s    c         C   s   |  j  t d „  ƒ d  S(   Nc           S   s   t  ƒ  j ƒ  S(   N(   R…   t   sort(    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR   B  R    (   R   t   AttributeError(   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_nosortA  s    c            sÉ   t  d ƒ ‰  ˆ  j t d ƒ ƒ |  j ˆ  d ƒ |  j ˆ  j d ƒ d  ƒ t  ƒ  ‰  ˆ  j t d ƒ ƒ |  j t ˆ  ƒ d ƒ |  j t ‡  f d †  ƒ t  ƒ  ‰  ˆ  j t t d ƒ ƒ ƒ |  j ˆ  d ƒ d  S(   Nt   hellR�   R”   id   t   Ai   c              s   ˆ  j  d ƒ S(   Nu   o(   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_bytes.pyR   L  R    (	   R…   R
  RQ   R   R=   R   R   R1   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_bytes.pyt   test_appendD  s    		c         C   s­   t  d ƒ } | j d t d ƒ ƒ | j d t d ƒ ƒ | j d t d ƒ ƒ | j d t d ƒ ƒ |  j | d ƒ t  ƒ  } | j d t t d	 ƒ ƒ ƒ |  j | d	 ƒ d  S(
   Nt   mssssppi   R#   i   iþÿÿÿiè  R�   i    R  (   R…   t   insertRQ   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_bytes.pyt   test_insertQ  s    	c         C   s   t  d ƒ } |  j | | j d d d ƒ k ƒ t  g  t d ƒ D] } | ^ q> ƒ } t  d ƒ } |  j | | j | ƒ k ƒ d  S(   NRq   t   cdei    i   R    (   R…   RF   R°   R&   t	   translate(   R   R   R#   t   tRy   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_copied^  s
    "%c         C   sV  t  d ƒ j d ƒ \ } } } |  j | d ƒ |  j | d ƒ |  j | | k	 ƒ | d 7} |  j | d ƒ t  d ƒ j d ƒ \ } } } |  j | d ƒ |  j | d ƒ t  d ƒ j d ƒ \ } } } |  j | d ƒ |  j | d ƒ |  j | | k	 ƒ | d 7} |  j | d ƒ t  d ƒ j d ƒ \ } } } |  j | d ƒ |  j | d ƒ d  S(   NRy   t   yR    t   !(   R…   R»   R   RE   RÀ   (   R   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_bytes.pyt0   test_partition_bytearray_doesnt_share_nullstringh  s$    

c            sY  t  t d ƒ ƒ ‰  t ˆ  ƒ } ‡  f d †  } | d ƒ ˆ  } |  j t | d ƒ |  j ˆ  | ƒ |  j t | d ƒ |  j ˆ  | ƒ |  j t | d ƒ |  j ˆ  | ƒ |  j t ˆ  j d ƒ |  j ˆ  | ƒ |  j t ˆ  j ˆ  d ƒ |  j ˆ  | ƒ ‡  f d †  } |  j t | ƒ |  j ˆ  | ƒ ‡  f d †  } |  j t | ƒ |  j ˆ  | ƒ d  S(	   Ni
   c            s&   t  |  d d |  d ƒ ˆ  d d +d  S(   Ni   i   iÿÿÿÿ(   R&   (   Rî   (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   resize„  s    i   i	   i    i   c              s   ˆ  d =d  S(   Ni   (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   delitem“  s    c              s   d ˆ  d d d … <d  S(   NR    i   iÿÿÿÿi   (    (    (   R   (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   delslice˜  s    (   R…   R&   RÍ   R   t   BufferErrorR   R  Rê   (   R   t   vR+  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_bytes.pyt   test_resize_forbidden}  s*    
c         C   s   |  j  t t t d ƒ ƒ d  S(   NR    (   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_bytes.pyt   test_empty_bytearray�  s    c         C   s°   |  j  d d d g ƒ } t | ƒ } t | ƒ } x | D] } t | ƒ q7 W| j d ƒ |  j t | ƒ g  ƒ |  j t | ƒ d g ƒ |  j | |  j  d d d d g ƒ ƒ d  S(   Ni   i   i   i	   (   R   R*   t   nextR
  R   R'   (   R   R5   t   exhitt   empitRy   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_exhausted_iterator£  s    (   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  R1  R5  (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyRÞ   #  s4   					"			*										
				
		 	t   AssortedBytesTestc           B   sq   e  Z e d  „  ƒ Z d „  Z e j j d „  ƒ Z d „  Z	 e d „  ƒ Z
 d „  Z d „  Z d „  Z d „  Z RS(	   c         C   s½   x¶ t  t f D]¨ } |  j | t ƒ  ƒ d ƒ |  j | t d g ƒ ƒ d ƒ |  j | t d d d d g ƒ ƒ d ƒ |  j | d ƒ d	 ƒ |  j | d
 ƒ d ƒ |  j | d ƒ d ƒ q Wd  S(   Ns   bytearray(b'')i    s   bytearray(b'\x00')i   iþ   iÿ   s   bytearray(b'\x00\x01\xfe\xff')Rq   s   b'abc't   's   b"'"s   '"s   b'\'"'(   t   strt   reprR   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_bytes.pyt   test_repr_str³  s    !c         C   s¤  |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k  t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k t ƒ |  j  d t d ƒ k  t ƒ |  j  d t d ƒ k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k  t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k t ƒ |  j  t d ƒ d k  t ƒ |  j  t d ƒ d k t ƒ d  S(   NRq   R}   (   R   R4   RM   RK   (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_compare_bytes_to_bytearray¾  s0    c         C   sb   |  j  t j ƒ |  j t j j d ƒ t j ƒ |  j  t j ƒ |  j t j j d ƒ t j ƒ d  S(   Ns
   bytearray(s   bytes((   t   assertIsNotNoneR…   t   __doc__RE   Rš   R4   (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_docÛ  s    c         C   s>   t  d ƒ } t | ƒ } t | ƒ } |  j | t | ƒ ƒ d  S(   Ns   Hello world
€�þÿ(   R4   RÍ   R…   R   (   R   Rh   t   bufR   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_from_bytearrayâ  s    c         C   sš   |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ |  j  t d ƒ d ƒ |  j  t t d ƒ ƒ d ƒ |  j  t t d ƒ ƒ d ƒ |  j  t t d ƒ ƒ d	 ƒ d  S(
   NR    s   b''Ry   s   b'x's   €s   b'\x80's   bytearray(b'')s   bytearray(b'x')s   bytearray(b'\x80')(   R   R8  R…   (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_to_strè  s    c         C   s}   d	 d
 d d g } x- | D]% \ } } |  j  | t | d ƒ ƒ q Wx4 t d d ƒ D]# } |  j t t d t | ƒ ƒ qR Wd  S(   Ns   Wonderful spams   Wonderful spam toos   ª  €s   \xaa\x00\000\200s   latin-1i€   i   s   b"%s"(   s   Wonderful spams   Wonderful spam(   s   Wonderful spam toos   Wonderful spam too(   s   ª  €s   ª  €(   s   \xaa\x00\000\200s   \xaa\x00\000\200(   R   R…   R&   R   t   SyntaxErrort   evalt   chr(   R   t   testsR   RW   R|   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_literalñ  s    	c         C   s  d } t  | ƒ } t  t d d ƒ ƒ } t d ƒ | t d ƒ <| j | d ƒ } |  j | d ƒ |  j | d ƒ | j | d ƒ } |  j | d ƒ |  j | d ƒ | j d  d ƒ } |  j | d ƒ | j d  d ƒ } |  j | d ƒ |  j t | j d  d  ƒ |  j t | j d  d  ƒ d  S(	   NR”   i    i   R  R�   RØ   t   heet   hllo(   R…   R&   RQ   R%  R   R=   R   R1   (   R   R   t   bat   rosettaR|   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_translateþ  s     c         C   s)   |  j  d j t d ƒ ƒ d d g ƒ d  S(   Ns   a bt    R5   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_bytes.pyt   test_split_bytearray  s    c         C   s)   |  j  d j t d ƒ ƒ d d g ƒ d  S(   Ns   a bRL  R5   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_bytes.pyt   test_rsplit_bytearray  s    (   R   R   R   R:  R;  R   R   t   requires_docstringsR>  R@  RA  RF  RK  RM  RN  (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR6  ®  s   						t   BytearrayPEP3137Testc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s
   t  | ƒ S(   N(   R…   (   R   Ry   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   marshal&  s    c         C   s°   |  j  d ƒ } xS d D]K } t | | ƒ } | d ƒ } |  j | | ƒ |  j | | k	 | d ƒ q WxD d D]< } t | ƒ } |  j | | ƒ |  j | | k	 | d ƒ ql Wd  S(   Nt   1234t   zfillRÕ   RÔ   RÓ   i   s"    returned self on a mutable objects   val.split()[0]s   val.rsplit()[0]s   val.partition(".")[0]s   val.rpartition(".")[2]s   val.splitlines()[0]s   val.replace("", "")s!    returned val on a mutable object(   RS  RÕ   RÔ   RÓ   (   s   val.split()[0]s   val.rsplit()[0]s   val.partition(".")[0]s   val.rpartition(".")[2]s   val.splitlines()[0]s   val.replace("", "")(   RQ  t   getattrR   RE   RC  (   R   t   valt   methnamet   methodt   newvalt   expr(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_returns_new_copy)  s     
(   R   R   RQ  RZ  (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyRP  %  s   	t   ByteArrayAsStringTestc           B   s;   e  Z e Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   d  S(   N(    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyR‡   C  s    c         C   s   d  S(   N(    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_expandtabsE  s    c         C   s   d  S(   N(    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt
   test_upperG  s    c         C   s   d  S(   N(    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt
   test_lowerI  s    c         C   s   d  S(   N(    (   R   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt	   test_hashK  s    (	   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_bytes.pyR[  <  s   				t   ByteArraySubclassc           B   s   e  Z RS(    (   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_bytes.pyR`  P  s   t   ByteArraySubclassTestc           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s:  |  j  t t t ƒ ƒ |  j t ƒ  t ƒ d \ } } t | ƒ t | ƒ } } |  j  | | k ƒ |  j  | | k ƒ |  j  | | k  ƒ |  j  | | k ƒ |  j  | | k ƒ |  j  | | k ƒ |  j  | | k	 ƒ |  j | | | | ƒ |  j | | | | ƒ |  j | | | | ƒ |  j  | d | d k ƒ d  S(   Nt   abcdt   efghi   (   Rb  Rc  (   RE   t
   issubclassR`  R…   t   assertIsInstanceR   (   R   R5   R   t   _at   _b(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt
   test_basicU  s    c         C   s…   t  d ƒ } t ƒ  j | g ƒ } |  j | | k	 ƒ |  j t | ƒ t k t | ƒ ƒ | j d g ƒ } |  j t | ƒ t k ƒ d  S(   NRb  (   R`  R…   RŒ   RE   R   (   R   t   s1t   s2t   s3(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyRŽ   m  s    "c         C   s÷   t  d ƒ } d | _ t  d ƒ | _ xÌ t t j d ƒ D]· } t j t j | | ƒ ƒ } |  j t	 | ƒ t	 | ƒ ƒ |  j
 | | ƒ |  j
 | j | j ƒ |  j
 | j | j ƒ |  j
 t | ƒ t | ƒ ƒ |  j
 t | j ƒ t | j ƒ ƒ q8 Wd  S(   NRb  i
   Rc  i   (   R`  Ry   R(  R&   RÄ   RÅ   RÇ   RÆ   t   assertNotEqualt   idR   R   (   R   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_bytes.pyt   test_picklez  s    	c         C   sç   t  d ƒ } d | _ t  d ƒ | _ x¼ t j t j f D]¨ } | | ƒ } |  j t | ƒ t | ƒ ƒ |  j | | ƒ |  j | j | j ƒ |  j | j | j ƒ |  j t | ƒ t | ƒ ƒ |  j t | j ƒ t | j ƒ ƒ q7 Wd  S(   NRb  i
   Rc  (	   R`  Ry   R(  t   copyt   deepcopyRl  Rm  R   R   (   R   R5   t   copy_methodR   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt	   test_copy‡  s    	c         C   sa   d t  f d „  ƒ  Y} | d d d ƒ} |  j | d ƒ | d d d d ƒ } |  j | d ƒ d  S(   Nt   subclassc           B   s   e  Z d  d „ Z RS(   i   c         _   s   t  j |  | | Ž d  S(   N(   R…   R   (   R   t   newargR   t   kwargs(    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.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_bytes.pyRs  •  s   i   t   sourceRb  Rt  (   R…   R   (   R   Rs  Ry   (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   test_init_override”  s
    (   R   R   Rh  RŽ   Rn  Rr  Rw  (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyRa  S  s
   				c           C   s   t  j j t t t t ƒ d  S(   N(   R   R   t   run_unittestRÞ   R[  Ra  RP  (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt	   test_main�  s
    	t   __main__(   R=  R3   Ré   Rõ   R   Ro  R	   RÄ   Rã   t   unittestt   test.test_supportR   t   test.string_testst   flagst   bytes_warningR   R   t   TestCaseR   RÞ   R6  RP  t   string_testst
   CommonTestt   NonStringModuleTestR[  R…   R`  Ra  Ry  R   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_bytes.pyt   <module>   s8   	ÿ üÿ ŒwJ		