ó
‹wÛjc           @   sà  d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l Z y d  d l Z Wn e k
 ri d Z n Xd e j	 f d „  ƒ  YZ
 d e j	 f d „  ƒ  YZ d e j	 f d „  ƒ  YZ d	 e j	 f d
 „  ƒ  YZ d e j	 f d „  ƒ  YZ d e j	 f d „  ƒ  YZ d e j	 f d „  ƒ  YZ d Z e j d k r4d n d Z e j d k rOd n d Z e j e e j k d ƒ d e j	 f d „  ƒ  Yƒ Z e j e j e d ƒ d e j	 f d „  ƒ  Yƒ ƒ Z d „  Z e d k rÜe ƒ  n  d S(    iÿÿÿÿ(   t   test_supportNt   IntTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sÁ   t  j } x¡ | r¬ xŠ | | f D]{ } t j | ƒ } t j | ƒ } |  j | | ƒ t j | t t j	 d ƒ ƒ t j
 t t j	 d ƒ ƒ } |  j | | ƒ q  W| d ?} q Wt j t j	 ƒ d  S(   Nt   wbt   rbi   (   t   syst   maxintt   marshalt   dumpst   loadst   assertEqualt   dumpt   fileR    t   TESTFNt   loadt   ost   unlink(   t   selft   nt   expectedt   st   got(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_ints   s    		c         C   sŸ   d „  } d
 } | d } x~ | | | | d ?f D]d } x[ | r– d | | d ƒ } t  j | ƒ } |  j | | ƒ | d k r‰ d } q< | d L} q< Wq3 Wd  S(   Nc         S   sK   g  } x5 t  | ƒ D]' } | j t |  d @ƒ ƒ |  d L}  q Wd j | ƒ S(   Niÿ   i   t    (   t   ranget   appendt   chrt   join(   t   valuet   nbytest   bytest   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_marshal.pyt   to_little_endian_string!   s
    l    i?   i   t   Ii   iÿÿÿÿi    l            l   ÿÿÿÿ (   R   R   R	   (   R   R   t   maxint64t   minint64t   baseR   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt
   test_int64   s    			c         C   sÂ   x» t  t f D]­ } t j t j | ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ t j | t t	 j
 d ƒ ƒ t j t t	 j
 d ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ q Wd  S(   NR   R   (   t   Truet   FalseR   R   R   R	   t   typeR
   R   R    R   R   (   R   t   bt   new(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_bool5   s    (   t   __name__t
   __module__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_marshal.pyR      s   		t   FloatTestCasec           B   s   e  Z d  „  Z RS(   c         C   sƒ  d } t  j d } x³ | | k rÈ x– | | f D]‡ } t | ƒ } t j | ƒ } t j | ƒ } |  j | | ƒ t j | t t	 j
 d ƒ ƒ t j t t	 j
 d ƒ ƒ } |  j | | ƒ q0 W| d :} q Wd } t j | d ƒ } t j | ƒ } |  j | | ƒ t j | d ƒ } t j | ƒ } |  j | | ƒ t  j d	 } x.| | k  rnx| | f D]} t | ƒ } t j | ƒ } t j | ƒ } |  j | | ƒ t j | d ƒ } t j | ƒ } |  j | | ƒ t j | t t	 j
 d ƒ ƒ t j t t	 j
 d ƒ ƒ } |  j | | ƒ t j | t t	 j
 d ƒ d ƒ t j t t	 j
 d ƒ ƒ } |  j | | ƒ q[W| d 9} qAWt j t	 j
 ƒ d  S(
   NgÙ}ÚõÐò¾:gŸ6˜Ò«ôsR   R   gS£’:Ý^@g        i   i   gì�Z1%(   R   R   t   floatR   R   R   R	   R
   R   R    R   R   R   R   (   R   t   smallR   R   t   fR   R   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_floats@   sJ    (   R+   R,   R1   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyR-   ?   s   t   StringTestCasec           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   sÜ   xÅ d d d d d g D]­ } t  j t  j | ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ t  j | t t j d ƒ ƒ t  j	 t t j d ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ q Wt
 j t j ƒ d  S(   Nu    u   AndrÃ¨ Previnu   abcu    i'  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_marshal.pyt   test_unicodep   s     c         C   sÜ   xÅ d d d d d g D]­ } t  j t  j | ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ t  j | t t j d ƒ ƒ t  j	 t t j d ƒ ƒ } |  j | | ƒ |  j t | ƒ t | ƒ ƒ q Wt
 j t j ƒ d  S(   NR   s   Andrè Prevint   abct    i'  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_marshal.pyt   test_string{   s     c         C   sÌ   xµ d d d d d g D]� } t  j d t f ƒ � t | ƒ } Wd  QXt j t j | ƒ ƒ } |  j | | ƒ t j | t	 t  j
 d ƒ ƒ t j t	 t  j
 d ƒ ƒ } |  j | | ƒ q Wt j t  j
 ƒ d  S(	   NR   s   Andrè PrevinR4   R5   i'  s   buffer.. not supportedR   R   (   R    t   check_py3k_warningst   DeprecationWarningt   bufferR   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_marshal.pyt   test_buffer†   s    	(   R+   R,   R3   R6   R:   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyR2   o   s   		t   ExceptionTestCasec           B   s   e  Z d  „  Z RS(   c         C   s,   t  j t  j t ƒ ƒ } |  j t | ƒ d  S(   N(   R   R   R   t   StopIterationR	   (   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_marshal.pyt   test_exceptions“   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_marshal.pyR;   ’   s   t   CodeTestCasec           B   s   e  Z d  „  Z RS(   c         C   s8   t  j j } t j t j | ƒ ƒ } |  j | | ƒ d  S(   N(   R;   R=   t	   func_codeR   R   R   R	   (   R   t   coR)   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_code˜   s    (   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_marshal.pyR>   —   s   t   ContainerTestCasec           B   sm   e  Z i d  d 6d d 6d d 6d d 6d	 g d
 6d d 6e d 6d d 6Z d „  Z d „  Z d „  Z d „  Z RS(   s   foo@bar.baz.spamt   astringgHázns¼@t   afloati   i   t   anintl    t
   ashortlongs   .zyx.41t   alisti
   t   atuplet   abooleanu   AndrÃ¨ Prevint   aunicodec         C   s�   t  j t  j |  j ƒ ƒ } |  j |  j | ƒ t  j |  j t t j d ƒ ƒ t  j	 t t j d ƒ ƒ } |  j |  j | ƒ t
 j t j ƒ d  S(   NR   R   (   R   R   R   t   dR	   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_marshal.pyt	   test_dict§   s    c         C   s’   |  j  j ƒ  } t j t j | ƒ ƒ } |  j | | ƒ t j | t t j	 d ƒ ƒ t j
 t t j	 d ƒ ƒ } |  j | | ƒ t j t j	 ƒ d  S(   NR   R   (   RK   t   itemsR   R   R   R	   R
   R   R    R   R   R   R   (   R   t   lstR)   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_list¯   s    c         C   s˜   t  |  j j ƒ  ƒ } t j t j | ƒ ƒ } |  j | | ƒ t j | t t	 j
 d ƒ ƒ t j t t	 j
 d ƒ ƒ } |  j | | ƒ t j t	 j
 ƒ d  S(   NR   R   (   t   tupleRK   t   keysR   R   R   R	   R
   R   R    R   R   R   R   (   R   t   tR)   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt
   test_tuple¸   s    c         C   sá   xÚ t  t f D]Ì } | |  j j ƒ  ƒ } t j t j | ƒ ƒ } |  j | | ƒ |  j t	 | | ƒ ƒ |  j
 t | ƒ t | ƒ ƒ t j | t t j d ƒ ƒ t j t t j d ƒ ƒ } |  j | | ƒ t j t j ƒ q Wd  S(   NR   R   (   t   sett	   frozensetRK   RQ   R   R   R   R	   t
   assertTruet
   isinstancet   assertNotEqualt   idR
   R   R    R   R   R   R   (   R   t   constructorRR   R)   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_setsÁ   s    i   (   s   .zyx.41(
   s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41s   .zyx.41(   R+   R,   R&   RK   RL   RO   RS   R[   (    (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyRB   �   s   


					t   BugsTestCasec           B   sY   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         C   s   t  j d g d ƒ d  S(   Ni€   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_marshal.pyt   test_bug_5888452Î   s    c         C   sS   |  j  t t j d ƒ |  j  t t j d ƒ |  j  t t j t j d ƒ d  ƒ d  S(   Nt   0R0   l    iÿÿÿÿ(   t   assertRaisest	   ExceptionR   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_marshal.pyt   test_patch_873224Ò   s    c         C   sN   |  j  t j t j d d ƒ ƒ d ƒ |  j  t j t j d d ƒ ƒ d ƒ d  S(   Ni   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_marshal.pyt   test_version_argument×   s    %c         C   sY   xR g  t  d ƒ D] } t | ƒ ^ q D]+ } y t j | ƒ Wq& t k
 rP q& Xq& Wd  S(   Ni   (   R   R   R   R   R`   (   R   R   t   c(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   test_fuzzÜ   s
    ,c            s9   d „  } | d t  j ƒ ‡  f d †  } | d | ƒ d  S(   Nc         S   sT   | d |  d ƒ | d |  d ƒ | d |  d d |  ƒ | d |  d ƒ d  S(   Ns   (   t   Ns   [   s   {NR^   s   >   (    (   Re   t   check(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt	   run_testsæ   s    id   c            s   ˆ  j  t t j |  ƒ d  S(   N(   R_   t
   ValueErrorR   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_marshal.pyRf   ó   s    i   i   i   (   R   R   (   R   Rg   Rf   (    (   R   s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_loads_recursionå   s    	c         C   s  g  } } t  j d k r1 t t d ƒ r1 d } n d } x2 t | d ƒ D]  } | j d g ƒ | d } qH Wt j | ƒ } t j | ƒ } |  j	 t
 | ƒ t
 | ƒ ƒ |  j	 t
 | d ƒ t
 | d ƒ ƒ |  j	 t
 | d ƒ t
 | d ƒ ƒ | j d g ƒ |  j t t j | ƒ d  S(   Nt   ntt   gettotalrefcountiè  iÐ  i   i    iÿÿÿÿ(   R   t   namet   hasattrR   R   R   R   R   R   R	   t   lenR_   Rh   (   R   t   headt   lastt   MAX_MARSHAL_STACK_DEPTHR   t   datat   new_head(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_recursion_limit÷   s    
	$$c      	   C   s^   xW t  t t t t t t t t f	 D]4 } t	 d | f i  ƒ } |  j
 t t j | ƒ  ƒ q" Wd  S(   Nt   subtyp(   t   intt   longR.   t   complexRP   t   listt   dictRT   RU   R'   R_   Rh   R   R   (   R   t   typRu   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_exact_type_match  s    (c         C   s'   t  d ƒ } d | } t j | ƒ d  S(   Ng    €„.AR4   (   Rv   R   R   (   R   t   sizet
   testString(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_large_marshal  s    
c         C   s    d } |  j  t t j | ƒ d  S(   Ns	   l       (   R_   Rh   R   R   (   R   t   invalid_string(    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   test_invalid_longs   s    (   R+   R,   R]   Ra   Rb   Rd   Ri   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_marshal.pyR\   Í   s   									i   i   iÿÿ  i   Iÿÿÿÿ    i   s!   test cannot run on 32-bit systemst   LargeValuesTestCasec           B   sP  e  Z d  „  Z e j d e d d d e ƒ d „  ƒ Z e j d e d e d d e ƒ d „  ƒ Z	 e j d e d e
 d e ƒ d „  ƒ Z e j d e d e
 d e ƒ d	 „  ƒ Z e j d e d e
 d
 e j e d ƒ d e ƒ d „  ƒ Z e j d e d e
 d
 e j e d ƒ d e ƒ d „  ƒ Z e j d e d d d e ƒ d „  ƒ Z RS(   c      	   C   sR   t  t j d ƒ } |  j t j t j ƒ | � |  j t t j | | ƒ Wd  QXd  S(   NR   (	   t   openR    R   t
   addCleanupR   R_   Rh   R   R
   (   R   Rr   R0   (    (    s‡   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_marshal.pyt   check_unmarshallable+  s    R}   t   memusei   t   dry_runc         C   s   |  j  d | ƒ d  S(   Nt   x(   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_marshal.pyR6   1  s    i   c         C   s   |  j  d | ƒ d  S(   Nu   x(   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_marshal.pyR3   5  s    c         C   s   |  j  d | ƒ d  S(   N(   N(   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_marshal.pyRS   :  s    c         C   s   |  j  d  g | ƒ d  S(   N(   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_marshal.pyRO   ?  s    i   c         C   s   |  j  t t | ƒ ƒ ƒ d  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_marshal.pyt   test_setD  s    c         C   s   |  j  t t | ƒ ƒ ƒ d  S(   N(   R…   RU   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_marshal.pyt   test_frozensetJ  s    c         C   s   |  j  t | ƒ ƒ d  S(   N(   R…   t	   bytearray(   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_marshal.pyt   test_bytearrayP  s    (   R+   R,   R…   R    t   precisionbigmemtestt
   LARGE_SIZER&   R6   t   character_sizeR3   t   pointer_sizeRS   RO   R   t	   getsizeofRŠ   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_marshal.pyR‚   )  s   	's   requires _testcapit   CAPI_TestCasec           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   xx t  t j d ƒ D]c } t j d t j | ƒ t t j d ƒ � } | j ƒ  } Wd  QXt j	 t j ƒ |  j
 | d ƒ q Wd  S(   Ni   ixV4R   s   xV4(   R   R   t   versiont	   _testcapit   pymarshal_write_long_to_fileR    R   Rƒ   t   readR   R	   (   R   t   vR0   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_marshal.pyt   test_write_long_to_fileY  s    c         C   s¤   d d d d d d d f } x� t  t j d	 ƒ D]l } t j | t j | ƒ t t j d
 ƒ � } | j ƒ  } Wd  QXt j	 t j ƒ |  j
 t j | ƒ | ƒ q0 Wd  S(   Ns   \u20acR4   i{   gÍÌÌÌÌÌF@i   y               @s
   long line iè  i   R   y      @       @(   R   R   R”   R•   t   pymarshal_write_object_to_fileR    R   Rƒ   R—   R   R	   R   (   R   t   objR˜   R0   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_marshal.pyt   test_write_object_to_filea  s    c         C   st   t  t j d ƒ � } | j d ƒ Wd  QXt j t j ƒ \ } } t j t j ƒ |  j | d ƒ |  j | d ƒ d  S(   NR   s   4xxxxi4  i   (   Rƒ   R    R   t   writeR•   t   pymarshal_read_short_from_fileR   R	   (   R   R0   t   rt   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_marshal.pyt   test_read_short_from_filej  s    c         C   st   t  t j d ƒ � } | j d ƒ Wd  QXt j t j ƒ \ } } t j t j ƒ |  j | d ƒ |  j | d ƒ d  S(   NR   s   xV4xxxxixV4i   (   Rƒ   R    R   R�   R•   t   pymarshal_read_long_from_fileR   R	   (   R   R0   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_marshal.pyt   test_read_long_from_filer  s    c         C   s­   d d d d d
 f } x‘ t  t j d ƒ D]| } t j | | ƒ } t t j d ƒ � } | j | d	 ƒ Wd  QXt j	 t j ƒ \ } } t j
 t j ƒ |  j | | ƒ q) Wd  S(   Ns   \u20acR4   i{   gÍÌÌÌÌÌF@i   y               @i   R   t   xxxxy      @       @(   R   R   R”   R   Rƒ   R    R   R�   R•   t$   pymarshal_read_last_object_from_fileR   R	   (   R   R›   R˜   Rr   R0   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_marshal.pyt   test_read_last_object_from_filez  s    c         C   sÃ   d d d d d
 f } x§ t  t j d ƒ D]’ } t j | | ƒ } t t j d ƒ � } | j | d	 ƒ Wd  QXt j	 t j ƒ \ } } t j
 t j ƒ |  j | | ƒ |  j | t | ƒ ƒ q) Wd  S(   Ns   \u20acR4   i{   gÍÌÌÌÌÌF@i   y               @i   R   R¤   y      @       @(   R   R   R”   R   Rƒ   R    R   R�   R•   t   pymarshal_read_object_from_fileR   R	   Rn   (   R   R›   R˜   Rr   R0   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_marshal.pyt   test_read_object_from_file„  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_marshal.pyR“   U  s   						
c        
   C   s)   t  j t t t t t t t t	 t
 ƒ	 d  S(   N(   R    t   run_unittestR   R-   R2   R>   RB   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_marshal.pyt	   test_main�  s    	t   __main__I   €    (   t   testR    R   R   t   unittestR   R•   t   ImportErrorR‰   t   TestCaseR   R-   R2   R;   R>   RB   R\   R�   t
   maxunicodeR�   t   maxsizeR‘   t   skipIfR‚   t   cpython_onlyt
   skipUnlessR“   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_marshal.pyt   <module>   s4   
10#0X+9	