ó
wŰjc           @   s  d  Z  d d l Z d d l Z d d l m Z d d l m Z d d l Z d d l Z d d l	 m
 Z
 m Z m Z d d l Z d e j f d     YZ d e j f d	     YZ g  Z d
 Z e j rŇ e d 7Z n  d e j f d     YZ e j e  d e j f d     YZ d e f d     YZ d e f d     YZ e j e  e j ryd e f d     YZ e j e  n  d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ e j e  d e f d     YZ e j e  d  e f d!     YZ e j e  d" e f d#     YZ  e j e   d$ e f d%     YZ! e j e!  d& e f d'     YZ" e j e"  d( e f d)     YZ# e j e#  d* e f d+     YZ$ e j e$  e j% d, e j f d-     Y Z& e j e&  d. e f d/     YZ' d0 e' f d1     YZ( e j e(  d2 e' f d3     YZ) e j e)  e* d4  Z+ e, d5 k re+ d6 e-  n  d S(7   s(   Test the arraymodule.
   Roger E. Masse
i˙˙˙˙N(   t   test_support(   t   proxy(   t   loadst   dumpst   HIGHEST_PROTOCOLt   ArraySubclassc           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_array.pyR      s   t   ArraySubclassWithKwargsc           B   s   e  Z d d   Z RS(   c         C   s   t  j  j |  |  d  S(   N(   t   arrayt   __init__(   t   selft   typecodet   newarg(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyR
      s    N(   R   R   t   NoneR
   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyR      s   t   cbBhHiIlLfdt   ut   MiscTestc           B   s,   e  Z d    Z e j d    Z d   Z RS(   c         C   s   |  j  t t j  |  j  t t j d d |  j  t t j d  |  j  t t j d  |  j  t t j d  |  j  t t j d  |  j  t t j d  d  S(   Nt   spami*   t   xxt    i   t   xs   (   t   assertRaisest	   TypeErrorR	   t
   ValueError(   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_bad_constructor   s    c         C   s\   |  j  t t j d  |  j  t t j d  |  j  t t j d  |  j  t t j d  d  S(   Nu   xxu    u   xu   Â(   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_array.pyt   test_unicode_constructor$   s    c         C   s   t  j  d  } | | (|  j t |  d  |  j t | |  d  |  j t | d  d  | | 7} |  j t |  d  d  S(   Nt   Bi    i   (   R	   t   assertEqualt   len(   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_array.pyt
   test_empty+   s    
(   R   R   R   R    t   requires_unicodeR   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyR      s   		t   BaseTestc           B   s  e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d    Z" d!   Z# d"   Z$ d#   Z% d$   Z& d%   Z' d&   Z( d'   Z) e* j+ e, e- d(  d)  d*    Z. d+   Z/ RS(,   c         C   s   |  j  | |  d  S(   N(   R   (   R   t   entry1t   entry2(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   assertEntryEqual@   s    c         C   s"   t  t  j |  j  d t t   S(   Ni   (   t	   typecodest   indexR   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_array.pyt   badtypecodeC   s    c         C   s^   t  j  |  j  } |  j | j |  j  |  j | j |  j  |  j t t  j  |  j d   d  S(   N(	   R	   R   R   t   assertGreaterEqualt   itemsizet   minitemsizeR   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_array.pyt   test_constructorG   s    c         C   sw   t  j  |  j  } | j |  j d  |  j t |  d  t  j  |  j |  j  } |  j t |  t |  j   d  S(   Ni    i   (   R	   R   t   appendt   exampleR   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_array.pyt   test_lenM   s
    c         C   sŹ   t  j  |  j |  j  } |  j t | j d  | j   } |  j | t  |  j t	 |  d  |  j | d t
 t f  |  j | d t
  |  j | d t	 |   d  S(   Ni*   i   i    i   (   R	   R   R-   R   R   t   buffer_infot   assertIsInstancet   tupleR   R   t   intt   long(   R   R   t   bi(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_buffer_infoU   s    c         C   s˛   t  j  |  j |  j  } |  j t | j d  | j d k rŽ t  j  |  j |  j  } | j   | j d k r |  j | |  n |  j | |  | j   |  j | |  n  d  S(   Ni*   i   i   i   i   (   i   i   i   i   (	   R	   R   R-   R   R   t   byteswapR)   R   t   assertNotEqual(   R   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_array.pyt   test_byteswap_   s    

c         C   sc   d d  l  } t j |  j |  j  } | j  |  } |  j t |  t |   |  j | |  d  S(   Ni˙˙˙˙(   t   copyR	   R   R-   R7   t   idR   (   R   R:   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt	   test_copyl   s
    c         C   sc   d d  l  } t j |  j |  j  } | j |  } |  j t |  t |   |  j | |  d  S(   Ni˙˙˙˙(   R:   R	   R   R-   t   deepcopyR7   R;   R   (   R   R:   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_deepcopys   s
    c         C   s	  xt  t d  D]đ } t j |  j |  j  } t t | |   } |  j t |  t |   |  j	 | |  t
 |  j |  j  } d | _ t t | |   } |  j t |  t |   |  j	 | |  |  j	 | j | j  |  j	 t |  t |   q Wd  S(   Ni   i
   (   t   rangeR   R	   R   R-   R   R   R7   R;   R   R   R   t   type(   R   t   protocolR   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_picklez   s    	c         C   sý   xö t  t d  D]ä } t j |  j  } t t | |   } |  j t |  t |   |  j | |  t	 |  j  } d | _
 t t | |   } |  j t |  t |   |  j | |  |  j | j
 | j
  |  j t |  t |   q Wd  S(   Ni   i
   (   R?   R   R	   R   R   R   R7   R;   R   R   R   R@   (   R   RA   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_pickle_for_empty_array   s    	c         C   sÓ  t  j  |  j |  j  } | j d |  j d  |  j t |  d t |  j   |  j | d | d  |  j t | j  |  j t | j d   |  j t | j d d   t  j  |  j |  j  } | j d |  j d  |  j | t  j  |  j |  j d  |  j d  |  j d   t  j  |  j |  j  } | j d |  j d  |  j | t  j  |  j |  j d  |  j   t  j  |  j |  j  } | j d |  j d  |  j | t  j  |  j |  j |  j d    d  S(   Ni    i   i˙˙˙˙iü˙˙ič  (	   R	   R   R-   t   insertR   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_array.pyt   test_insert   s0    #'$c         C   sŹ  t  j  |  j d |  j  } |  j t | j  |  j t | j t j    t j	 t j
  t t j
 d  } z| j |  | j   t  j  |  j  } t t j
 d  } |  j t | j  |  j t | j t j   t |  j   | j | t |  j   |  j | t  j  |  j |  j   |  j | |  | j | t |  j   |  j | |  |  j t | j | d  | j   Wd  | j s| j   n  t j	 t j
  Xd  S(   Ni   t   wbt   rbi   (   R	   R   R-   R   R   t   tofilet	   cStringIOt   StringIOR    t   unlinkt   TESTFNt   opent   closet   fromfileR   R   R7   t   EOFErrort   closed(   R   R   t   fR8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_tofromfileš   s2    
"	c         C   sl   t  j  |  j  } t t j d  } z& |  j t | j | t |  j	   Wd  | j
   t j t j  Xd  S(   NRF   (   R	   R   RM   R    RL   R   t   IOErrorRO   R   R-   RN   RK   (   R   R   RR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_fromfile_ioerrorÖ   s    &
c         C   s  t  j  |  j d |  j  } t t j d  } z˝ | j |  | j   t  j  |  j  } t t j d  } | j | t	 |  j   |  j
 | t  j  |  j |  j   |  j | |  | j | t	 |  j   |  j
 | |  | j   Wd  | j s| j   n  t j t j  Xd  S(   Ni   RF   RG   (   R	   R   R-   RM   R    RL   t   writeRN   RO   R   R   R7   RQ   RK   (   R   R   RR   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_filewriteá   s     
"	c         C   s­   t  j  |  j d |  j  } t  j  |  j  } |  j t | j d  |  j t | j  |  j t | j d  |  j t | j d  g  | j | j    |  j | |  d  S(   Ni   i*   (	   R	   R   R-   R   R   t   tolistt   fromlistR   R   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_tofromlistô   s    c         C   sŇ   t  j  |  j d |  j  } t  j  |  j  } |  j t | j d  |  j t | j  |  j t | j d  |  j t | j |  | j | j    |  j | |  | j	 d k rÎ |  j t | j d  n  d  S(   Ni   i*   i   R   (
   R	   R   R-   R   R   t   tostringt
   fromstringR   R   R)   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_tofromstringţ   s    c         C   sx   t  j  |  j d |  j  } |  j | t t |  i t  j  d 6  t  j  |  j  } |  j t |  d |  j  d  S(   Ni   R	   s   array('%s')(   R	   R   R-   R   t   evalt   repr(   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_array.pyt	   test_repr
  s    )c         C   s*   t  j  |  j d |  j  } t |  d  S(   Ni   (   R	   R   R-   t   str(   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_array.pyt   test_str  s    c         C   s   t  j  |  j |  j  } |  j | d k t  |  j | d k t  |  j | | k t  |  j | | k t  |  j | | k  t  |  j | | k t  |  j | | k t  |  j | | k t  t  j  |  j |  j  } t  j  |  j |  j  } |  j | d | k t  |  j | d | k t  |  j | d | k  t  |  j | d | k t  |  j | d | k t  |  j | d | k t  |  j | | k t  |  j | | k t  |  j | | k  t  |  j | | k t  |  j | | k t  |  j | | k t  |  j | | k t  |  j | | k t  |  j | | k  t  |  j | | k t  |  j | | k t  |  j | | k t  d  S(   Ni*   i   (   R	   R   R-   t   assertIst   Falset   Truet   smallerexamplet   biggerexample(   R   R   t   alt   ab(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_cmp  s:    c      	   C   sś   t  j  |  j |  j  t  j  |  j |  j d  d  d   } |  j | t  j  |  j |  j |  j d  d  d    t  j  |  j    } |  j t | j |  |  j t | j d  d  S(   Ni˙˙˙˙t   bad(   R	   R   R-   R   R'   R   R   t   __add__(   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_add9  s    &-c         C   s%  t  j  |  j |  j d  d  d   } | } | t  j  |  j d |  j  7} |  j | |  |  j | t  j  |  j |  j d  d  d  d |  j   t  j  |  j |  j  } | | 7} |  j | t  j  |  j |  j |  j   t  j  |  j    } |  j t | j |  |  j t | j	 d  d  S(   Ni˙˙˙˙i   Rk   (
   R	   R   R-   Rc   R   R'   R   R   Rl   t   __iadd__(   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt	   test_iaddF  s    % 1
 c         C   s  d t  j  |  j |  j  } |  j | t  j  |  j d |  j   t  j  |  j |  j  d } |  j | t  j  |  j |  j d   d t  j  |  j |  j  } |  j | t  j  |  j   d t  j  |  j |  j  } |  j | t  j  |  j   |  j t | j d  d  S(   Ni   i    i˙˙˙˙Rk   (   R	   R   R-   R   R   R   t   __mul__(   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_array.pyt   test_mul[  s"    c         C   sX  t  j  |  j |  j  } | } | d 9} |  j | |  |  j | t  j  |  j d |  j   | d 9} |  j | |  |  j | t  j  |  j   | d 9} |  j | |  |  j | t  j  |  j   | d 9} |  j | |  |  j | t  j  |  j   t  j  |  j |  j  } | d 9} |  j | t  j  |  j   |  j t | j d  d  S(   Ni   i    ič  i˙˙˙˙Rk   (   R	   R   R-   Rc   R   R   R   t   __imul__(   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt	   test_imulv  s(    




c         C   s+  t  j  |  j |  j  } |  j | d |  j d  |  j | d |  j d  |  j | d |  j d  |  j | d |  j d  |  j | t |  j  d |  j d  |  j | t |  j  |  j d  |  j t | j  |  j t | j t |  j   |  j t | j t |  j  d  d  S(   Ni    l    i˙˙˙˙l˙˙˙˙ i   (	   R	   R   R-   R$   R   R   R   t   __getitem__t
   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_array.pyt   test_getitem  s    (%c         C   s(  t  j  |  j |  j  } | d | d <|  j | d | d  t  j  |  j |  j  } | d | d <|  j | d | d  t  j  |  j |  j  } | d | d <|  j | d | d  t  j  |  j |  j  } | d | d <|  j | d | d  t  j  |  j |  j  } | d | t |  j  d <|  j | d | d  t  j  |  j |  j  } | d | t |  j  <|  j | d | d  |  j t | j  |  j t | j d   |  j t | j d d   |  j t	 | j t |  j  |  j d  |  j t	 | j t |  j  d |  j d  d  S(   Ni˙˙˙˙i    l    l˙˙˙˙ i   (
   R	   R   R-   R$   R   R   R   t   __setitem__R   Ru   (   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_array.pyt   test_setitem  s:    c         C   s  t  j  |  j |  j  } | d =|  j | t  j  |  j |  j d   t  j  |  j |  j  } | d =|  j | t  j  |  j |  j d    t  j  |  j |  j  } | t |  j  d =|  j | t  j  |  j |  j d    t  j  |  j |  j  } | t |  j  =|  j | t  j  |  j |  j d   |  j t | j  |  j t | j d   |  j t	 | j t |  j   |  j t	 | j t |  j  d  d  S(   Ni    i   i˙˙˙˙(
   R	   R   R-   R   R   R   R   t   __delitem__R   Ru   (   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_array.pyt   test_delitemĆ  s0    c         C   s˝  t  j  |  j |  j  } |  j | |  |  j | d t  j  |  j |  j d   |  j | d  t  j  |  j |  j d    |  j | d  t  j  |  j |  j d    |  j | d t  j  |  j |  j d   |  j | d d !t  j  |  j   |  j | d d !t  j  |  j   |  j | d t  j  |  j   |  j | d |  |  j | d  |  |  j | d  t  j  |  j   |  j | d d !|  |  j | d d !t  j  |  j   d  S(   Ni   i˙˙˙˙i   ič  iü˙˙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_array.pyt   test_getsliceč  s@    


c      
   C   s   t  j  |  j |  j  } d
 } xj | D]b } xY | D]Q } xH | d D]< } |  j t | | | |   t |  | | |   qC Wq2 Wq% Wd  S(   Ni    i   i   i   id   i˙˙˙˙iţ˙˙˙iá˙˙˙i˙˙˙(
   i    Ni   i   i   id   i˙˙˙˙iţ˙˙˙iá˙˙˙i˙˙˙(   R	   R   R-   R   R   t   list(   R   R   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_array.pyt   test_extended_getslice  s    c         C   sJ  t  j  |  j |  j  } | | d *|  j | t  j  |  j |  j |  j d   t  j  |  j |  j  } | | d *|  j | t  j  |  j |  j |  j d   t  j  |  j |  j  } | | d )|  j | t  j  |  j |  j d  |  j   t  j  |  j |  j  } | | d )|  j | t  j  |  j |  j d  |  j   t  j  |  j |  j  } | | d d +|  j | t  j  |  j |  j d  |  j |  j d   t  j  |  j |  j  } | | d )|  j | t  j  |  j d |  j   t  j  |  j |  j  } | | d )|  j | t  j  |  j |  j   t  j  |  j |  j  } | | d *|  j | t  j  |  j |  j   t  j  |  j |  j  } | | d *|  j | t  j  |  j d |  j   t  j  |  j |  j  } | | d d +|  j | t  j  |  j |  j d  |  j |  j d   t  j  |  j |  j  } | | d d +|  j | t  j  |  j d |  j   t  j  |  j |  j  } |  j t | j d d d   |  j t | j t	 d d  d   |  j t | j t	 d d  d   t  j  |  j
    } |  j t | j d d |  |  j t | j t	 d d  |  |  j t | j t	 d d  |  d  S(   Ni   i˙˙˙˙ič  i   iü˙˙i    iĐ  (   R	   R   R-   R   R   R   t   __setslice__R   Rw   t   sliceR'   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_setslice&  s    
$
$
$
$#



/"""c      
   C   s  d
 } x| D] } x÷ | D]ď } xć | d D]Ú } t j |  j |  j  } t |  } | | | |  } | j   | | | | |  <t j |  j |  | | | |  <|  j | t j |  j |   | | | |  =| | | |  =|  j | t j |  j |   q+ Wq Wq Wd  S(   Ni    i   i   i   id   i˙˙˙˙iţ˙˙˙iá˙˙˙i˙˙˙(
   i    Ni   i   i   id   i˙˙˙˙iţ˙˙˙iá˙˙˙i˙˙˙(   R   R	   R   R-   R|   t   reverseR   (   R   R}   R~   R   R   R   t   Lt   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_array.pyt   test_extended_set_del_slice  s    
"c         C   s   d |  j  } t j |  j |  } |  j t | j  x0 | D]( } |  j | j |  | j |   q< W|  j t | j d   |  j t | j |  j	  d  S(   Ni   (
   R-   R	   R   R   R   R&   R   R   R   t   outside(   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_array.pyt
   test_index  s    &c         C   sĄ   d |  j  } t j |  j |  } |  j t | j  x0 | D]( } |  j | j |  | j |   q< W|  j | j |  j  d  |  j | j d   d  d  S(   Ni   i    (	   R-   R	   R   R   R   t   countR   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_array.pyt
   test_count  s    &c         C   sŇ   x |  j  D]y } d |  j  } t j |  j |  } | j |  } | |  | | d } | j |  |  j | t j |  j |   q
 Wt j |  j |  j   } |  j t | j |  j  |  j t | j d   d  S(   Ni   i   (
   R-   R	   R   R&   t   removeR   R   R   R   R   (   R   R   R-   R   t   post   example2(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_remove§  s    #c         C   sÇ  t  j  |  j  } |  j t | j  t  j  |  j d |  j  } |  j t | j d d  |  j t | j d   |  j t | j t |   |  j t | j t |  d  |  j	 | j d  |  j d  |  j
 | t  j  |  j |  j d |  j   |  j	 | j d  |  j d  |  j
 | t  j  |  j |  j d d !|  j d |  j   |  j	 | j d  |  j d  |  j	 | j   |  j d  |  j
 | t  j  |  j |  j d |  j d    d  S(   Ni   i*   i   i    i   i˙˙˙˙(   R	   R   R   Ru   t   popR-   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_array.pyt   test_popľ  s(    ! $ 2 c         C   sk   t  j  |  j |  j  } |  j t | j d  | j   |  j | t  j  |  j |  j d  d  d    d  S(   Ni*   i˙˙˙˙(   R	   R   R-   R   R   R   R   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_reverseĐ  s    
c      	   C   su  t  j  |  j |  j  } |  j t | j  | j t  j  |  j |  j d  d  d    |  j | t  j  |  j |  j |  j d  d  d    t  j  |  j |  j  } | j |  |  j | t  j  |  j |  j |  j   t  j  |  j    } |  j t | j |  t  j  |  j |  j  } | j |  j d  d  d   |  j | t  j  |  j |  j |  j d  d  d    d  S(   Ni˙˙˙˙(   R	   R   R-   R   R   t   extendR   R'   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_extendŮ  s$    ,- c         C   sŔ   t  j  |  j t |  j   } t  j  |  j |  j  } |  j | |  |  j t t  j  |  j d  d d d     Y} |  j t t  j  |  j |    d   } |  j t t  j  |  j |    d  S(   Ni
   t   Ac           B   s   e  Z d    Z RS(   c         S   s
   t   d  S(   N(   t   UnicodeError(   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   __iter__ý  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_array.pyR   ü  s   c           s   s   t   d  Vd  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_array.pyR     s    (    (   R	   R   t   iterR-   R   R   R   R   (   R   R   R8   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt'   test_constructor_with_iterable_argumentó  s    	c         C   sm   y d d  l  } Wn t k
 r0 |  j d  n Xt j |  j  } t |  g } | j |  | j   d  S(   Ni˙˙˙˙s   gc module not available(   t   gct   ImportErrort   skipTestR	   R   R   R,   t   collect(   R   R   R   t   l(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_coveritertraverse  s    c         C   sY   t  j  |  j |  j  } t j    t |  } Wd  QX|  j | d | j   d  d  S(   Ni    (   R	   R   R-   R    t   check_py3k_warningst   bufferR   R[   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_buffer  s    c         C   s]   t  j  |  j |  j  } t |  } |  j | j   | j    d  } |  j t t	 |  d  S(   N(
   R	   R   R-   R   R   R[   R   R   t   ReferenceErrorR   (   R   t   st   p(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_weakref  s
    t   getrefcounts   test needs sys.getrefcount()c         C   s   x, t  d  D] } t j d t  d   } q Wt j d  } x, t  d  D] } t j d t  d   } qK W|  j | t j d   d  S(   Ni
   R   i@   (   R?   R	   t   sysR¨   R   (   R   t   iR8   t   rc(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_bug_782369  s    c         C   s:   t  j   ( t  j d d t  t d d d Wd  QXd  S(   Nt   ignoreR   R8   R   i   (   t   warningst   catch_warningst   filterwarningst   DeprecationWarningR   (   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_subclass_with_kwargs(  s    (0   R   R   R$   R'   R+   R.   R5   R9   R<   R>   RB   RC   RE   RS   RU   RW   RZ   R]   R`   Rb   Rj   Rm   Ro   Rq   Rs   Rv   Rx   Rz   R{   R   R   R   R   R   R   R   R   R   R   R    RŁ   R§   t   unittestt
   skipUnlesst   hasattrRŠ   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_array.pyR!   7   sV   						
						!				
				$						'	"	2		[												
			t
   StringTestc           B   s   e  Z d    Z RS(   c         C   sO   t  t |   j   t j |  j |  j  } |  j t | j d |  j d   d  S(   Ni    i   (	   t   superRś   Rx   R	   R   R-   R   R   Rw   (   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_array.pyRx   1  s    (   R   R   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_array.pyRś   /  s   t   CharacterTestc           B   sG   e  Z d  Z d Z d Z d Z d Z d Z d   Z e	 j
 d    Z RS(   t   cs   azAZ ţs   azAY ţs   azAZ ˙t   3i   c         C   s   d t  j  f d     Y} | d  } | j   |  j | j   d  |  j | j d  d | _ |  j | j d  |  j | j j   d g  d  S(   Nt   EditableStringc           B   s/   e  Z d    Z d d  Z d   Z d   Z RS(   c         _   s   t  j  j |  d |  S(   NRš   (   R	   t   __new__(   t   clsRĽ   t   argst   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_array.pyRź   @  s    t   bluec         S   s   | |  _  d  S(   N(   t   color(   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_array.pyR
   C  s    c         S   s#   t  j  d |  j   j    |  (d  S(   NRš   (   R	   R[   t   strip(   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyRÂ   F  s    c         S   s   d |  j    S(   Ns   EditableString(%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_array.pyt   __repr__I  s    (   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_array.pyRť   ?  s   		s   	test
t   testRŔ   t   redRÁ   (   R	   RÂ   R   R[   RÁ   t   __dict__t   keys(   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_array.pyt   test_subbclassing>  s    
	c         C   sK   t  j  |  j |  j  } |  j t | j t d   |  j t | j  d  S(   NR   (   R	   R   R-   R   R   t   fromunicodet   unicodet	   tounicode(   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_array.pyt   test_nounicodeU  s    (   R   R   R   R-   Rf   Rg   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_array.pyR¸   6  s   	t   UnicodeTestc           B   sV   e  Z d  Z e d d  Z e d d  Z e d d  Z e d  Z d Z d   Z	 RS(   R   s   \x01\u263a\x00\ufeffs   unicode-escapes   \x01\u263a\x00\ufefes   \x01\u263a\x01\ufeffRş   i   c         C   s  |  j  t t j d t d d   t j d t d d   } | j t d d   | j t d d   | j t d d   | j t d	 d   | j   } |  j | t d
 d   t d d  } t j d |  } |  j t |  d  |  j  t | j  d  S(   NR8   t   foot   asciiR   s   \xa0\xc2\u1234s   unicode-escapet    R   s   \x11abc\xff\u1234s    \xa0\xc2\u1234 \x11abc\xff\u1234s&   \x00="\'a\\b\x80\xff\u0000\u0001\u1234s1   array('u', u'\x00="\'a\\b\x80\xff\x00\x01\u1234')(   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_array.pyt   test_unicodef  s     "	(
   R   R   R   RĘ   R-   Rf   Rg   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_array.pyRÍ   ^  s   t
   NumberTestc           B   s>   e  Z d    Z d   Z d   Z d   Z d   Z d   Z RS(   c      	   C   s  t  j  |  j t d   } |  j | d  d  d   |  |  j | d  d  d  t  j  |  j d d d g   |  j | d d  d  t  j  |  j d d g   |  j | d  d  d  t  j  |  j d d d d d g   |  j | d  d  d  t  j  |  j d d d g   |  j | d d  d  t  j  |  j d d g   |  j | d	 d
 d   |  |  j | d
 d	 d  | d  d  d   |  j | d d d  t  j  |  j d d d g   |  j | d d d  t  j  |  j g    |  j | d d d  t  j  |  j g    d  S(   Ni   i   i    i   i   i   i˙˙˙˙iţ˙˙˙i˙˙˙id   l˙˙˙˙d l   d l    ič  iĐ  iü˙˙i0ř˙˙(   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_array.pyt   test_extslice  s    52;52*5,c         C   s  t  j  |  j t d   } | d  d  d  =|  j | t  j  |  j d d g   t  j  |  j t d   } | d d  d  =|  j | t  j  |  j d d d g   t  j  |  j t d   } | d d  d  =|  j | t  j  |  j d d d d g   t  j  |  j t d   } | d  d  d	  =|  j | t  j  |  j d d d d d d
 d d d g	   t  j  |  j t d   } | d d  d  =d  S(   Ni   i   i   i   i    i   iţ˙˙˙i
   ič  i   i   i   i	   iM  l                                                (   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_array.pyt   test_delslice  s    %(+:c         C   sÖ  t  j  |  j t d   } t  j  |  j d g d  | d  d  d  <|  j | t  j  |  j d d d d d d d d d d g
   t  j  |  j t d   } t  j  |  j d g d  | d  d  d	  <|  j | t  j  |  j d
 d d d d d d d d d g
   t  j  |  j t d   } | | d  d  d  <|  j | t  j  |  j d d d d
 g   t  j  |  j t d   } | } | } t  j  |  j t d   } | | d d +| | t d d  <| | d d d   <d  S(   Ni
   i*   i   i   i   i   i   i	   iü˙˙˙i    i   i   i   i˙˙˙˙(   R	   R   R?   R   R   R   (   R   R   R8   Rš   t   ins(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_assignment   s     )=)=+c         C   s   t  j  |  j t d   } |  j t |  t d   t  j  |  j d g  } |  j | d | k t  |  j | d | k t  d  S(   Ni
   i   i˙˙˙˙i    (   R	   R   R?   R   R|   Re   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_iterationcontains˛  s
    c         C   sČ   t  j  |  j | g  } | | d <|  j t t  j  |  j | d g  |  j t | j d | d  t  j  |  j | g  } | | d <|  j t t  j  |  j | d g  |  j t | j d | d  d  S(   Ni    i   (   R	   R   R   t   OverflowErrorRw   (   R   t   lowert   upperR   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   check_overflowš  s    
#
#c         C   st   |  j  } d t j f d     Y} | |  j  d d d d g d  } |  j | d d  |  j t t | d	 d
  d  S(   Nt   ExaggeratingArrayc           B   s,   e  Z d  g Z d   Z d   Z d   Z RS(   t   offsetc         S   s   t  j  j |  | |  S(   N(   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_array.pyRź   Î  s    c         S   s   | |  _  d  S(   N(   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_array.pyR
   Ń  s    c         S   s   t  j  j |  |  |  j S(   N(   R	   Rt   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_array.pyRt   Ô  s    (   R   R   t	   __slots__Rź   R
   Rt   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyRÜ   Ë  s   			i   i   i   i   i   i    RÁ   RŔ   (   R   R	   R$   R   t   AttributeErrort   setattr(   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_array.pyt   test_subclassingÉ  s
    	!(   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_array.pyRŇ     s   					t   SignedNumberTestc           B   sV   e  Z d  d d d d g Z d  d d d d g Z d  d d d d g Z d Z d   Z RS(	   i˙˙˙˙i    i   i*   i   i~   i+   i   c         C   sn   t  j  |  j  } d t t d | j d d   } t t d | j d d   d } |  j | |  d  S(   Ni˙˙˙˙i   i   i   l    (   R	   R   R3   t   powR)   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_array.pyt   test_overflowâ  s    $$(   R   R   R-   Rf   Rg   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_array.pyRâ   Ü  s
   t   UnsignedNumberTestc           B   s   e  Z d  d d d d d g Z d  d d d d d g Z d  d d d d d g Z d Z d	   Z e j d
    Z	 e j d    Z
 RS(   i    i   i   i   i*   i˙   iţ   i+   iŞ   c         C   sL   t  j  |  j  } d } t t d | j d   d } |  j | |  d  S(   Ni    i   i   l    (   R	   R   R3   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_array.pyRä   î  s     c         C   sY   t  j  |  j |  j  } t j d  } | j   d | j } t j |  | | |  d  S(   Nt   4Pi   (   R	   R   R-   R    t   calcvobjsizeR/   R)   t   check_sizeof(   R   R   t   basesizet   buffer_size(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_sizeof_with_bufferô  s    c         C   s8   t  j  |  j  } t j d  } t j |  | |  d  S(   NRć   (   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_array.pyt   test_sizeof_without_bufferű  s    (   R   R   R-   Rf   Rg   R   Rä   R    t   cpython_onlyRë   Rě   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyRĺ   č  s   	t   ByteTestc           B   s   e  Z d  Z d Z RS(   R8   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_array.pyRî     s   t   UnsignedByteTestc           B   s   e  Z d  Z d Z RS(   R   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_array.pyRď     s   t	   ShortTestc           B   s   e  Z d  Z d Z RS(   t   hi   (   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_array.pyRđ     s   t   UnsignedShortTestc           B   s   e  Z d  Z d Z RS(   t   Hi   (   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_array.pyRň     s   t   IntTestc           B   s   e  Z d  Z d Z RS(   RŞ   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_array.pyRô     s   t   UnsignedIntTestc           B   s   e  Z d  Z d Z RS(   t   Ii   (   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_array.pyRő     s   t   LongTestc           B   s   e  Z d  Z d Z RS(   R   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_array.pyR÷      s   t   UnsignedLongTestc           B   s   e  Z d  Z d Z RS(   R   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_array.pyRř   %  s   t   UnicodeTypecodeTestc           B   s   e  Z d    Z RS(   c         C   sV   xO t  D]G } t j t |   } |  j | j |  |  j t | j  t  q Wd  S(   N(   R%   R	   RĘ   R   R   Rc   R@   Ra   (   R   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_unicode_typecode-  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_array.pyRů   +  s   t   FPTestc           B   s_   e  Z d  d d d d g Z d  d d d d g Z d  d d d d g Z d Z d   Z d	   Z RS(
   g      EŔi    i*   g     jř@g    _ Âg    _ Âg    _ Bi   c         C   s   |  j  | |  d  S(   N(   t   assertAlmostEqual(   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_array.pyR$   ;  s    c         C   sž   t  j  |  j |  j  } |  j t | j d  | j d k rş t  j  |  j |  j  } | j   | j d k r |  j | |  n |  j | j	   | j	    | j   |  j | |  n  d  S(   Ni*   i   i   i   i   (   i   i   i   i   (
   R	   R   R-   R   R   R6   R)   R   R7   R[   (   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyR9   >  s    

(   R   R   R-   Rf   Rg   R   R$   R9   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyRű   5  s   	t	   FloatTestc           B   s   e  Z d  Z d Z RS(   RR   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_array.pyRý   N  s   t
   DoubleTestc           B   s   e  Z d  Z d Z d   Z RS(   t   di   c         C   s´   d d l  m } t j d d g d  } y | | d d 9} Wn t k
 rR n X|  j d  t j d d d d g  } y | | d	 d Wn t k
 r˘ n X|  j d  d  S(
   Ni˙˙˙˙(   t   maxsizeR˙   i   i   s6   Array of size > maxsize created - MemoryError expectedgËII
ż@gńÔČSű!	@i   (   RŠ   R   R	   t   MemoryErrort   fail(   R   R   R   R8   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   test_alloc_overflowW  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_array.pyRţ   S  s   c         C   s   d d  l  } t j t   |  r t | d  r d d  l } d  g d } xA t t |   D]- } t j t   | j	   | j
   | | <qZ W| GHn  d  S(   Ni˙˙˙˙t   gettotalrefcounti   (   RŠ   R    t   run_unittestt   testsRľ   R   R   t   xrangeR   R   R  (   t   verboseRŠ   R   t   countsRŞ   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt	   test_mainj  s    
t   __main__R  (.   t   __doc__Rł   RŽ   RÄ   R    t   weakrefR   R	   RI   t   cPickleR   R   R   RŠ   R   R   R  R%   t   have_unicodet   TestCaseR   R,   R!   Rś   R¸   RÍ   RŇ   Râ   Rĺ   Rî   Rď   Rđ   Rň   Rô   Rő   R÷   Rř   R    Rů   Rű   Rý   Rţ   R   R
  R   Re   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_array.pyt   <module>   sl   	˙ ˙ ú%	]	