ó
‹wÛjc           @  sˆ  d  Z  d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l 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 m Z m Z d d l m Z d d l m Z 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e Z n Xy d d l  Z  Wn e k
 rse Z  n Xe! Z" e j# Z$ d	 „  Z% d
 „  Z& d f  d „  ƒ  YZ' d e' e j( f d „  ƒ  YZ) d e' e j( f d „  ƒ  YZ* d e' f d „  ƒ  YZ+ d e+ e j( f d „  ƒ  YZ, d e+ e j( f d „  ƒ  YZ- d e+ f d „  ƒ  YZ. d e. e j( f d „  ƒ  YZ/ d e. e j( f d „  ƒ  YZ0 d e+ f d „  ƒ  YZ1 d e1 e j( f d  „  ƒ  YZ2 d! e1 e j( f d" „  ƒ  YZ3 d# f  d$ „  ƒ  YZ4 d% e4 e j5 f d& „  ƒ  YZ6 d' e4 e j5 f d( „  ƒ  YZ7 d) f  d* „  ƒ  YZ8 d+ e8 e j( f d, „  ƒ  YZ9 d- e8 e j( f d. „  ƒ  YZ: d/ e	 j; f d0 „  ƒ  YZ< d1 e< f d2 „  ƒ  YZ= d3 e< f d4 „  ƒ  YZ> d5 f  d6 „  ƒ  YZ? d7 f  d8 „  ƒ  YZ@ d9 e	 j; e? f d: „  ƒ  YZA d; eA e@ f d< „  ƒ  YZB d= eA f d> „  ƒ  YZC d? e	 j; e? f d@ „  ƒ  YZD dA eD e@ f dB „  ƒ  YZE dC eD f dD „  ƒ  YZF dE e	 j; f dF „  ƒ  YZG dG eG f dH „  ƒ  YZH dI eG f dJ „  ƒ  YZI dK eA eD f dL „  ƒ  YZJ dM eB eE eJ e@ f dN „  ƒ  YZK dO eJ f dP „  ƒ  YZL dQ e jM f dR „  ƒ  YZN e jO eN jP ƒ dS e	 j; f dT „  ƒ  YZQ dU e	 j; f dV „  ƒ  YZR dW eR f dX „  ƒ  YZS dY eR f dZ „  ƒ  YZT d[ e	 j; f d\ „  ƒ  YZU d] eU f d^ „  ƒ  YZV d_ eU f d` „  ƒ  YZW da e	 j; f db „  ƒ  YZX dc eX f dd „  ƒ  YZY de eX f df „  ƒ  YZZ e	 j[ e j\ dg k dh ƒ di e	 j; f dj „  ƒ  Yƒ Z] dk e] f dl „  ƒ  YZ^ dm e] f dn „  ƒ  YZ_ do „  Z` ea dp k r„e` ƒ  n  d S(q   u   Unit tests for the io module.iÿÿÿÿ(   t   print_function(   t   unicode_literalsN(   t   cyclet   count(   t   deque(   t   UserList(   t   test_supportc          O  s   t  t |  | Ž  ƒ S(   N(   t
   memoryviewt	   bytearray(   t   post   kw(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   byteslike9   s    c          C  s,   t  j t d d d ƒ� }  |  j SWd QXd S(   u(   Get the default TextIOWrapper chunk sizeu   rt   encodingu   latin1N(   t   iot   opent   __file__t   _CHUNK_SIZE(   t   f(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _default_chunk_size<   s    t   MockRawIOWithoutReadc           B  sn   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d d
 „ Z RS(   um   A RawIO implementation without read(), so as to exercise the default
    RawIO.read() which calls readinto().c         C  s.   t  | ƒ |  _ g  |  _ d |  _ d |  _ d  S(   Ni    (   t   listt   _read_stackt   _write_stackt   _readst   _extraneous_reads(   t   selft
   read_stack(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   __init__F   s    		c         C  s    |  j  j t | ƒ ƒ t | ƒ S(   N(   R   t   appendt   bytest   len(   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_io.pyt   writeL   s    c         C  s   t  S(   N(   t   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_io.pyt   writableP   s    c         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_io.pyt   filenoS   s    c         C  s   t  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_io.pyt   readableV   s    c         C  s   t  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_io.pyt   seekableY   s    c         C  s   d S(   Ni    (    (   R   R	   t   whence(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   seek\   s    c         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_io.pyt   tell_   s    c         C  sÄ   |  j  d 7_  t | ƒ } y |  j d } Wn! t k
 rO |  j d 7_ d SX| d  k rj |  j d =d  St | ƒ } t | ƒ | k r  |  j d =| | | *| S| |  | (| | |  j d <| Sd  S(   Ni   i    (   R   R   R   t
   IndexErrorR   t   None(   R   t   buft   max_lent   datat   n(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   readintob   s$    


c         C  s   | S(   N(    (   R   R	   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   truncatew   s    (    N(   t   __name__t
   __module__t   __doc__R   R    R"   R#   R$   R%   R'   R(   R/   R*   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_io.pyR   B   s   								t   CMockRawIOWithoutReadc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR4   z   s   t   PyMockRawIOWithoutReadc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR5   }   s   t	   MockRawIOc           B  s   e  Z d d  „ Z RS(   c         C  sA   |  j  d 7_  y |  j j d ƒ SWn |  j d 7_ d SXd  S(   Ni   i    t    (   R   R   t   popR   (   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_io.pyt   readƒ   s    N(   R1   R2   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_io.pyR6   �   s   t
   CMockRawIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR:   ‹   s   t   PyMockRawIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR;   Ž   s   t   MisbehavedRawIOc           B  s8   e  Z d  „  Z d d „ Z d „  Z d „  Z d „  Z RS(   c         C  s   t  j |  | ƒ d S(   Ni   (   R6   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_io.pyR    “   s    c         C  s   t  j |  | ƒ d S(   Ni   (   R6   R9   (   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_io.pyR9   –   s    c         C  s   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_io.pyR'   ™   s    c         C  s   d S(   Ni8þÿÿ(    (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR(   œ   s    c         C  s   t  j |  | ƒ t | ƒ d S(   Ni   (   R6   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_io.pyR/   Ÿ   s    N(   R1   R2   R    R*   R9   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_io.pyR<   ’   s
   			t   CMisbehavedRawIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR=   £   s   t   PyMisbehavedRawIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR>   ¦   s   t   CloseFailureIOc           B  s   e  Z d  Z d „  Z RS(   i    c         C  s   |  j  s d |  _  t ‚ n  d  S(   Ni   (   t   closedt   IOError(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   close­   s    		(   R1   R2   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_io.pyR?   ª   s   t   CCloseFailureIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRC   ²   s   t   PyCloseFailureIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRD   µ   s   t
   MockFileIOc           B  s&   e  Z d  „  Z d d „ Z d „  Z RS(   c         C  s#   g  |  _  t t |  ƒ j | ƒ d  S(   N(   t   read_historyt   superRE   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_io.pyR   »   s    	c         C  sD   t  t |  ƒ j | ƒ } |  j j | d  k r3 d  n	 t | ƒ ƒ | S(   N(   RG   RE   R9   RF   R   R*   R   (   R   R.   t   res(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR9   ¿   s    (c         C  s,   t  t |  ƒ j | ƒ } |  j j | ƒ | S(   N(   RG   RE   R/   RF   R   (   R   R   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_io.pyR/   Ä   s    N(   R1   R2   R   R*   R9   R/   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRE   ¹   s   	t   CMockFileIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRI   É   s   t   PyMockFileIOc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRJ   Ì   s   t   MockNonBlockWriterIOc           B  sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C  s   g  |  _  d  |  _ d  S(   N(   R   R*   t   _blocker_char(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR   Ò   s    	c         C  s    d j  |  j ƒ } g  |  j (| S(   NR7   (   t   joinR   (   R   t   s(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   pop_writtenÖ   s    
c         C  s   | |  _  d S(   u'   Block when a given char is encountered.N(   RL   (   R   t   char(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   block_onÛ   s    c         C  s   t  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_io.pyR$   ß   s    c         C  s   t  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_io.pyR%   â   s    c         C  s   t  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_io.pyR"   å   s    c         C  s“   t  | ƒ } d } |  j ry y | j |  j ƒ } Wn t k
 rD qy X| d k ri |  j j | |  ƒ | Sd  |  _ d  Sn  |  j j | ƒ t | ƒ S(   Niÿÿÿÿi    (   R   RL   t   indext
   ValueErrorR   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_io.pyR    è   s    		(	   R1   R2   R   RO   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_io.pyRK   Ð   s   						t   CMockNonBlockWriterIOc           B  s   e  Z e j Z RS(    (   R1   R2   R   t   BlockingIOError(    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRT   ü   s   t   PyMockNonBlockWriterIOc           B  s   e  Z e j Z RS(    (   R1   R2   t   pyioRU   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRV   ÿ   s   t   IOTestc           B  sp  e  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% „  Z' d& „  Z( d' „  Z) d( „  Z* RS(*   c         C  s   t  j t  j ƒ d  S(   N(   t   supportt   unlinkt   TESTFN(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   setUp  s    c         C  s   t  j t  j ƒ d  S(   N(   RY   RZ   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_io.pyt   tearDown  s    c         C  sµ  |  j  | j d ƒ d ƒ | j d ƒ |  j  | j ƒ  d ƒ | j d ƒ |  j  | j d ƒ d ƒ |  j  | j d ƒ d ƒ |  j  | j d ƒ d ƒ |  j  | j ƒ  d ƒ |  j  | j d d ƒ d ƒ |  j  | j ƒ  d ƒ t d ƒ } |  j  | j | ƒ d	 ƒ d | (|  j  | j d ƒ d ƒ |  j  | j d ƒ d ƒ |  j  | j d d ƒ d ƒ |  j  | j ƒ  d ƒ |  j  | j d ƒ d ƒ |  j  | j ƒ  d ƒ |  j t | j d ƒ d  S(   Ns   blah.i   i    s   Hello.i   iÿÿÿÿi   s	    world


i	   t   *t   hi   i   i   g        s	   *********(   t   assertEqualR    R0   R(   R'   R   t   assertRaisest	   TypeError(   R   R   t   buffer(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   write_ops  s(    c         C  sG  | j  d ƒ } |  j | d ƒ t | ƒ } |  j | j | ƒ d ƒ |  j | j ƒ  d ƒ t d ƒ } |  j | j | ƒ d ƒ |  j t | ƒ d ƒ |  j | d  d ƒ |  j | j d ƒ d ƒ |  j | j  d ƒ d ƒ |  j | j  d	 ƒ d
 ƒ |  j | j t d ƒ ƒ d ƒ |  j | j d d ƒ d ƒ |  j | j  d ƒ d ƒ |  j | j  d ƒ d
 ƒ |  j | j t ƒ  ƒ d ƒ |  j | j d d	 ƒ d ƒ |  j | j  d ƒ d ƒ |  j | j ƒ  d ƒ |  j	 t
 | j d ƒ | rC| j d ƒ |  j | j  ƒ  d ƒ | j d ƒ |  j | j  ƒ  d ƒ |  j | j  ƒ  d
 ƒ n  d  S(   Ni   t   hellos    worli   s   d
i    i   s   hello world
i   R7   t   xiúÿÿÿi   t   worldi
   g        s   world
(   R9   R`   R   R/   t   tobytesR   R   R'   R(   Ra   Rb   (   R   R   t   bufferedR-   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   read_ops#  s6    i   i   c         C  sµ  | j  ƒ  s t ‚ | j ƒ  s$ t ‚ |  j | j |  j ƒ |  j ƒ |  j | j ƒ  |  j ƒ |  j | j d ƒ d ƒ |  j | j ƒ  |  j d ƒ |  j | j d d ƒ |  j d ƒ |  j | j ƒ  |  j d ƒ |  j | j ƒ  |  j d ƒ |  j | j d d ƒ |  j d ƒ |  j | j |  j d ƒ |  j d ƒ |  j | j ƒ  |  j d ƒ |  j | j d d ƒ |  j d ƒ |  j | j d d ƒ |  j ƒ |  j | j	 d ƒ d ƒ d  S(   Nt   xxxi   iÿÿÿÿi   i   i    Rf   (
   R$   t   AssertionErrorR"   R`   R'   t   LARGER(   R    R0   R9   (   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_io.pyt   large_file_opsB  s    ##'#c      	   C  só   xR d	 D]J } |  j  t j | ƒ �- } |  j t | j ƒ |  j t | j ƒ Wd  QXq W|  j  t j d ƒ �6 } |  j t | j d ƒ |  j t | j d g ƒ Wd  QX|  j  t j d ƒ �6 } |  j t | j d ƒ |  j t | j d g ƒ Wd  QXd  S(
   Nu   wu   wbu   rbt   blahs   blah
u   ru   blahu   blah
(   u   wu   wb(	   R   RY   R[   Ra   RA   R9   t   readlineR    t
   writelines(   R   t   modet   fp(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_invalid_operationsS  s    c      	   C  sn   d } |  j  t |  j | d ƒ | j d ƒ } t j ƒ  �. t j d t ƒ |  j  t |  j | d ƒ Wd  QXd  S(   Nu   foo baru   wu   asciiu   ignore(   Ra   Rb   R   t   encodet   warningst   catch_warningst   simplefiltert   DeprecationWarning(   R   t   fn_with_NULt   bytes_fn(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_open_handles_NUL_chars`  s    c         C  sê   |  j  t j d d d ƒ�V } |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j	 | ƒ Wd  QX|  j  t j d d d ƒ�V } |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j
 | ƒ Wd  QXd  S(   Nu   wbt	   bufferingi    u   rb(   R   RY   R[   R`   R$   t   FalseR"   R!   R%   Rd   Rj   (   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_io.pyt   test_raw_file_ioi  s    c         C  sá   |  j  t j d ƒ �V } |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j	 | ƒ Wd  QX|  j  t j d ƒ �Y } |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j | j ƒ  t ƒ |  j
 | t ƒ Wd  QXd  S(   Nu   wbu   rb(   R   RY   R[   R`   R$   R~   R"   R!   R%   Rd   Rj   (   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_io.pyt   test_buffered_file_iou  s    c      
   C  s'  |  j  t j d ƒ � } | j d ƒ Wd  QX|  j  t j d ƒ �­ } |  j | j ƒ  d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d	 ƒ d
 ƒ |  j | j ƒ  d ƒ |  j | j d  ƒ d ƒ |  j t | j d ƒ Wd  QX|  j  t j d ƒ � } |  j t | j d ƒ Wd  QXd  S(   Nu   wbs"   abc
def
xyzzy
foo bar
another lineu   rbs   abc
i
   s   def
i   t   xyi   s   zzy
s   foo bar
s   another lineg333333@u   r(	   R   RY   R[   R    R`   Rp   R*   Ra   Rb   (   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_io.pyt   test_readline�  s    c         C  s9   d |  j  f d „  ƒ  Y} |  j t t f t | ƒ  ƒ d  S(   Nt   Rc           B  s   e  Z d  „  Z RS(   c         S  s   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_io.pyRp   “  s    (   R1   R2   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_io.pyRƒ   ’  s   (   t   IOBaseRa   Rb   t   StopIterationt   next(   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_io.pyt   test_readline_nonsizeable�  s    c         C  s6   d |  j  f d „  ƒ  Y} |  j t | ƒ  j d ƒ d  S(   NRƒ   c           B  s   e  Z d  „  Z RS(   c         S  s   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_io.pyR†   ›  s    (   R1   R2   R†   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRƒ   š  s   i   (   R„   Ra   Rb   t	   readlines(   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_io.pyt   test_next_nonsizeable—  s    c         C  sX   |  j  ƒ  } |  j | ƒ | j ƒ  } |  j | d ƒ |  j  | ƒ } |  j | t ƒ d  S(   Ns   hello world
(   t   BytesIORd   t   getvalueR`   Rj   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_io.pyt   test_raw_bytes_ioŸ  s    c         C  s™   t  j d  d k s" t  j d k r< t j d d |  j ƒ n  |  j t j d d ƒ � } |  j | ƒ Wd  QX|  j t j d ƒ � } |  j | ƒ Wd  QXd  S(   Ni   u   winu   darwinu	   largefileu-   test requires %s bytes and a long time to runu   w+bi    (   t   syst   platformRY   t   requiresRm   R   R[   Rn   (   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_io.pyt   test_large_file_ops§  s    "c         C  sÃ   x¼ d D]´ } d  } |  j t j d | ƒ � } | j d ƒ Wd  QX|  j | j t ƒ d  } y- |  j t j d | ƒ � } d d Wd  QXWn$ t k
 r­ |  j | j t ƒ q X|  j	 d ƒ q Wd  S(   Ni    i   id   u   wbRk   u    1 // 0 didn't raise an exception(   i    i   id   (
   R*   R   RY   R[   R    R`   R@   R!   t   ZeroDivisionErrort   fail(   R   t   bufsizeR   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_with_open´  s    c      
   C  sÑ   |  j  t j d ƒ � } | j d ƒ Wd  QX|  j  t j d d d ƒ� } |  j | j ƒ  d ƒ Wd  QX|  j  t j d ƒ � } |  j | j ƒ  d ƒ Wd  QX|  j  t j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   Nu   wbRk   u   abR}   i    i   u   a(   R   RY   R[   R    R`   R(   t   assertGreater(   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_io.pyt   test_append_mode_tellÄ  s    c           s¥   g  ‰ d |  j  f ‡  ‡ f d †  ƒ  Y‰  ˆ  t j d ƒ } | j d ƒ ~ t j ƒ  |  j ˆ d d d g ƒ |  j t j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(	   Nt   MyFileIOc             s>   e  Z ‡  ‡ f d  †  Z ‡  ‡ f d †  Z ‡  ‡ f d †  Z RS(   c           sB   ˆ j  d ƒ y t ˆ  |  ƒ j } Wn t k
 r6 n X| ƒ  d  S(   Ni   (   R   RG   t   __del__t   AttributeError(   R   R   (   R—   t   record(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR˜   Ñ  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   RB   (   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_io.pyRB   Ù  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   t   flush(   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_io.pyR›   Ü  s    (   R1   R2   R˜   RB   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_io.pyR—   Ð  s   u   wbRk   i   i   i   u   rb(   t   FileIORY   R[   R    t
   gc_collectR`   R   R9   (   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_io.pyt   test_destructorÎ  s    "
c           sX   g  ‰ d | f ‡  ‡ f d †  ƒ  Y‰  ˆ  ƒ  } ~ t  j ƒ  |  j ˆ d d d g ƒ d  S(   Nt   MyIOc             sG   e  Z d  „  Z ‡  ‡ f d †  Z ‡  ‡ f d †  Z ‡  ‡ f d †  Z RS(   c         S  s   d |  _  d |  _ d |  _ d  S(   Ni   i   i   (   t   on_delt   on_closet   on_flush(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR   ê  s    		c           sE   ˆ j  |  j ƒ y t ˆ  |  ƒ j } Wn t k
 r9 n X| ƒ  d  S(   N(   R   R    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_io.pyR˜   ò  s    c           s'   ˆ j  |  j ƒ t ˆ  |  ƒ j ƒ  d  S(   N(   R   R¡   RG   RB   (   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_io.pyRB   ú  s    c           s'   ˆ j  |  j ƒ t ˆ  |  ƒ j ƒ  d  S(   N(   R   R¢   RG   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_io.pyR›   ý  s    (   R1   R2   R   R˜   RB   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_io.pyRŸ   é  s   	i   i   i   (   RY   R�   R`   (   R   t   baseR   (    (   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_io.pyt   _check_base_destructorç  s    	
c         C  s   |  j  |  j ƒ d  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_io.pyt   test_IOBase_destructor  s    c         C  s   |  j  |  j ƒ d  S(   N(   R¤   t	   RawIOBase(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_RawIOBase_destructor  s    c         C  s   |  j  |  j ƒ d  S(   N(   R¤   t   BufferedIOBase(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_BufferedIOBase_destructor  s    c         C  s   |  j  |  j ƒ d  S(   N(   R¤   t
   TextIOBase(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_TextIOBase_destructor  s    c         C  sc   |  j  t j d ƒ � } | j d ƒ Wd  QX|  j  t j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   Nu   wbRk   u   rb(   R   RY   R[   R    R`   R9   (   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_io.pyt   test_close_flushes  s    c         C  sŸ   t  j  d t d ƒ ƒ } t | j ƒ  ƒ } |  j t j d d ƒ �  } |  j | j | ƒ | ƒ Wd  QX|  j t j d ƒ �  } |  j | j | ƒ | ƒ Wd  QXd  S(   Nt   ii
   u   wbi    (	   t   arrayt   rangeR   t   tostringR   RY   R[   R`   R    (   R   t   aR.   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_array_writes  s    c         C  s&   |  j  t |  j t j d d t ƒd  S(   Nu   wt   closefd(   Ra   RS   R   RY   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_io.pyt   test_closefd  s    c      
   C  s«   |  j  t j d ƒ � } | j d ƒ Wd  QX|  j  t j d ƒ �e } |  j  | j ƒ  d d t ƒ} |  j | j ƒ  d ƒ | j d ƒ | j	 ƒ  |  j
 t | j ƒ Wd  QXd  S(   Nu   wu   egg
u   rR³   i    (   R   RY   R[   R    R#   R~   R`   R9   R'   RB   Ra   RS   (   R   R   t   file(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_read_closed#  s    
c         C  s&   |  j  t |  j t j d d t ƒd  S(   Nu   rR³   (   Ra   RS   R   RY   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_io.pyt   test_no_closefd_with_filename-  s    c      
   C  s�   |  j  t j d ƒ � } | j d ƒ Wd  QX|  j  t j d ƒ �W } |  j | j j j t ƒ |  j  | j	 ƒ  d d t
 ƒ} |  j | j j j t
 ƒ Wd  QXd  S(   Nu   wbs   egg
u   rR³   (   R   RY   R[   R    R`   Rc   t   rawR³   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_io.pyt   test_closefd_attr1  s    c         C  s’   |  j  t j d ƒ } | j d ƒ | | _ t j | ƒ } ~ t j ƒ  |  j | ƒ  | ƒ |  j	 t j d ƒ � } |  j
 | j ƒ  d ƒ Wd  QXd  S(   Nu   wbt   abcxxxu   rb(   Rœ   RY   R[   R    R   t   weakreft   refR�   t   assertIsNoneR   R`   R9   (   R   R   t   wr(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_garbage_collection9  s    	
c      	   C  s  d } t  j j | ƒ s1 |  j d j | ƒ ƒ n  t j d k rP |  j d ƒ n  t j t j	 k  rr |  j d ƒ n  |  j
 | d d d ƒ� } |  j t | j ƒ Wd  QX|  j
 | d ƒ � } |  j t | j ƒ Wd  QX|  j
 | d	 ƒ � } |  j t | j ƒ Wd  QXd  S(
   Nu	   /dev/zerou   {0} does not existiÿÿÿu+   test can only run in a 32-bit address spaceu$   test requires at least 2GB of memoryu   rbR}   i    u   r(   t   ost   patht   existst   skipTestt   formatR�   t   maxsizeRY   t   real_max_memuset   _2GR   Ra   t   OverflowErrorR9   (   R   t   zeroR   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_unbounded_fileF  s    c           s„   |  j  | | Ž  ‰ g  ‰  ‡  ‡ f d †  } | ˆ _ |  j t ˆ j ƒ |  j ˆ j ƒ |  j ˆ  ƒ |  j ˆ  d ƒ d „  ˆ _ d  S(   Nc             s   ˆ j  g ˆ  (t ƒ  ‚ d  S(   N(   R@   RA   (    (   R@   R   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   bad_flush[  s    i    c           S  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_io.pyt   <lambda>c  R7   (   R   R›   Ra   RA   RB   t
   assertTrueR@   t   assertFalse(   R   t   argst   kwargsRË   (    (   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_io.pyt   check_flush_error_on_closeV  s    	c         C  s¢  |  j  t j d d d ƒt j t j t j t j Bƒ } |  j  | d d d ƒt j t j t j t j Bƒ } |  j  | d d d d t ƒt j | ƒ |  j  t j d ƒ t j t j t j t j Bƒ } |  j  | d ƒ t j t j t j t j Bƒ } |  j  | d d t ƒt j | ƒ |  j  t j d ƒ t j t j t j t j Bƒ } |  j  | d ƒ t j t j t j t j Bƒ } |  j  | d d t ƒt j | ƒ d  S(   Nu   wbR}   i    R³   u   w(	   RÑ   RY   R[   RÀ   R   t   O_WRONLYt   O_CREATR~   RB   (   R   t   fd(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_flush_error_on_closee  s$    c         C  sP   |  j  t j d d d ƒ} | j ƒ  | j ƒ  | j ƒ  |  j t | j ƒ d  S(   Nu   wbR}   i    (   R   RY   R[   RB   Ra   RS   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_io.pyt   test_multi_close}  s
    


c         C  sÛ   |  j  d
 ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d  ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d  ƒ |  j | j d ƒ d	 ƒ d  S(   Nt   abct   dt   efgi   t   abt   ct   eft   gR7   (   R×   RØ   NRÙ   N(   R   R*   R`   R9   (   R   t   rawio(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_RawIOBase_read„  s    c         C  sŒ   |  j  t d ƒ �t } |  j  t d ƒ �Y } |  j | j ƒ  d t ƒ} | j | j ƒ  d t ƒ| j ƒ  | j ƒ  | j ƒ  Wd  QXWd  QXd  S(   Nu   rbR³   (   R   R   Rœ   R#   R~   R   Rp   RB   (   R   t   f1t   f2t   fileio(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_fileio_closefd‘  s    

c         C  sh   t  j d t ƒ �@ } |  j t ƒ � |  j t j d d d ƒWd  QXt j ƒ  Wd  QX|  j	 | g  ƒ d  S(   NRš   u   wR}   i    (
   Rv   Rw   R!   Ra   RS   R   RY   R[   R�   R`   (   R   t   recorded(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_nonbuffered_textio�  s
    c         C  sh   t  j d t ƒ �@ } |  j t ƒ � |  j t j d d d ƒWd  QXt j ƒ  Wd  QX|  j	 | g  ƒ d  S(   NRš   u   wt   newlineu   invalid(
   Rv   Rw   R!   Ra   RS   R   RY   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_io.pyt   test_invalid_newline¤  s
    c         C  sa   d |  j  f d „  ƒ  Y} | ƒ  } t d ƒ } |  j | j | ƒ d ƒ |  j | j ƒ  d ƒ d  S(   Nt   Streamc           B  s   e  Z d  „  Z RS(   c         S  s   d S(   Nt   12345(    (   R   t   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_io.pyR9   ®  s    (   R1   R2   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_io.pyRè   ­  s   i   Ré   (   R¨   R   R`   R/   Rh   (   R   Rè   t   streamRc   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_buffered_readinto_mixin«  s
    	c         C  s9   d |  j  f d „  ƒ  Y} | ƒ  } |  j t | j ƒ d  S(   NRƒ   c           B  s   e  Z d  „  Z d „  Z RS(   c         S  s   d  S(   N(    (   R   t   namet   value(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   __setattr__·  s    c         S  s   t  ƒ  ‚ d  S(   N(   t   OSError(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR›   ¹  s    (   R1   R2   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_io.pyRƒ   ¶  s   	(   R„   Ra   Rð   RB   (   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_io.pyt   test_close_assertµ  s    	I   €    (+   R1   R2   R\   R]   Rd   R~   Rj   Rm   Rn   Rt   R|   R   R€   R‚   R‡   R‰   RŒ   R�   R”   R–   Rž   R¤   R¥   R§   R©   R«   R¬   R²   R´   R¶   R·   R¹   R¿   RÊ   RÑ   RÕ   RÖ   Rß   Rã   Rå   Rç   Rì   Rñ   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRX     sP   																
										
												
t   CIOTestc           B  s   e  Z d  „  Z RS(   c         C  sh   d |  j  f d „  ƒ  Y} | ƒ  | ƒ  } | | _ t j | ƒ } ~ ~ t j ƒ  |  j | ƒ  | ƒ d  S(   NRŸ   c           B  s   e  Z d  „  Z RS(   c         S  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_io.pyRB   Ç  s    (   R1   R2   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_io.pyRŸ   Æ  s   (   R„   t   objR»   R¼   RY   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_io.pyt   test_IOBase_finalizeÂ  s    		
(   R1   R2   Rô   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRò   À  s   t   PyIOTestc           B  s    e  Z e j d  ƒ e j ƒ Z RS(   uB   len(array.array) returns number of elements rather than bytelength(   R1   R2   t   unittestt   skipRX   R²   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRõ   Ô  s   t   CommonBufferedTestsc           B  sk   e  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  sR   |  j  ƒ  } |  j | ƒ } |  j | j ƒ  | ƒ |  j t | j ƒ t | ƒ d  S(   N(   R6   t   tpt   assertIst   detachRa   RS   t   repr(   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_io.pyt   test_detachÝ  s
    c         C  s5   |  j  ƒ  } |  j | ƒ } |  j d | j ƒ  ƒ d  S(   Ni*   (   R6   Rù   R`   R#   (   R   RÞ   t   bufio(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_filenoå  s    c         C  sQ   |  j  ƒ  } |  j | ƒ } |  j t | j d d ƒ |  j t | j d d ƒ d  S(   Ni    iÿÿÿÿi   (   R6   Rù   Ra   RS   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_io.pyt   test_invalid_argsë  s    c           s›   |  j  } g  ‰ d | f ‡  ‡ f d †  ƒ  Y‰  |  j ƒ  } ˆ  | ƒ } | j ƒ  } ~ t j ƒ  | r� |  j ˆ d d d g ƒ n |  j ˆ d d g ƒ d  S(   Nt   MyBufferedIOc             s>   e  Z ‡  ‡ f d  †  Z ‡  ‡ f d †  Z ‡  ‡ f d †  Z RS(   c           sB   ˆ j  d ƒ y t ˆ  |  ƒ j } Wn t k
 r6 n X| ƒ  d  S(   Ni   (   R   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_io.pyR˜   ö  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   RB   (   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_io.pyRB   þ  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   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_io.pyR›     s    (   R1   R2   R˜   RB   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_io.pyR  õ  s   i   i   i   (   Rù   R6   R"   RY   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_io.pyt   test_override_destructorò  s    	
c           sE   |  j  ƒ  } |  j | ƒ ‰  ‡  f d †  } | ƒ  |  j t | ƒ d  S(   Nc             s   ˆ  � Wd  QXd  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_io.pyt   _with  s    (   R6   Rù   Ra   RS   (   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_io.pyt   test_context_manager  s
    c           s³   ˆ j  ƒ  ‰  ‡  ‡ f d †  } t j d ƒ � } ˆ j t | ƒ Wd  QX| j ƒ  j ƒ  } | r¯ ˆ j t | j	 ƒ  ƒ d ƒ ˆ j
 | j d ƒ | ƒ ˆ j
 | j d ƒ | ƒ n  d  S(   Nc             s   ˆ j  ˆ  ƒ j d  S(   N(   Rù   t   xyzzy(    (   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_io.pyR     s    u   stderri   u   Exception IOError: u    ignored(   R?   RY   t   captured_outputRa   R™   R‹   t   stripR`   R   t
   splitlinesRÍ   t
   startswitht   endswith(   R   R   RN   (    (   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_io.pyt   test_error_through_destructor  s    c         C  s›   |  j  ƒ  } |  j | ƒ } d |  j j |  j j f } |  j t | ƒ d | ƒ d | _ |  j t | ƒ d | ƒ d | _ |  j t | ƒ d | ƒ d  S(   Nu   %s.%su   <%s>u   dummyu   <%s name=u'dummy'>t   dummyu   <%s name='dummy'>(   R6   Rù   R2   R1   R`   Rü   Rí   (   R   R¸   R   t   clsname(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   test_repr)  s    		c           s±   |  j  ƒ  ‰ g  ‰ ‡  ‡ ‡ f d †  } | ˆ _ |  j ˆ ƒ ‰  |  j t ˆ  j ƒ |  j ˆ  j ƒ |  j ˆ j ƒ |  j ˆ ƒ |  j ˆ d ƒ |  j ˆ d ƒ d „  ˆ _ d  S(   Nc             s    ˆ  j  ˆ j  g ˆ (t ƒ  ‚ d  S(   N(   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_io.pyRË   8  s    i    i   c           S  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_io.pyRÌ   C  R7   (	   R6   R›   Rù   Ra   RA   RB   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_io.pyRÕ   3  s    	c         C  s‹   |  j  ƒ  } d „  } d „  } | | _ |  j | ƒ } | | _ |  j t ƒ � } | j ƒ  Wd  QX|  j | j j d ƒ |  j	 | j
 ƒ d  S(   Nc           S  s   t  d ƒ ‚ d  S(   Nu   flush(   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_io.pyRË   G  s    c           S  s   t  d ƒ ‚ d  S(   Nu   close(   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_io.pyt	   bad_closeI  s    u   close(   u   close(   R6   RB   Rù   R›   Ra   RA   R`   t	   exceptionRÏ   RÎ   R@   (   R   R¸   RË   R  R   t   err(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_close_error_on_closeE  s    				c         C  sP   |  j  ƒ  } |  j | ƒ } | j ƒ  | j ƒ  | j ƒ  |  j t | j ƒ d  S(   N(   R6   Rù   RB   Ra   RS   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_io.pyRÖ   S  s    


c         C  sP   |  j  ƒ  } |  j | ƒ } |  j  ƒ  } |  j t t f ƒ � | | _ Wd  QXd  S(   N(   R6   Rù   Ra   R™   Rb   R¸   (   R   R¸   R+   Rf   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_readonly_attributes[  s
    (   R1   R2   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_io.pyRø   Ú  s   							
			t
   SizeofTestc           B  s   e  Z e j d  „  ƒ Z RS(   c         C  s‚   d } d } |  j  ƒ  } |  j | d | ƒ} t j | ƒ | } |  j  ƒ  } |  j | d | ƒ} |  j t j | ƒ | | ƒ d  S(   Ni   i    t   buffer_size(   R6   Rù   R�   t	   getsizeofR`   (   R   t   bufsize1t   bufsize2RÞ   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_io.pyt   test_sizeofe  s    (   R1   R2   RY   t   cpython_onlyR  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  c  s   t   BufferedReaderTestc           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 e j e d ƒ e j d ƒ d „  ƒ ƒ Z d „  Z d „  Z RS(   u   rbc         C  s÷   |  j  d g ƒ } |  j | ƒ } | j | ƒ | j | d d ƒ| j | d d ƒ|  j d | j ƒ  ƒ |  j t | j | d d ƒ|  j t | j | d d ƒ|  j t | j | d d ƒ|  j  d g ƒ } | j | ƒ |  j d | j ƒ  ƒ d  S(   NR×   R  i   i   i    iðÿÿÿiÿÿÿÿ(   R6   Rù   R   R`   R9   Ra   RS   (   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_io.pyt   test_constructort  s    c         C  s|   |  j  j |  j  ƒ } ~ |  j  j |  j  ƒ } |  j t t f d | j d ƒ | j |  j ƒ  ƒ |  j | j d ƒ d ƒ d  S(   Nu   uninitialized|has no attributei    R7   (	   Rù   t   __new__t   assertRaisesRegexpRS   R™   R9   R   R6   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_io.pyt   test_uninitialized‚  s    c         C  sb   xE d D]= } |  j d ƒ } |  j | ƒ } |  j d | j | ƒ ƒ q W|  j t | j d ƒ d  S(	   Ni   R×   RØ   RÙ   t   abcdefgiþÿÿÿ(   Ni   (   R×   RØ   RÙ   (   R*   R6   Rù   R`   R9   Ra   RS   (   R   t   argRÞ   Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   test_readŒ  s
    c         C  s-  |  j  d ƒ } |  j | ƒ } |  j d | j d ƒ ƒ |  j d | j d ƒ ƒ |  j | j d ƒ |  j d | j d ƒ ƒ |  j | j d ƒ |  j d | j d ƒ ƒ |  j | j d	 ƒ |  j d | j d ƒ ƒ |  j | j d
 ƒ |  j d | j d ƒ ƒ |  j | j d ƒ |  j t | j d ƒ d  S(   NR×   RØ   RÙ   R±   i   R   RÛ   id   i   i   R7   i   iÿÿÿÿ(   R×   RØ   RÙ   (   R6   Rù   R`   R9   t   read1R   Ra   RS   (   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_io.pyt
   test_read1”  s    c         C  sû   |  j  d ƒ } |  j | ƒ } t d ƒ } |  j | j | ƒ d ƒ |  j | d ƒ |  j | j | ƒ d ƒ |  j | d ƒ |  j | j | ƒ d ƒ |  j | d ƒ |  j | j | ƒ d ƒ |  j | d	 ƒ |  j | j | ƒ d
 ƒ |  j | d	 ƒ d  S(   NR×   RØ   RÙ   i   RÚ   t   cdRÜ   i   t   gfi    (   R×   RØ   RÙ   (   R6   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_io.pyt   test_readinto¥  s    c           s|   ‡  f d †  } ˆ  j  | ƒ  j ƒ  d d d g ƒ ˆ  j  | ƒ  j d ƒ d d g ƒ ˆ  j  | ƒ  j d  ƒ d d d g ƒ d  S(   Nc            s   ˆ  j  d ƒ }  ˆ  j |  ƒ S(   Ns   abc
s   d
RÜ   (   s   abc
s   d
RÜ   (   R6   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_io.pyRþ   µ  s    s   abc
s   d
RÜ   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_io.pyt   test_readlines´  s    ""c         C  s	  d } t  | ƒ } d d d d d g | d g g d d d d g | g g d d d d d g d d d g g g } x“ | D]‹ \ } } } |  j | ƒ } |  j | d	 | ƒ} d }	 x< | D]4 }
 |  j | j |
 ƒ | |	 |	 |
 !ƒ |	 |
 7}	 q¶ W|  j | j | ƒ qv Wd  S(
   Nt	   abcdefghiid   i   i   i   i   i    i   R  (   R   RE   Rù   R`   R9   RF   (   R   R-   t   dlent   testsR“   t   buf_read_sizest   raw_read_sizesRÞ   Rþ   R	   t   nbytes(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_buffering¼  s    '$c         C  sä   |  j  d ƒ } |  j | ƒ } |  j d | j d ƒ ƒ |  j d | j d ƒ ƒ |  j d | j ƒ  ƒ |  j d	 | j d ƒ ƒ |  j | j ƒ  ƒ |  j d	 | j ƒ  ƒ |  j  d ƒ } |  j d
 | j ƒ  ƒ |  j | j ƒ  ƒ d  S(   NR×   RØ   RÙ   t   abcdi   t   ei   t   fgR7   R±   (   R×   RØ   NRÙ   NNN(   R±   NN(   R6   R*   Rù   R`   R9   t   peekR½   t   readall(   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_io.pyt   test_read_non_blockingÐ  s    c         C  s;   |  j  d ƒ } |  j | ƒ } |  j d | j d ƒ ƒ d  S(   NR×   RØ   RÙ   R   i(#  (   R×   RØ   RÙ   (   R6   Rù   R`   R9   (   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_io.pyt   test_read_past_eofß  s    c         C  s8   |  j  d ƒ } |  j | ƒ } |  j d | j ƒ  ƒ d  S(   NR×   RØ   RÙ   R   (   R×   RØ   RÙ   (   R6   Rù   R`   R9   (   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_io.pyt   test_read_allå  s    u!   Threading required for this test.u   cpuc   
        s’  zzd } t  t d ƒ ƒ | } t j | ƒ t t | ƒ ƒ } |  j t j d ƒ � } | j	 | ƒ Wd  QX|  j t j |  j
 d d ƒ�ð } |  j | d ƒ ‰  g  ‰ g  ‰ ‡  ‡ ‡ f d †  } g  t d ƒ D] } t j d	 | ƒ ^ qÊ } t j | ƒ � t j d
 ƒ Wd  QX|  j ˆ d ˆ ƒ d j ˆ ƒ } xB t d ƒ D]4 } t t | g ƒ ƒ }	 |  j | j |	 ƒ | ƒ q;WWd  QXWd  t j t j ƒ Xd  S(   Niè  i   u   wbR}   i    i   c            sq   yG x@ t  d d g ƒ D], }  ˆ  j |  ƒ } | s5 Pn  ˆ j | ƒ q WWn# t k
 rl } ˆ j | ƒ ‚  n Xd  S(   Ni   i   (   R   R9   R   t	   Exception(   R.   RN   R1  (   Rþ   t   errorst   results(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR   ü  s    i   t   targetg{®Gáz”?u(   the following exceptions were caught: %rR7   (   R   R¯   t   randomt   shuffleR   R   R   RY   R[   R    t	   read_modeRù   t	   threadingt   Threadt   start_threadst   timet   sleepRÎ   RM   R`   R   RZ   (
   R   t   Nt   lRN   R   R¸   Rf   t   threadsR­   RÛ   (    (   Rþ   R9  R:  s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_threadsë  s,    !+	'c         C  sK   |  j  d ƒ } |  j | ƒ } |  j t | j d ƒ |  j t | j ƒ d  S(   NR×   RØ   RÙ   i    (   R×   RØ   RÙ   (   R<   Rù   Ra   RA   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_io.pyt   test_misbehaved_io  s    c         C  s  d } xd | d | | d | d f D]á } |  j  d | g ƒ } |  j | | ƒ } |  j | j | ƒ d | ƒ |  j | j d d j | | j ƒ ƒ |  j  d | d d g ƒ } |  j | | ƒ } |  j | j | ƒ d | ƒ |  j | j d d j | | j ƒ ƒ q( Wd  S(   Ni   i   i   Rf   i    u   failed for {}: {} != 0(   R6   Rù   R`   R9   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_io.pyt   test_no_extraneous_read  s    ((   R1   R2   R>  R  R  R"  R$  R'  R(  R/  R5  R6  R7  Rö   t
   skipUnlessR?  RY   t   requires_resourceRG  RH  RI  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  q  s   		
								(	t   CBufferedReaderTestc           B  s>   e  Z e j Z d  „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         C  sc   t  j |  ƒ t j d k r_ |  j ƒ  } |  j | ƒ } |  j t t t	 f | j
 | t j ƒ n  d  S(   Niÿÿÿ(   R  R  R�   RÅ   R6   Rù   Ra   RÈ   t   MemoryErrorRS   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_io.pyR  2  s    c         C  s²   |  j  d g ƒ } |  j | ƒ } |  j t | j | d d ƒ|  j t | j ƒ |  j t | j | d d ƒ|  j t | j ƒ |  j t | j | d d ƒ|  j t | j ƒ d  S(   NR×   R  i    iðÿÿÿiÿÿÿÿ(   R6   Rù   Ra   RS   R   R9   (   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_io.pyt   test_initialization<  s    c         C  s8   |  j  d ƒ } |  j | ƒ } |  j t | j d ƒ d  S(   NR×   RØ   RÙ   i
   (   R×   RØ   RÙ   (   R<   Rù   Ra   RA   R9   (   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_io.pyt   test_misbehaved_io_readF  s    c         C  sv   |  j  t j t j ƒ |  j t j d ƒ } |  j | ƒ } | | _ t j | ƒ } ~ t j	 ƒ  |  j
 | ƒ  | ƒ d  S(   Nu   w+b(   t
   addCleanupRY   RZ   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_io.pyR¿   M  s    	
c      	   C  s9   |  j  t d ƒ �! |  j t j ƒ  d d d ƒ Wd  QXd  S(   Nu   BufferedReaderi   (   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_io.pyt   test_args_errorY  s    (
   R1   R2   R   t   BufferedReaderRù   R  RN  RO  R¿   RQ  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRL  /  s   		
	
		t   PyBufferedReaderTestc           B  s   e  Z e j Z RS(    (   R1   R2   RW   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_io.pyRS  _  s   t   BufferedWriterTestc           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 e j e d ƒ e j d ƒ d „  ƒ ƒ Z d „  Z d „  Z d „  Z RS(   u   wbc         C  s  |  j  ƒ  } |  j | ƒ } | j | ƒ | j | d d ƒ| j | d d ƒ|  j d | j d ƒ ƒ | j ƒ  |  j t | j | d d ƒ|  j t | j | d d ƒ|  j t | j | d d ƒ| j | ƒ |  j d | j d	 ƒ ƒ | j ƒ  |  j d
 j | j	 ƒ d ƒ d  S(   NR  i   i   i   R×   i    iðÿÿÿiÿÿÿÿt   ghiR7   t   abcghi(
   R6   Rù   R   R`   R    R›   Ra   RS   RM   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_io.pyR  f  s    

c         C  s|   |  j  j |  j  ƒ } ~ |  j  j |  j  ƒ } |  j t t f d | j d ƒ | j |  j ƒ  ƒ |  j | j d ƒ d ƒ d  S(   Nu   uninitialized|has no attributeR7   i    (	   Rù   R  R  RS   R™   R    R   R6   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_io.pyR  v  s    c         C  s\   |  j  ƒ  } |  j | ƒ } | j d ƒ |  j | j ƒ | j ƒ  |  j | j d g ƒ d  S(   Ns   howdy!(   R6   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_io.pyt   test_detach_flush€  s    
c         C  s…   |  j  ƒ  } |  j | d ƒ } | j d ƒ |  j | j ƒ t d ƒ } | j | ƒ d | (| j ƒ  |  j d j | j ƒ d ƒ d  S(   Ni   R×   t   defs   ***R7   t   abcdef(	   R6   Rù   R    RÎ   R   R   R›   R`   RM   (   R   t   writerRþ   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_io.pyt
   test_writeˆ  s    
c         C  s’   |  j  ƒ  } |  j | d ƒ } d } x8 t d t | ƒ d ƒ D] } | j | | | d !ƒ q= Wd j | j ƒ } |  j | j | d  ƒ | ƒ d  S(   Ni   t   abcdefghijklmnopi    i   R7   iøÿÿÿ(	   R6   Rù   R¯   R   R    RM   R   RÍ   R	  (   R   RZ  Rþ   t   contentsR.   t   flushed(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_write_overflow”  s    c   	      C  sæ   t  t d ƒ ƒ d } d } |  j ƒ  } |  j | d ƒ } d „  } | ƒ  } xm | t | ƒ k  r» t t | ƒ t | ƒ | ƒ } |  j | j | | | | !ƒ | ƒ | | ƒ | | 7} qO W| j	 ƒ  |  j | d j
 | j ƒ ƒ d  S(   Ni   iè  i    i   c          s  s7   x0 t  d ƒ D]" }  x t d ƒ D] } |  Vq  Wq Wd  S(   Ni   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_io.pyt	   gen_sizes¦  s    R7   (   R   R¯   R6   Rù   R   t   minR†   R`   R    R›   RM   R   (	   R   t   intermediate_funcR]  R.   RZ  Rþ   R`  t   sizesRê   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   check_writesŸ  s    		$

	c         C  s   |  j  d „  ƒ d  S(   Nc         S  s   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_io.pyRÌ   µ  R7   (   Rd  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writes´  s    c         C  s   |  j  d „  ƒ d  S(   Nc         S  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_io.pyRÌ   ¸  R7   (   Rd  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writes_and_flushes·  s    c         C  s0   d „  } |  j  | ƒ d „  } |  j  | ƒ d  S(   Nc         S  sH   |  j  ƒ  } |  j | d d ƒ |  j | d d ƒ |  j | d ƒ d  S(   Ni   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_io.pyt   _seekabs»  s    c         S  sG   |  j  d d ƒ } |  j  d 
d ƒ |  j  d d ƒ |  j  | 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_io.pyt   _seekrelÁ  s    (   Rd  (   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_io.pyt   test_writes_and_seeksº  s    		c         C  s   |  j  d „  ƒ d  S(   Nc         S  s   |  j  |  j ƒ  ƒ S(   N(   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_io.pyRÌ   É  R7   (   Rd  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writes_and_truncatesÈ  s    c         C  s+  |  j  ƒ  } |  j | d ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ | j d ƒ |  j | j d ƒ d ƒ | j d ƒ y | j d	 ƒ Wn |  j k
 rµ } | j } n X|  j d
 ƒ |  j | d ƒ |  j | j ƒ  d ƒ |  j | j d ƒ d ƒ | j ƒ  } |  j	 | j
 d ƒ | ƒ d  S(   Ni   R0  i   t   efghii   t   kt   jklmnt   0t   opqrwxyz0123456789u'   BlockingIOError should have been raisedi   t   abcdefghijklmnopqrwxyzt	   ABCDEFGHIi	   t	   01234567A(   RK   Rù   R`   R    RQ   RU   t   characters_writtenR’   RO   RÍ   R	  (   R   R¸   Rþ   R1  t   writtenRN   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_write_non_blockingË  s$    c         C  sÙ   t  j ƒ  } |  j | d ƒ } |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ | j d d ƒ |  j | j d ƒ d ƒ | j d d ƒ |  j | j ƒ  d ƒ |  j | j d ƒ d ƒ | j ƒ  |  j | j ƒ  d	 ƒ d  S(
   Ni   RY  i   i    t   XYi   t   XYcdeft   123456t   XYcdef123456(	   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_io.pyt   test_write_and_rewindæ  s    
c         C  sP   |  j  ƒ  } |  j | d ƒ } | j d ƒ | j ƒ  |  j d | j d ƒ d  S(   Ni   R×   i    (   R6   Rù   R    R›   R`   R   (   R   RZ  Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt
   test_flushó  s
    
c         C  sd   d d d g } |  j  ƒ  } |  j | d ƒ } | j | ƒ | j ƒ  |  j d j | j ƒ d ƒ d  S(   NRÚ   R%  RÜ   i   R7   RY  (   R6   Rù   Rq   R›   R`   RM   R   (   R   RE  RZ  Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writelinesú  s    
c         C  sj   t  d d d g ƒ } |  j ƒ  } |  j | d ƒ } | j | ƒ | j ƒ  |  j d j | j ƒ d ƒ d  S(   NRÚ   R%  RÜ   i   R7   RY  (   R   R6   Rù   Rq   R›   R`   RM   R   (   R   RE  RZ  Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writelines_userlist  s    
c         C  sW   |  j  ƒ  } |  j | d ƒ } |  j t | j d d d g ƒ |  j t | j d  ƒ d  S(   Ni   i   i   i   (   R6   Rù   Ra   Rb   Rq   R*   (   R   RZ  Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_writelines_error
  s    c         C  sS   |  j  ƒ  } |  j | d ƒ } | j d ƒ ~ t j ƒ  |  j d | j d ƒ d  S(   Ni   R×   i    (   R6   Rù   R    RY   R�   R`   R   (   R   RZ  Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRž     s    
c         C  sÉ   |  j  t j t j ƒ |  j t j |  j d d ƒ�U } |  j | d ƒ } | j d ƒ |  j | j	 d ƒ d ƒ |  j | j
 ƒ  d ƒ Wd  QX|  j t j d d d ƒ� } |  j | j ƒ  d ƒ Wd  QXd  S(	   NR}   i    i   RY  i   i   u   rbR×   (   RP  RY   RZ   R[   R   t
   write_modeRù   R    R`   R0   R(   R9   (   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_io.pyt   test_truncate  s    !u!   Threading required for this test.u   cpuc      
     sÆ  z®d } t  t d ƒ ƒ | } t d d g ƒ } d } t ƒ  ‰ xD | t | ƒ k  r† t | ƒ } ˆ j | | | | !ƒ | | 7} qC W~ |  j t j	 |  j
 d d ƒ�  } |  j | d ƒ ‰  g  ‰ ‡  ‡ ‡ f d †  } g  t d	 ƒ D] } t j d
 | ƒ ^ qå }	 t j |	 ƒ � t j d ƒ Wd  QX|  j ˆ d ˆ ƒ ˆ  j ƒ  Wd  QX|  j t j	 d ƒ � } | j ƒ  }
 Wd  QXx6 t d ƒ D]( } |  j |
 j t  | g ƒ ƒ | ƒ q�WWd  t j t j	 ƒ Xd  S(   Niè  i   i   i   i    R}   i   c            sm   yC x< t  rA y ˆ j ƒ  }  Wn t k
 r0 d  SXˆ  j |  ƒ q WWn# t k
 rh } ˆ j | ƒ ‚  n Xd  S(   N(   R!   t   popleftR)   R    R8  R   (   RN   R1  (   Rþ   R9  t   queue(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR   ;  s    	i   R;  g{®Gáz”?u(   the following exceptions were caught: %ru   rb(   R   R¯   R   R   R   R†   R   R   RY   R[   R  Rù   R?  R@  RA  RB  RC  RÎ   RB   R9   R`   R   RZ   (   R   RD  R]  Rc  R.   Rê   R¸   R   Rf   RF  RN   R­   (    (   Rþ   R9  R‚  s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRG  #  s4    	!+	*c         C  sa   |  j  ƒ  } |  j | d ƒ } |  j t | j d ƒ |  j t | j ƒ |  j t | j d ƒ d  S(   Ni   i    RY  (   R<   Rù   Ra   RA   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_io.pyRH  S  s
    c         C  s9   t  j d t f ƒ � |  j |  j ƒ  d d ƒ Wd  QXd  S(   Nu   max_buffer_size is deprecatedi   i   (   RY   t   check_warningsRy   Rù   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_io.pyt    test_max_buffer_size_deprecationZ  s    	c         C  sa   |  j  ƒ  } d „  } | | _ |  j | ƒ } | j d ƒ |  j t | j ƒ |  j | j ƒ d  S(   Nc         S  s   t  ƒ  ‚ d  S(   N(   RA   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt	   bad_writea  s    t   spam(   R6   R    Rù   Ra   RA   RB   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_io.pyt   test_write_error_on_close_  s    		(   R1   R2   R  R  R  RW  R[  R_  Rd  Re  Rf  Ri  Rj  Ru  Rz  R{  R|  R}  R~  Rž   R€  Rö   RJ  R?  RY   RK  RG  RH  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_io.pyRT  c  s0   		
																/		t   CBufferedWriterTestc           B  s5   e  Z e j Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C  sc   t  j |  ƒ t j d k r_ |  j ƒ  } |  j | ƒ } |  j t t t	 f | j
 | t j ƒ n  d  S(   Niÿÿÿ(   RT  R  R�   RÅ   R6   Rù   Ra   RÈ   RM  RS   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_io.pyR  m  s    c         C  sµ   |  j  ƒ  } |  j | ƒ } |  j t | j | d d ƒ|  j t | j d ƒ |  j t | j | d d ƒ|  j t | j d ƒ |  j t | j | d d ƒ|  j t | j d ƒ d  S(   NR  i    RX  iðÿÿÿiÿÿÿÿ(   R6   Rù   Ra   RS   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_io.pyRN  w  s    c         C  s·   |  j  t j t j ƒ |  j t j d ƒ } |  j | ƒ } | j d ƒ | | _ t j	 | ƒ } ~ t j
 ƒ  |  j | ƒ  | ƒ |  j t j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   Nu   w+bt   123xxxu   rb(   RP  RY   RZ   R[   Rœ   Rù   R    Rf   R»   R¼   R�   R½   R   R`   R9   (   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_io.pyR¿   �  s    	
c      	   C  s9   |  j  t d ƒ �! |  j t j ƒ  d d d ƒ Wd  QXd  S(   Nu   BufferedWriteri   (   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_io.pyRQ  ‘  s    (	   R1   R2   R   t   BufferedWriterRù   R  RN  R¿   RQ  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRˆ  j  s
   		
	
	t   PyBufferedWriterTestc           B  s   e  Z e j Z RS(    (   R1   R2   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_io.pyR‹  —  s   t   BufferedRWPairTestc           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 RS(   c         C  s2   |  j  |  j ƒ  |  j ƒ  ƒ } |  j | j ƒ d  S(   N(   Rù   R6   RÎ   R@   (   R   t   pair(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  œ  s    c         C  s½   |  j  j |  j  ƒ } ~ |  j  j |  j  ƒ } |  j t t f d | j d ƒ |  j t t f d | j d ƒ | j |  j ƒ  |  j ƒ  ƒ |  j	 | j d ƒ d ƒ |  j	 | j d ƒ d ƒ d  S(   Nu   uninitialized|has no attributei    R7   (
   Rù   R  R  RS   R™   R9   R    R   R6   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_io.pyR     s    c         C  s8   |  j  |  j ƒ  |  j ƒ  ƒ } |  j |  j | j ƒ d  S(   N(   Rù   R6   Ra   t   UnsupportedOperationRû   (   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_io.pyRý   ®  s    c      	   C  sB   t  j d t f ƒ �' |  j |  j ƒ  |  j ƒ  d d ƒ Wd  QXd  S(   Nu   max_buffer_size is deprecatedi   i   (   RY   Rƒ  Ry   Rù   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_io.pyt,   test_constructor_max_buffer_size_deprecation²  s    	c         C  s<   d t  f d „  ƒ  Y} |  j t |  j | ƒ  |  j  ƒ  ƒ d  S(   Nt   NotReadablec           B  s   e  Z d  „  Z RS(   c         S  s   t  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_io.pyR$   ¹  s    (   R1   R2   R$   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR�  ¸  s   (   R6   Ra   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_io.pyt"   test_constructor_with_not_readable·  s    c         C  s<   d t  f d „  ƒ  Y} |  j t |  j |  j  ƒ  | ƒ  ƒ d  S(   Nt   NotWriteablec           B  s   e  Z d  „  Z RS(   c         S  s   t  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_io.pyR"   À  s    (   R1   R2   R"   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR’  ¿  s   (   R6   Ra   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_io.pyt#   test_constructor_with_not_writeable¾  s    c         C  s§   |  j  |  j d ƒ |  j ƒ  ƒ } |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ |  j  |  j d ƒ |  j ƒ  ƒ } |  j | j d  ƒ d ƒ d  S(   NRY  i   R×   i   RØ   RÜ   (   Rù   RŠ   R6   R`   R9   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_io.pyR"  Å  s    !!c           sy   ‡  f d †  } ˆ  j  | ƒ  j ƒ  d d d g ƒ ˆ  j  | ƒ  j ƒ  d d d g ƒ ˆ  j  | ƒ  j d ƒ d d g ƒ d  S(   Nc             s   ˆ  j  ˆ  j d ƒ ˆ  j ƒ  ƒ S(   Ns	   abc
def
h(   Rù   RŠ   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_io.pyRÌ   Ï  R7   s   abc
s   def
R_   i   (   R`   Rˆ   (   R   R�  (    (   R   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR(  Î  s    ""c         C  s>   |  j  |  j d ƒ |  j ƒ  ƒ } |  j | j d ƒ d ƒ d  S(   NRY  i   R×   (   Rù   RŠ   R6   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_io.pyR$  Ô  s    !c         C  s`   |  j  |  j d ƒ |  j ƒ  ƒ } t d ƒ } |  j | j | ƒ d ƒ |  j | j ƒ  d ƒ d  S(   NRY  i   t   abcde(   Rù   RŠ   R6   R   R`   R/   Rh   (   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_io.pyR'  Û  s    !c         C  s‚   |  j  ƒ  } |  j |  j  ƒ  | ƒ } | j d ƒ | j ƒ  t d ƒ } | j | ƒ d | (| j ƒ  |  j | j d d g ƒ d  S(   NR×   RX  s   ***(   R6   Rù   R    R›   R   R`   R   (   R   t   wR�  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_io.pyR[  â  s    

c         C  s]   |  j  |  j d ƒ |  j ƒ  ƒ } |  j | j d ƒ j d ƒ ƒ |  j | j d ƒ d ƒ d  S(   NRY  i   R×   (   Rù   RŠ   R6   RÍ   R3  R	  R`   R9   (   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_io.pyt	   test_peekî  s    !c         C  s5   |  j  |  j ƒ  |  j ƒ  ƒ } |  j | j ƒ  ƒ d  S(   N(   Rù   R6   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_io.pyt   test_readableô  s    c         C  s5   |  j  |  j ƒ  |  j ƒ  ƒ } |  j | j ƒ  ƒ d  S(   N(   Rù   R6   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_io.pyt   test_writeableø  s    c         C  s5   |  j  |  j ƒ  |  j ƒ  ƒ } |  j | j ƒ  ƒ d  S(   N(   Rù   R6   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_io.pyt   test_seekableü  s    c         C  sL   |  j  |  j ƒ  |  j ƒ  ƒ } |  j | j ƒ | j ƒ  |  j | j ƒ d  S(   N(   Rù   R6   RÎ   R@   RB   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_io.pyt   test_close_and_closed  s    
c         C  s«   d „  } |  j  ƒ  } | | _ |  j  ƒ  } |  j | | ƒ } |  j t ƒ � } | j ƒ  Wd  QX|  j d t | j ƒ ƒ |  j | j	 ƒ |  j
 | j	 ƒ |  j | j	 ƒ d  S(   Nc           S  s   t  d  S(   N(   t   reader_non_existing(    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   reader_close  s    u   reader_non_existing(   R6   RB   Rù   Ra   t	   NameErrort   assertInt   strR  RÍ   R@   RÎ   (   R   Rœ  t   readerRZ  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_io.pyt    test_reader_close_error_on_close  s    		c         C  s«   d „  } |  j  ƒ  } |  j  ƒ  } | | _ |  j | | ƒ } |  j t ƒ � } | j ƒ  Wd  QX|  j d t | j ƒ ƒ |  j | j	 ƒ |  j
 | j	 ƒ |  j | j	 ƒ d  S(   Nc           S  s   t  d  S(   N(   t   writer_non_existing(    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   writer_close  s    u   writer_non_existing(   R6   RB   Rù   Ra   R�  Rž  RŸ  R  RÎ   R@   RÍ   (   R   R£  R   RZ  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_io.pyt    test_writer_close_error_on_close  s    		c         C  s½   d „  } d „  } |  j  ƒ  } | | _ |  j  ƒ  } | | _ |  j | | ƒ } |  j t ƒ � } | j ƒ  Wd  QX|  j d t | j ƒ ƒ |  j | j	 ƒ |  j | j	 ƒ |  j | j	 ƒ d  S(   Nc           S  s   t  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_io.pyRœ  (  s    c           S  s   t  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_io.pyR£  *  s    u   reader_non_existing(
   R6   RB   Rù   Ra   R�  Rž  RŸ  R  RÎ   R@   (   R   Rœ  R£  R   RZ  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_io.pyt'   test_reader_writer_close_error_on_close'  s    				c         C  sÞ   d t  f d „  ƒ  Y} |  j | t ƒ | t ƒ ƒ } |  j | j ƒ  ƒ |  j | t ƒ | t ƒ ƒ } |  j | j ƒ  ƒ |  j | t ƒ | t ƒ ƒ } |  j | j ƒ  ƒ |  j | t ƒ | t ƒ ƒ } |  j | j ƒ  ƒ d  S(   Nt   SelectableIsAttyc           B  s   e  Z d  „  Z d „  Z RS(   c         S  s   t  j |  ƒ | |  _ d  S(   N(   R6   R   t   _isatty(   R   t   isatty(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR   :  s    c         S  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_io.pyR¨  >  s    (   R1   R2   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_io.pyR¦  9  s   	(   R6   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_io.pyt   test_isatty8  s    c         C  s=   |  j  |  j ƒ  |  j ƒ  ƒ } t j | ƒ } d  } d  } d  S(   N(   Rù   R6   R»   R¼   R*   (   R   t   brwR¼   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_weakref_clearingM  s    (   R1   R2   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_io.pyRŒ  š  s*   																						t   CBufferedRWPairTestc           B  s   e  Z e j Z RS(    (   R1   R2   R   t   BufferedRWPairRù   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR¬  S  s   t   PyBufferedRWPairTestc           B  s   e  Z e j Z RS(    (   R1   R2   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_io.pyR®  V  s   t   BufferedRandomTestc           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 RS(   u   rb+u   wb+c         C  s   t  j |  ƒ t j |  ƒ d  S(   N(   R  R  RT  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  ^  s    c         C  s   t  j |  ƒ t j |  ƒ d  S(   N(   R  R  RT  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  b  s    c         C  s•   |  j  d
 ƒ } |  j | d ƒ } |  j d | j d ƒ ƒ | j d ƒ | j d ƒ |  j | j ƒ |  j d | j ƒ  ƒ |  j d | j d	 ƒ d  S(   Nt   asdft   ghjki   t   asi   t   dddt   eeet   dddeeei    (   R°  R±  (   R6   Rù   R`   R9   R    RÎ   R   (   R   R¸   t   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_io.pyt   test_read_and_writef  s    c         C  s^  |  j  d ƒ } |  j | ƒ } |  j d | j d ƒ ƒ |  j d | j ƒ  ƒ | j d d ƒ |  j d | j d ƒ ƒ | j d ƒ | j d d ƒ |  j d | j ƒ  ƒ |  j d	 | j ƒ  ƒ | j d
 d ƒ |  j d | j ƒ  ƒ | j d d ƒ |  j d | j ƒ  ƒ |  j d | j d ƒ ƒ | j ƒ  |  j d | j ƒ  ƒ |  j	 t
 | j d ƒ d  S(   Nt	   asdfghjklR²  i   i    R°  i   t   123ft	   asdf123fli	   iüÿÿÿi   i   i   t   fli   g        (   RŠ   Rù   R`   R9   R(   R'   R    R›   R‹   Ra   Rb   (   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_io.pyt   test_seek_and_tellq  s$    
c         C  sý   |  j  d ƒ } |  j | ƒ } |  j d | | d ƒ ƒ | j d ƒ |  j d | | d ƒ ƒ |  j d | j ƒ  ƒ | j ƒ  |  j d | j ƒ  ƒ |  j d | | ƒ ƒ | j d d ƒ | j d	 ƒ | j ƒ  | j d d ƒ |  j d	 | | d
 ƒ ƒ d  S(   NR)  RÚ   i   t   12RÜ   i   RU  i    t   XYZi   (   RŠ   Rù   R`   R    R(   R›   R'   (   R   t	   read_funcR¸   Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   check_flush_and_readˆ  s    

c         C  s   |  j  d „  ƒ d  S(   Nc         W  s   |  j  | Œ  S(   N(   R9   (   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_io.pyRÌ   ›  R7   (   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_io.pyt   test_flush_and_readš  s    c         C  s   d d „ } |  j  | ƒ d  S(   Niÿÿÿÿc         S  s;   t  | d k r | n d ƒ } |  j | ƒ } t | |  ƒ 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_io.pyt	   _readintož  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_io.pyt   test_flush_and_readinto�  s    c         C  s   d d „ } |  j  | ƒ d  S(   Niÿÿÿÿc         S  sB   |  j  | ƒ } | d k r( | |  } n  |  j t | ƒ d ƒ | S(   Niÿÿÿÿi   (   R3  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_io.pyt   _peek¥  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_io.pyt   test_flush_and_peek¤  s    c         C  sŒ   |  j  d ƒ } |  j | ƒ } | j d ƒ | j ƒ  | j d ƒ | j ƒ  | j d d ƒ |  j d | j ƒ  ƒ |  j d | j ƒ  ƒ d  S(   NR)  t   123t   45i    t	   12345fghi(   RŠ   Rù   R    R›   R'   R`   R‹   R9   (   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_io.pyt   test_flush_and_write¯  s    

c         C  s   t  j |  ƒ t j |  ƒ d  S(   N(   R  RG  RT  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRG  »  s    c         C  s0   d „  } |  j  | ƒ d „  } |  j  | ƒ d  S(   Nc         S  s   |  j  d ƒ d  S(   Ni   (   R3  (   Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRÄ  À  s    c         S  s=   |  j  ƒ  } |  j d d ƒ |  j d ƒ |  j | d ƒ d  S(   Niÿÿÿÿi   i    (   R(   R'   R3  (   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_io.pyRÄ  Ã  s    (   Rd  (   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_io.pyt   test_writes_and_peek¿  s    		c         C  s   d „  } |  j  | ƒ d  S(   Nc         S  s!   |  j  d d ƒ |  j d ƒ d  S(   Niÿÿÿÿi   (   R'   R9   (   Rþ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _readË  s    (   Rd  (   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_io.pyt   test_writes_and_readsÊ  s    	c         C  s   d „  } |  j  | ƒ d  S(   Nc         S  s!   |  j  d d ƒ |  j 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_io.pyt   _read1Ñ  s    (   Rd  (   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_io.pyt   test_writes_and_read1sÐ  s    	c         C  s   d „  } |  j  | ƒ d  S(   Nc         S  s'   |  j  d d ƒ |  j t d ƒ ƒ d  S(   Niÿÿÿÿ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_io.pyRË  ×  s    (   Rd  (   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_io.pyt   test_writes_and_readintosÖ  s    	c         C  sê   xã d d g D]Õ } |  j  d ƒ } |  j | d ƒ } |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ | j d | ƒ |  j | j ƒ  | d ƒ | j ƒ  |  j | j ƒ  | d ƒ | j ƒ  } |  j | d d | d d | ƒ q Wd  S(	   Ni   i   t   Ai
   i   t   Bi	   t
   AAAAAAAAAA(   RŠ   Rù   R`   R9   R(   R    R›   R‹   (   R   t   overwrite_sizeR¸   Rþ   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_io.pyt   test_write_after_readaheadÜ  s    
	c         C  sÑ   d „  } d } x» t  d t | ƒ ƒ D]¤ } x› t  | t | ƒ ƒ D]„ } |  j | ƒ } |  j | d ƒ } | | | | ƒ | j ƒ  t | ƒ } d | | <d | | <|  j | j ƒ  | d | | f ƒ qA Wq% Wd  S(   Nc         S  s[   | | k s t  ‚ |  j | ƒ |  j | | ƒ |  j d ƒ |  j | ƒ |  j d ƒ d  S(   Ns   s   (   Rl   R'   R9   R    (   Rþ   t   pos1t   pos2(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   mutateò  s    s   €�‚ƒ„i    id   i   i   u   failed result for i=%d, j=%d(   R¯   R   RŠ   Rù   R›   R   R`   R‹   (   R   R×  R   R­   t   jR¸   Rþ   t   expected(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_write_rewind_writeð  s    	


c         C  sƒ   |  j  d ƒ } |  j | d ƒ } |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ d  S(	   NRÐ  i
   id   i   t   AAt   BBi   RÒ  (   RŠ   Rù   R`   R9   R0   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_io.pyt!   test_truncate_after_read_or_write
  s    c         C  s   t  j |  ƒ t j |  ƒ d  S(   N(   R  RH  RT  (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRH    s    c         C  s‘  |  j  d ƒ �ê } |  j | d ƒ �Ï } | j d ƒ |  j | j d ƒ d ƒ | j d ƒ |  j | j d ƒ d ƒ | j d ƒ t d ƒ } | j | ƒ |  j | d	 ƒ | j d
 ƒ |  j | j d ƒ d ƒ | j	 ƒ  |  j | j
 ƒ  d ƒ Wd  QXWd  QX|  j  d ƒ �� } |  j | d ƒ �f } |  j | j d ƒ d ƒ | j d ƒ |  j | j d ƒ d ƒ | j	 ƒ  |  j | j
 ƒ  d ƒ Wd  QXWd  QXd  S(   Nt   abcdefghid   t   1i   R   t   2RØ   t   3R   t   4R_   t   1b2d3f4hR×   R±   RÛ   t   a2c(   RŠ   Rù   R    R`   R9   R#  R   R/   R3  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_io.pyt   test_interleaved_read_write  s*    
"
c         C  s½   |  j  d ƒ �¨ } |  j | ƒ �� } | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j ƒ  |  j | j ƒ  d ƒ Wd  QXWd  QXd  S(	   Ns
   ab
cdef
g
Rß  s   b
Rà  s   def
Rá  s   
s
   1b
2def
3
(   RŠ   Rù   R    R`   Rp   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_io.pyt   test_interleaved_readline_write/  s    
(   R1   R2   R>  R  R  R  R·  R¼  RÀ  RÁ  RÃ  RÅ  RÉ  RG  RÊ  RÌ  RÎ  RÏ  RÔ  RÚ  RÝ  RH  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_io.pyR¯  Z  s,   																			t   CBufferedRandomTestc           B  s,   e  Z e j Z d  „  Z d „  Z d „  Z RS(   c         C  sc   t  j |  ƒ t j d k r_ |  j ƒ  } |  j | ƒ } |  j t t t	 f | j
 | t j ƒ n  d  S(   Niÿÿÿ(   R¯  R  R�   RÅ   R6   Rù   Ra   RÈ   RM  RS   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_io.pyR  @  s    c         C  s   t  j |  ƒ t j |  ƒ d  S(   N(   RL  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_io.pyR¿   J  s    c      	   C  s9   |  j  t d ƒ �! |  j t j ƒ  d d d ƒ Wd  QXd  S(   Nu   BufferedRandomi   (   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_io.pyRQ  N  s    (   R1   R2   R   t   BufferedRandomRù   R  R¿   RQ  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRç  <  s   		
	t   PyBufferedRandomTestc           B  s   e  Z e j Z RS(    (   R1   R2   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_io.pyRé  T  s   t   StatefulIncrementalDecoderc           B  sh   e  Z d  Z d d „ Z d „  Z d „  Z d „  Z d „  Z e d „ Z	 d „  Z
 e Z e d	 „  ƒ Z RS(
   uœ  
    For testing seek/tell behavior with a stateful, buffering decoder.

    Input is a sequence of words.  Words may be fixed-length (length set
    by input) or variable-length (period-terminated).  In variable-length
    mode, extra periods are ignored.  Possible words are:
      - 'i' followed by a number sets the input length, I (maximum 99).
        When I is set to 0, words are space-terminated.
      - 'o' followed by a number sets the output length, O (maximum 99).
      - Any other word is converted into a word followed by a period on
        the output.  The output word consists of the input word truncated
        or padded out with hyphens to make its length equal to O.  If O
        is 0, the word is output verbatim without truncating or padding.
    I and O are initially set to 1.  When I changes, any buffered input is
    re-scanned according to the new I.  EOF also terminates the last word.
    u   strictc         C  s!   t  j j |  | ƒ |  j ƒ  d  S(   N(   t   codecst   IncrementalDecoderR   t   reset(   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_io.pyR   u  s    c         C  s   d t  |  ƒ S(   Nu   <SID %x>(   t   id(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   __repr__y  s    c         C  s"   d |  _  d |  _ t ƒ  |  _ d  S(   Ni   (   R­   t   oR   Rc   (   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRí  |  s    		c         C  s6   |  j  d A|  j d A} } t |  j ƒ | d | f S(   Ni   id   (   R­   Rð  R   Rc   (   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_io.pyt   getstate�  s    c         C  sO   | \ } } t  | ƒ |  _ t | d ƒ \ } } | d A| d A|  _ |  _ d  S(   Nid   i   (   R   Rc   t   divmodR­   Rð  (   R   t   stateRc   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_io.pyt   setstate…  s    c         C  sÅ   d } x– | D]Ž } |  j  d k r` | d k rM |  j r] | |  j ƒ  7} q] q› |  j j | ƒ q |  j j | ƒ t |  j ƒ |  j  k r | |  j ƒ  7} q q W| rÁ |  j rÁ | |  j ƒ  7} n  | S(   Nu    i    u   .(   R­   Rc   t   process_wordR   R   (   R   t   inputt   finalt   outputR   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   decode‹  s    	c         C  sö   d } |  j  d t d ƒ k rG t d t |  j  d p8 d ƒ ƒ |  _ nŸ |  j  d t d ƒ k rˆ t d t |  j  d py d ƒ ƒ |  _ n^ |  j  j d ƒ } t | ƒ |  j k  rÃ | d |  j 7} n  |  j rÜ | |  j  } n  | d	 7} t ƒ  |  _  | S(
   Nu    i    u   iic   i   u   ou   asciiu   -u   .(	   Rc   t   ordRa  t   intR­   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_io.pyRõ  œ  s    ((	
c         C  s_   |  j  r[ | d k r[ t j d ƒ } t j d d d | j d d  d d  d d  d d  d	 |  ƒ Sd  S(
   Nu   test_decoderu   latin-1Rí   Ru   Rù  t   incrementalencodert   streamreadert   streamwritert   incrementaldecoder(   t   codecEnabledRë  t   lookupt	   CodecInfoRu   R*   (   t   clsRí   t   latin1(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   lookupTestDecoder®  s    	(   R1   R2   R3   R   Rï  Rí  Rñ  Rô  R~   Rù  Rõ  R   t   classmethodR  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRê  c  s   					t   StatefulIncrementalDecoderTestc        
   B  s•   e  Z d  Z d e d f d e d f d e d f d e d f d e d	 f d
 e d f d e d d d d d d d d d d f g Z d „  Z RS(   uB   
    Make sure the StatefulIncrementalDecoder actually works.
    R0  u   a.b.c.d.t   oiabcdu   abcd.s   oi...abcd...s   i.o6.x.xyz.toolongtofit.u   x-----.xyz---.toolon.s
   i.i2.o6xyzu   xy----.z-----.s   i.o3.i6.abcdefghijklmnopu   abc.ghi.mno.s;   i.o29.a.b.cde.o15.abcdefghijabcdefghij.i3.a.b.c.d.ei00k.l.mu   a----------------------------.u   b----------------------------.u   cde--------------------------.u   abcdefghijabcde.u   a.b------------.u   .c.------------.u   d.e------------.u   k--------------.u   l--------------.u   m--------------.c         C  s„   x? |  j  D]4 \ } } } t ƒ  } |  j | j | | ƒ | ƒ q
 Wt ƒ  } |  j | j d ƒ d ƒ |  j | j d d ƒ d ƒ d  S(   NR  u    R7   i   u   abcd.(   t
   test_casesRê  R`   Rù  (   R   Rö  t   eofRø  RØ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_decoderÝ  s    	 	(   R1   R2   R3   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_io.pyR  ½  s   	#t   TextIOWrapperTestc           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, d( ƒ d) „  ƒ Z- d* „  Z. d+ „  Z/ d, „  Z0 d- „  Z1 d. „  Z2 d/ „  Z3 d0 „  Z4 RS(1   c         C  s/   d |  _  d j d ƒ |  _ t j t j ƒ d  S(   Ns   AAA
BBBCCC
DDD
EEE
s   AAA
BBB
CCC
DDD
EEE
u   ascii(   t   testdataRù  t
   normalizedRY   RZ   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_io.pyR\   ê  s    	c         C  s   t  j t  j ƒ d  S(   N(   RY   RZ   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_io.pyR]   ï  s    c         C  s   |  j  d ƒ } |  j | d ƒ } |  j | ƒ } | j | d d d d ƒ|  j | j d ƒ |  j | j t ƒ | j | d d d t ƒ|  j | j d ƒ |  j | j t ƒ |  j d	 | j	 ƒ  ƒ |  j
 t | j | d d
 ƒ|  j
 t | j | d d ƒd  S(   Ns   Ã©

iè  R   u   latin1Ræ   u   
u   utf8t   line_bufferingu   Ã©
i*   u   xyzzy(   RŠ   RR  t   TextIOWrapperR   R`   R   R  R~   R!   Rp   Ra   Rb   RS   (   R   t   rR   t   t(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  ò  s    c         C  s�   |  j  j |  j  ƒ } ~ |  j  j |  j  ƒ } |  j t t | ƒ |  j t t f d | j d ƒ | j	 |  j
 ƒ  ƒ |  j | j d ƒ d ƒ d  S(   Nu   uninitialized|has no attributei    u    (   R  R  Ra   R8  Rü   R  RS   R™   R9   R   R6   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_io.pyR     s    c         C  sE   |  j  ƒ  } |  j | ƒ } t j ƒ  � |  j | d d ƒWd  QXd  S(   NR   u	   hex_codec(   RŠ   RŠ  RY   t   check_py3k_warningsR  (   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_io.pyt*   test_non_text_encoding_codecs_are_rejected  s    c         C  sì   |  j  ƒ  } |  j | ƒ } |  j | ƒ } |  j | j ƒ  | ƒ |  j | d d ƒ} | j d ƒ |  j | j ƒ  ƒ | j ƒ  |  j | j ƒ  d ƒ |  j	 t
 | j ƒ t | ƒ |  j | j d ƒ |  j | j d ƒ |  j | j ƒ d  S(   NR   u   asciiu   howdyt   howdyu   strict(   RŠ   RŠ  R  Rú   Rû   R    RÎ   R‹   R`   Ra   RS   Rü   R   R9  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_io.pyRý     s    

c         C  sÃ   |  j  d j d ƒ ƒ } |  j | ƒ } |  j | d d ƒ} |  j j } |  j t | ƒ d | ƒ d | _ |  j t | ƒ d | ƒ d | _ |  j t | ƒ d | ƒ | j j	 ƒ  t | ƒ d  S(	   Nu   hellou   utf-8R   u#   <%s.TextIOWrapper encoding='utf-8'>u   dummyu1   <%s.TextIOWrapper name=u'dummy' encoding='utf-8'>R  u0   <%s.TextIOWrapper name='dummy' encoding='utf-8'>(
   RŠ   Ru   RR  R  R2   R`   Rü   Rí   Rc   Rû   (   R   R¸   R   R  t   modname(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  '  s    		c         C  s¦   |  j  ƒ  } |  j | d ƒ } |  j | d d d t ƒ} | j d ƒ |  j | j ƒ  d ƒ | j d ƒ |  j | j ƒ  d ƒ | j d	 ƒ |  j | j ƒ  d
 ƒ d  S(   Niè  Ræ   u   
R  u   XR7   u   Y
Zs   XY
Zu   ABs   XY
ZAB(   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_io.pyt   test_line_buffering8  s    c         C  sg   |  j  ƒ  } |  j | d d ƒ} |  j | j d ƒ |  j | ƒ } |  j | j ƒ t j | j ƒ d  S(   NR   u   utf8(   RŠ   R  R`   R   t   assertIsNotNoneRë  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_io.pyt   test_encodingC  s    c         C  sø   |  j  d ƒ } |  j | d d ƒ} |  j t | j ƒ |  j  d ƒ } |  j | d d d d ƒ} |  j t | j ƒ |  j  d ƒ } |  j | d d d d ƒ} |  j | j ƒ  d ƒ |  j  d ƒ } |  j | d d d d ƒ} |  j | j ƒ  d	 ƒ d  S(
   Ns   abc
ÿ
R   u   asciiR9  u   strictu   ignoreu   abc

u   replaceu   abc
ï¿½
(   RŠ   R  Ra   t   UnicodeErrorR9   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_io.pyt   test_encoding_errors_readingL  s    c         C  s,  |  j  ƒ  } |  j | d d ƒ} |  j t | j d ƒ |  j  ƒ  } |  j | d d d d ƒ} |  j t | j d ƒ |  j  ƒ  } |  j | d d d d d d ƒ} | j d	 ƒ | j ƒ  |  j | j ƒ  d
 ƒ |  j  ƒ  } |  j | d d d d d d ƒ} | j d	 ƒ | j ƒ  |  j | j ƒ  d ƒ d  S(   NR   u   asciiu   Ã¿R9  u   strictu   ignoreRæ   u   
u	   abcÃ¿def
s   abcdef
u   replaces   abc?def
(   RŠ   R  Ra   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_io.pyt   test_encoding_errors_writing^  s$    	
	
c      
   C  sé  d d d d d g } d  d d d d d g g d | g d	 d d d
 d g g d d d g g d d d d g g g } d } xj| D]b} t d j | ƒ j | ƒ ƒ } x;t t f D]-} x$t d d ƒ D]} x
| D]\ } }	 |  j |  j | ƒ | ƒ }
 |  j	 |
 d | d | ƒ} | r}g  } xe t ry| j
 d ƒ } | d k rIPn  |  j t | ƒ d ƒ | j | | j ƒ  ƒ q$Wn t | ƒ } x- t | |	 ƒ D] \ } } |  j | | ƒ q™W|  j t | ƒ t |	 ƒ ƒ qÓ WqÆ Wq° Wq Wd  S(    Nu   unix
u	   windows
u   os9u   last
u   nonlu   windows
u   os9
u    u   
u	   os9last
u   
u   unix
windows
u   os9last
nonlu   u   unix
windowsu   
os9u	   last
nonlu   utf-8u   latin-1u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-bei   i
   Ræ   R   i   (   u   utf-8u   latin-1u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-be(   R*   R   RM   Ru   R~   R!   R¯   RR  RŠ   R  R9   R`   R   R   Rp   R   t   zip(   R   t   input_linesR+  t	   encodingsR   R-   t   do_readsR“   Ræ   t	   exp_linesRþ   t   textiot	   got_linest   c2t   got_linet   exp_line(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_newlinesv  s:    	  		c      
   C  s#  d } | j  d d ƒ j  d d ƒ } xø d  | j d ƒ j t ƒ f d | j d ƒ j t ƒ f d d d	 d
 d d g f d d d d g f d d d d d d g f g D]x \ } } |  j | ƒ } |  j | d d d | ƒ} |  j | j ƒ  | ƒ | j	 d ƒ |  j | j
 ƒ  d j | ƒ ƒ q£ Wd  S(   Ns   AAA
BB B
CCCDDDEEE
FFF
GGGs   
s   
s   u   asciiu    u   
u   AAA
u   BB B
u   CCCDDDEEE
u   FFF
u   GGGu   
u   AAA
BB B
CCCDDDEEE
u   u   AAA
BB B
CCCu   DDDu   EEEu   
FFFu   
GGGR   Ræ   i    (   t   replaceR*   Rù  R  R!   RŠ   R  R`   Rˆ   R'   R9   RM   (   R   R  R  Ræ   RÙ  R+   t   txt(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_newlines_input   s    (c         C  sä   i d d 6d d 6d d 6d d 6} d  | t j f g t | j ƒ  ƒ } x• | D]� \ } } |  j ƒ  } |  j | d d	 d
 | ƒ} | j d ƒ | j d ƒ | j d ƒ | j ƒ  |  j	 | j
 t ƒ |  j	 | j ƒ  | ƒ qO Wd  S(   Ns   AAA
BBB
CCC
XY
Zu    u   
s   AAABBBCCCXYZu   s   AAA
BBB
CCC
XY
Zu   
R   u   asciiRæ   u   AAA
Bu   BB
CCC
u   XY
Z(   R*   RÀ   t   linesept   sortedt   itemsRŠ   R  R    R›   R`   R@   R~   R‹   (   R   t   testdictR+  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_io.pyt   test_newlines_output°  s    
&
c           s}   g  ‰ |  j  ‰  d ˆ  f ‡  ‡ f d †  ƒ  Y} | ƒ  } |  j | d d ƒ} | j d ƒ ~ t j ƒ  |  j d g ˆ ƒ d  S(   Nt	   MyBytesIOc             s   e  Z ‡  ‡ f d  †  Z RS(   c           s$   ˆ j  |  j ƒ  ƒ ˆ  j |  ƒ d  S(   N(   R   R‹   RB   (   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_io.pyRB   Æ  s    (   R1   R2   RB   (    (   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_io.pyR0  Å  s   R   u   asciiu   abcR×   (   RŠ   R  R    RY   R�   R`   (   R   R0  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_io.pyRž   Â  s    		
c           sp   g  ‰ d |  j  f ‡  ‡ f d †  ƒ  Y‰  |  j ƒ  } ˆ  | d d ƒ} ~ t j ƒ  |  j ˆ d d d g ƒ d  S(   Nt   MyTextIOc             s>   e  Z ‡  ‡ f d  †  Z ‡  ‡ f d †  Z ‡  ‡ f d †  Z RS(   c           sB   ˆ j  d ƒ y t ˆ  |  ƒ j } Wn t k
 r6 n X| ƒ  d  S(   Ni   (   R   RG   R˜   R™   (   R   R   (   R1  Rš   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR˜   Ó  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   RB   (   R   (   R1  Rš   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRB   Û  s    c           s$   ˆ j  d ƒ t ˆ  |  ƒ j ƒ  d  S(   Ni   (   R   RG   R›   (   R   (   R1  Rš   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR›   Þ  s    (   R1   R2   R˜   RB   R›   (    (   R1  Rš   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR1  Ò  s   R   u   asciii   i   i   (   R  RŠ   RY   R�   R`   (   R   R   R  (    (   R1  Rš   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  Ð  s    "
c           s³   ˆ j  ƒ  ‰  ‡  ‡ f d †  } t j d ƒ � } ˆ j t | ƒ Wd  QX| j ƒ  j ƒ  } | r¯ ˆ j t | j	 ƒ  ƒ d ƒ ˆ j
 | j d ƒ | ƒ ˆ j
 | j d ƒ | ƒ n  d  S(   Nc             s   ˆ j  ˆ  ƒ j 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_io.pyR   ë  s    u   stderri   u   Exception IOError: u    ignored(   R?   RY   R  Ra   R™   R‹   R  R`   R   R  RÍ   R	  R
  (   R   R   RN   (    (   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_io.pyR  ç  s    c         C  s(  x!d D]} xd D]} |  j  t j d d | ƒ} | | _ |  j | j d ƒ d ƒ | j ƒ  |  j  t j d d | ƒ} | | _ |  j | j ƒ  d ƒ |  j | j ƒ  d ƒ | j ƒ  } |  j | j	 d ƒ d ƒ |  j | j d  ƒ d ƒ | j	 d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j d ƒ d ƒ |  j | j ƒ  d ƒ |  j | j ƒ  | ƒ |  j | j	 d ƒ d ƒ |  j | j	 d d ƒ | ƒ |  j | j d ƒ d ƒ |  j | j	 | ƒ | ƒ |  j | j ƒ  d ƒ | j d ƒ r|  j | | ƒ n  | j ƒ  q Wq Wd  S(   Ni   i   i   i   i   i   i   i   i   i    i!   i?   i@   iA   u   asciiu   latin1u   utf8u   w+R   u   abcu   r+i    u   abu   cu    u   defu   utf(   i   i   i   i   i   i   i   i   i   i    i!   i?   i@   iA   (   u   asciiu   latin1u   utf8(   R   RY   R[   R   R`   R    RB   R(   R9   R'   R*   R	  t   multi_line_test(   R   t	   chunksizet   encR   t   cookie(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_basic_ioø  s6    	
	c         C  s  | j  d ƒ | j ƒ  d } g  } x d D]w } g  } x/ t | ƒ D]! } | j | | t | ƒ ƒ qC Wd j | ƒ d } | j | j ƒ  | f ƒ | j | ƒ q* W| j  d ƒ g  }	 x? t rù | j ƒ  }
 | j	 ƒ  } | sã Pn  |	 j |
 | f ƒ q» W|  j
 |	 | ƒ d  S(   Ni    u	   sÃ¿à¿¿ï¿¿i   i   i   i   i   i   i   i    i!   i>   i?   i@   iA   iè  u    u   
(   i    i   i   i   i   i   i   i   i    i!   i>   i?   i@   iA   iè  (   R'   R0   R¯   R   R   RM   R(   R    R!   Rp   R`   (   R   R   R4  t   samplet   wlinesRê   t   charsR­   t   linet   rlinesR	   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR2  	  s(    
	c         C  s9  |  j  t j d d d ƒ} | j ƒ  } | j d ƒ | j ƒ  } | j d ƒ | j ƒ  } | j d ƒ |  j | j ƒ  | ƒ |  j | j ƒ  d ƒ |  j | j ƒ  | ƒ |  j | j ƒ  d ƒ |  j | j ƒ  | ƒ | j d ƒ x1 | D]) } |  j | d ƒ |  j t	 | j ƒ qè W|  j | j ƒ  | ƒ | j
 ƒ  d  S(   Nu   w+R   u   utf8u   Ã¿
i    (   R   RY   R[   R(   R    R'   R`   Rp   Ra   RA   RB   (   R   R   t   p0t   p1t   p2R:  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_telling+	  s$    c   
      C  s  t  ƒ  } | d } d | } t | j d ƒ ƒ } |  j t | ƒ t | ƒ ƒ d } t | j d ƒ ƒ } | | } |  j t j d ƒ } | j | d ƒ | j	 ƒ  |  j t j d d d ƒ} | j
 | ƒ }	 |  j |	 | j d ƒ ƒ |  j | j ƒ  | ƒ |  j | j ƒ  | ƒ d  S(	   Ni   u   au   utf-8u   è¢ˆ
u   wbu   rR   u   ascii(   R   R   Ru   R`   R   R   RY   R[   R    RB   R9   Rù  R(   Rp   (
   R   t
   chunk_sizet   prefix_sizet   u_prefixt   prefixt   u_suffixt   suffixR:  R   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_io.pyt   test_seeking?	  s     	



c         C  su   d } |  j  t j d ƒ } | j | ƒ | j ƒ  |  j  t j d d d ƒ} | j d | _ | j ƒ  | j ƒ  d  S(   Ns   à¿¿
u   wbu   rR   u   utf-8i   (   R   RY   R[   R    RB   R   Rp   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_io.pyt   test_seeking_tooQ	  s    
	
c           s¶   d ‰  d ‡  ‡ f d † } d t  _ z� x$ t j D] \ } } } | | ƒ q1 WxS t j D]H \ } } } ˆ  t | ƒ d } d | } | d } | | | | ƒ qX WWd  d t  _ Xd  S(   Ni€   i    c           sE  ˆ j  t j d ƒ } | j |  ƒ | j ƒ  ˆ j  t j d d ƒ} ˆ  | _ | j ƒ  } | j ƒ  xÛ t | t | ƒ d ƒ D]À } x· d d t | ƒ | g D]œ } ˆ j  t j d d ƒ} ˆ j	 | j | ƒ | |  ƒ | j
 ƒ  } ˆ j	 | j | ƒ | | | | !ƒ | j | ƒ ˆ j	 | j ƒ  | | ƒ | j ƒ  q� Wq} Wd S(   u   Tell/seek to various points within a data stream and ensure
            that the decoded data returned by read() is consistent.u   wbR   u   test_decoderi   i   N(   R   RY   R[   R    RB   R   R9   R¯   R   R`   R(   R'   (   R-   t   min_posR   t   decodedR­   RØ  R5  (   t
   CHUNK_SIZER   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_seek_and_tell_with_datab	  s     
	
  $i   i   t   .(   Rê  R   R  R	  R   (   R   RK  Rö  t   _t   offsetRC  RH  (    (   RJ  R   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR¼  ]	  s    	

c         C  sÍ   d } d } xº | D]² } |  j  ƒ  } |  j | d | ƒ} | j | ƒ | j | ƒ | j d	 ƒ |  j | j ƒ  | d
 ƒ | j d	 ƒ |  j | j ƒ  | d
 ƒ |  j | j ƒ  | d
 j | ƒ ƒ q Wd  S(   Nu
   1234567890u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-beR   i    i   (   u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-be(   RŠ   R  R    R'   R`   R9   R‹   Ru   (   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_io.pyt   test_encoded_writesŒ	  s"         c         C  sB   d |  j  f d „  ƒ  Y} |  j | ƒ  ƒ } |  j t | j ƒ d  S(   Nt
   UnReadablec           B  s   e  Z d  „  Z RS(   c         S  s   t  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_io.pyR$   ¢	  s    (   R1   R2   R$   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRP  ¡	  s   (   RŠ   R  Ra   RA   R9   (   R   RP  R)  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_unreadable 	  s    c         C  sb   |  j  |  j d ƒ ƒ } d } x- t rM | j d ƒ } | s@ Pn  | | 7} q! W|  j | d ƒ d  S(   Ns   AA
BBu    i   u   AA
BB(   R  RŠ   R!   R9   R`   (   R   R)  t   readsRÛ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_read_one_by_one§	  s    	c         C  s–   |  j  |  j d ƒ ƒ } |  j | j ƒ  d d d g ƒ | j d ƒ |  j | j d  ƒ d d d g ƒ | j d ƒ |  j | j d ƒ d d g ƒ d  S(   Ns   AA
BB
CCu   AA
u   BB
u   CCi    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_io.pyR(  ±	  s    "c         C  sr   |  j  |  j d d d ƒ ƒ } d } x- t rU | j d ƒ } | sH Pn  | | 7} q) W|  j | d d d ƒ d  S(   NRÐ  i   s   
Bu    i€   u   Au   
B(   R  RŠ   R!   R9   R`   (   R   R)  RR  RÛ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_read_by_chunkº	  s     	c         C  s[   d d d g } |  j  ƒ  } |  j | ƒ } | j | ƒ | j ƒ  |  j | j ƒ  d ƒ d  S(   Nu   abu   cdu   efRY  (   RŠ   R  Rq   R›   R`   R‹   (   R   RE  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_io.pyR|  Å	  s    
c         C  sa   t  d d d g ƒ } |  j ƒ  } |  j | ƒ } | j | ƒ | j ƒ  |  j | j ƒ  d ƒ d  S(   Nu   abu   cdu   efRY  (   R   RŠ   R  Rq   R›   R`   R‹   (   R   RE  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_io.pyR}  Í	  s    
c         C  sd   |  j  |  j ƒ  ƒ } |  j t | j d d d g ƒ |  j t | j d  ƒ |  j t | j d ƒ d  S(   Ni   i   i   R×   (   R  RŠ   Ra   Rb   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_io.pyR~  Õ	  s    c         C  sn   |  j  |  j |  j ƒ d d ƒ} d } x- t rV | j d ƒ } | sI Pn  | | 7} q* W|  j | |  j ƒ d  S(   NR   u   asciiu    i   (   R  RŠ   R  R!   R9   R`   R  (   R   R)  RR  RÛ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue1395_1Û	  s    !	c         C  sw   |  j  |  j |  j ƒ d d ƒ} d | _ d } x- t r_ | j d ƒ } | sR Pn  | | 7} q3 W|  j | |  j ƒ d  S(   NR   u   asciii   u    (   R  RŠ   R  R   R!   R9   R`   R  (   R   R)  RR  RÛ   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue1395_2ç	  s    !		c         C  s“   |  j  |  j |  j ƒ d d ƒ} d | _ | j d ƒ } | | j d ƒ 7} | | j ƒ  7} | | j ƒ  7} | | j ƒ  7} |  j | |  j ƒ d  S(   NR   u   asciii   (   R  RŠ   R  R   R9   Rp   R`   R  (   R   R)  RR  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue1395_3ó	  s    !	c         C  s`   |  j  |  j |  j ƒ d d ƒ} d | _ | j d ƒ } | | j ƒ  7} |  j | |  j ƒ d  S(   NR   u   asciii   (   R  RŠ   R  R   R9   R`   R  (   R   R)  RR  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue1395_4þ	  s
    !	c         C  s|   |  j  |  j |  j ƒ d d ƒ} d | _ | j d ƒ } | j ƒ  } | j d ƒ | j | ƒ |  j | j d ƒ d ƒ d  S(   NR   u   asciii   i    u   BBB
(   R  RŠ   R  R   R9   R(   R'   R`   (   R   R)  RR  R	   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue1395_5
  s    !	c         C  sG   |  j  |  j ƒ } |  j | d d ƒ} |  j | j ƒ  | j ƒ  ƒ d  S(   NR   u   ascii(   RŠ   R  R  R`   R%   (   R   Rc   R)  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_issue2282
  s    c         C  sú   t  j } xê d D]â } |  j | d d | ƒ�  } | j d ƒ | j ƒ  } Wd  QX|  j | d ƒ �& } |  j | j ƒ  d j | ƒ ƒ Wd  QX|  j | d d | ƒ� } | j d	 ƒ Wd  QX|  j | d ƒ �& } |  j | j ƒ  d
 j | ƒ ƒ Wd  QXq Wd  S(   Nu	   utf-8-sigu   utf-16u   utf-32u   wR   u   aaau   rbu   au   xxxu   aaaxxx(   u	   utf-8-sigu   utf-16u   utf-32(   RY   R[   R   R    R(   R`   R9   Ru   (   R   t   filenamet   charsetR   R	   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_append_bom
  s    	%c         C  sç   t  j } x× d D]Ï } |  j | d d | ƒ�  } | j d ƒ | j ƒ  } Wd  QX|  j | d d | ƒ�; } | j | ƒ | j d ƒ | j d	 ƒ | j d
 ƒ Wd  QX|  j | d ƒ �& } |  j | j ƒ  d j | ƒ ƒ Wd  QXq Wd  S(   Nu	   utf-8-sigu   utf-16u   utf-32u   wR   u   aaau   r+u   zzzi    u   bbbu   rbu   bbbzzz(   u	   utf-8-sigu   utf-16u   utf-32(	   RY   R[   R   R    R(   R'   R`   R9   Ru   (   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_io.pyt   test_seek_bom%
  s    	c         C  sl   |  j  t j d ƒ � } |  j | j d ƒ Wd  QX|  j  t j d d d ƒ� } |  j | j d ƒ Wd  QXd  S(   Nu   wu   strictR9  u   replace(   R   RY   R[   R`   R9  (   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_io.pyt   test_errors_property4
  s    u!   Threading required for this test.c           sþ   t  j ƒ  ‰  |  j t j d d d ƒ�v ‰ ‡  ‡ f d †  } g  t d ƒ D]! } t  j d | d | f ƒ ^ qI } t j | ˆ  j ƒ � t	 j
 d ƒ Wd  QXWd  QX|  j t j ƒ �G ‰ ˆ j ƒ  } x1 t d ƒ D]# } |  j | j d	 | ƒ d ƒ qÍ WWd  QXd  S(
   Nu   wR}   i   c           s%   d |  } ˆ  j  ƒ  ˆ j | ƒ d  S(   Nu   Thread%03d
(   t   waitR    (   R.   t   text(   t   eventR   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   run?
  s    

i   R;  RÏ   g{®Gáz”?u   Thread%03d
(   R?  t   EventR   RY   R[   R¯   R@  RA  t   setRB  RC  R9   R`   R   (   R   Rc  Rf   RF  t   contentR.   (    (   Rb  R   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_threads_write:
  s    1c           s·   |  j  |  j |  j ƒ d d ƒ‰ g  ‰  ‡  ‡ f d †  } | ˆ _ |  j t ˆ j ƒ |  j ˆ j ƒ |  j ˆ j	 j ƒ |  j ˆ  ƒ |  j
 ˆ  d ƒ |  j
 ˆ  d ƒ d „  ˆ _ d  S(   NR   u   asciic             s#   ˆ j  ˆ j j  g ˆ  (t ƒ  ‚ d  S(   N(   R@   Rc   RA   (    (   R@   R)  (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRË   Q
  s    i    i   c           S  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_io.pyRÌ   [
  R7   (   R  RŠ   R  R›   Ra   RA   RB   RÍ   R@   Rc   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_io.pyRÕ   L
  s    !	c         C  sV   |  j  |  j |  j ƒ d d ƒ} | j ƒ  | j ƒ  | j ƒ  |  j t | j ƒ d  S(   NR   u   ascii(   R  RŠ   R  RB   Ra   RS   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_io.pyRÖ   ]
  s
    !


c         C  s\   |  j  |  j |  j ƒ d d ƒ} |  j |  j ƒ } |  j t t f ƒ � | | _ Wd  QXd  S(   NR   u   ascii(   R  RŠ   R  Ra   R™   Rb   Rc   (   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_io.pyR  d
  s    !c           sÚ   d ˆ  j  f ‡  f d †  ƒ  Y} d ˆ  j  f ‡  f d †  ƒ  Y} ˆ  j | d ƒ ƒ } ˆ  j t ƒ � | j d ƒ Wd  QXˆ  j | d ƒ ƒ } ˆ  j t ƒ � | j ƒ  Wd  QXˆ  j | d ƒ ƒ } ˆ  j | j ƒ  d ƒ d  S(   Nt   NonbytesStreamc             s   e  Z ˆ  j j Z RS(    (   R1   R2   t   StringIOR9   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_io.pyRh  m
  s   c             s   e  Z ˆ  j j Z RS(    (   R1   R2   Ri  R9   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_io.pyRh  o
  s   u   ai   (   Ri  R  t   maybeRaisesRb   R9   Rp   R`   (   R   Rh  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_io.pyt   test_read_nonbytesj
  s    c           s¸   d d
 d „  ƒ  Y‰  ‡  f d †  } t  j d ƒ } t j | d t ƒ �? t j | d | ƒ �# t j t j d ƒ d d ƒ} Wd  QXWd  QX|  j t	 ƒ � | j
 d	 ƒ | j ƒ  Wd  QXd  S(   Nt
   BadEncoderc           B  s   e  Z d  „  Z RS(   c         S  s   d S(   Nu   spam(    (   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_io.pyRu   ~
  s    (   R1   R2   Ru   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRl  }
  s   c           s   ˆ  ƒ  S(   N(    (   R  (   Rl  (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   get_bad_encoder€
  s    u   rot13u   _is_text_encodingu   incrementalencodert   fooR   u   bar(    (   Rë  R  RY   t	   swap_attrR!   R   R  RŠ   Ra   Rb   R    R›   (   R   Rm  t   rot13R  (    (   Rl  s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_illegal_encoderz
  s    *c           sˆ  ‡ f d †  ‰  t  j ƒ  �) ˆ j ˆ j d ƒ d d d d ƒ} Wd  QXˆ j t ƒ � | j d ƒ Wd  QXt  j ƒ  �) ˆ j ˆ j d ƒ d d d d ƒ} Wd  QXˆ j t ƒ � | j ƒ  Wd  QXt  j ƒ  �) ˆ j ˆ j d ƒ d d d d ƒ} Wd  QXˆ j t ƒ � | j ƒ  Wd  QX‡  f d †  } | d	 ƒ } ˆ j t ƒ � | j d	 ƒ Wd  QX| d
 ƒ } ˆ j t ƒ � | j d	 ƒ Wd  QXd  S(   Nc            sQ   t  j d ƒ }  t |  _ z( ˆ  j ˆ  j d ƒ d d d d ƒ} Wd  t |  _ X| S(   Nu   quopri_codect   aaaaaaRæ   u   
R   (   Rë  R  R!   t   _is_text_encodingR  RŠ   R~   (   t   quopriR  (   R   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _make_illegal_wrapper�
  s    	
Rr  Ræ   u   
R   u   quopri_codeci   c           s^   d d ‡ f d †  ƒ  Y‰  ‡  f d †  } t  j d ƒ } t j | d | ƒ � ˆ ƒ  SWd  QXd  S(   Nt
   BadDecoderc             s   e  Z ‡  f d  †  Z RS(   c           s   ˆ  S(   N(    (   R   (   t   getstate_ret_val(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRñ  ³
  s    (   R1   R2   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_io.pyRv  ²
  s   c           s   ˆ  ƒ  S(   N(    (   R  (   Rv  (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _get_bad_decoderµ
  s    u   quopri_codecu   incrementaldecoder(    (   Rë  R  RY   Ro  (   Rw  Rx  Rt  (   Ru  (   Rv  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_io.pyt   _make_very_illegal_wrapper±
  s    
i*   (    (   RY   R  R  RŠ   Rj  Rb   R9   Rp   (   R   R  Ry  (    (   Ru  R   s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_illegal_decoderŠ
  s.    

c         C  s…   |  j  |  j d ƒ d d ƒ} | j d ƒ | j ƒ  | j ƒ  |  j  |  j d ƒ d d ƒ} | j d ƒ | j d ƒ | j ƒ  d  S(   Nt   testR   u   asciii   u   x(   R  RŠ   R9   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_io.pyt   test_issue25862Â
  s    

(5   R1   R2   R\   R]   R  R  R  Rý   R  R  R  R  R  R'  R*  R/  Rž   R  R  R6  R2  R?  RF  RG  R¼  RO  RQ  RS  R(  RT  R|  R}  R~  RU  RV  RW  RX  RY  RZ  R]  R^  R_  Rö   RJ  R?  Rg  RÕ   RÖ   R  Rk  Rq  Rz  R|  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR  è  s`   														*											/			
											
										8t   CTextIOWrapperTestc           B  s8   e  Z d  „  Z d „  Z d „  Z d „  Z e j j Z	 RS(   c         C  sº   |  j  d ƒ } |  j | d ƒ } |  j | ƒ } |  j t | j | d d ƒ|  j t | j ƒ |  j t | j | d d ƒ|  j t | j ƒ |  j j |  j ƒ } |  j t	 t
 | ƒ d  S(   Ns   Ã©

iè  Ræ   i*   u   xyzzy(   RŠ   RR  R  Ra   Rb   R   RS   R9   R  R8  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_io.pyRN  Ð
  s    c         C  s¶   t  j t j d ƒ } |  j | ƒ } |  j | d d ƒ} | j d ƒ | | _ t j	 | ƒ } ~ t j
 ƒ  |  j | ƒ  | ƒ |  j t j d ƒ � } |  j | j ƒ  d ƒ Wd  QXd  S(   Nu   wbR   u   asciiu   456defu   rbt   456def(   R   Rœ   RY   R[   RŠ  R  R    Rf   R»   R¼   R�   R½   R   R`   R9   (   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_io.pyR¿   Ü
  s    	
c         C  s�   xŒ t  d ƒ D]~ } |  j |  j ƒ  |  j ƒ  ƒ } |  j | d d ƒ} |  j |  j ƒ  |  j ƒ  ƒ } |  j | d d ƒ} | | _ | | _ q Wt j ƒ  d  S(   Niè  R   u   ascii(   R¯   R­  R6   R  t   buddyRY   R�   (   R   R­   t   b1t   t1t   b2t   t2(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt!   test_rwpair_cleared_before_textioì
  s    	c         C  s;   |  j  |  j ƒ  d d ƒ} |  j t ƒ � | ` Wd  QXd  S(   NR   u   ascii(   R  RŠ   Ra   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_io.pyt    test_del__CHUNK_SIZE_SystemErrorú
  s    (
   R1   R2   RN  R¿   R„  R…  Rö   t   TestCaseRa   Rj  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR}  Î
  s
   				t   PyTextIOWrapperTestc           B  s   e  Z e j d  „  ƒ Z RS(   c         o  s	   d  Vd  S(   N(    (   R   RÏ   t   kwds(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRj    s    (   R1   R2   t
   contextlibt   contextmanagerRj  (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR‡    s   t   IncrementalNewlineDecoderTestc           B  s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c           ss  ‡  ‡ f d †  } | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ ˆ j  t ˆ  j d d	 t ƒˆ  j ƒ  | d
 d ƒ | d d ƒ | d d d	 t ƒ| d d d	 t ƒ| d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d d ƒ | d
 d ƒ | d d ƒ | d
 d ƒ d  S(   Nc           sU   ˆ  j  ƒ  } ˆ j ˆ  j |  | � | ƒ ˆ  j | ƒ ˆ j ˆ  j |  | � | ƒ d  S(   N(   Rñ  R`   Rù  Rô  (   R   RN   RÐ   Ró  (   t   decoderR   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _check_decode  s    s   è¢ˆu   è¢ˆs   èu    s   ¢s   ˆR7   R÷  s   
u   
s   R±   u   
as   
u   

s   
as   è¢ˆ
u   è¢ˆ
s   è¢ˆ(   Ra   t   UnicodeDecodeErrorRù  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_io.pyt   check_newline_decoding_utf8
  s4    
c           sf  g  ‰ | d  k	 r< t j | ƒ ƒ  ‰ ‡  ‡ ‡ f d †  } n d  ‰ ‡  ‡ f d †  } |  j ˆ  j d  ƒ | d ƒ |  j ˆ  j d ƒ | d ƒ |  j ˆ  j d ƒ | d ƒ |  j ˆ  j d ƒ | d ƒ |  j ˆ  j d ƒ | d ƒ |  j d
 j ˆ ƒ d ƒ ˆ  j ƒ  d } ˆ d  k	 r6ˆ j ƒ  ˆ j | ƒ } n  |  j ˆ  j | ƒ d ƒ |  j ˆ  j d  ƒ d  S(   Nc           s4   x- ˆ j  |  ƒ D] } ˆ j ˆ  j | ƒ ƒ q Wd  S(   N(   Ru   R   Rù  (   RN   R   (   RŒ  t   encodert   result(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _decode_bytewise8  s    c           s+   x$ |  D] } ˆ j  ˆ  j | ƒ ƒ q Wd  S(   N(   R   Rù  (   RN   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_io.pyR’  >  s    u   abc
u   
u   
abcu   
u   abcu   abcu   u    u   abc

abcabc
abcabc(   u   
u   
(   u   
u   
(   u   u   
u   
(	   R*   Rë  t   getincrementalencoderR`   t   newlinesRM   Rí  Ru   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_io.pyt   check_newline_decoding4  s0    






c      	   C  sŒ   d
 } xK | D]C } | o( t j | ƒ ƒ  } |  j | d	 t ƒ} |  j | | ƒ q Wt j d ƒ ƒ  } |  j | d	 t ƒ} |  j | ƒ d  S(   Nu   utf-8u   latin-1u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-bet	   translate(	   Nu   utf-8u   latin-1u   utf-16u	   utf-16-leu	   utf-16-beu   utf-32u	   utf-32-leu	   utf-32-be(   R*   Rë  t   getincrementaldecodert   IncrementalNewlineDecoderR!   R•  R�  (   R   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_io.pyt   test_newline_decoderU  s      c           sQ   ‡  f d †  } ˆ  j  d  d t ƒ} | | ƒ ˆ  j  d  d t ƒ} | | ƒ d  S(   Nc           so   ˆ  j  |  j d  ƒ ˆ  j  |  j d ƒ d ƒ ˆ  j  |  j d  ƒ ˆ  j  |  j d ƒ d ƒ ˆ  j  |  j d  ƒ d  S(   Nu   à´€u   à¨€(   R`   R”  R*   Rù  (   t   dec(   R   (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _checkg  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_io.pyt   test_newline_bytese  s
    
c         C  s†   x? d
 D]7 } t  j d ƒ ƒ  } |  j | | ƒ } |  j | ƒ q Wt  j d ƒ ƒ  } |  j | d d ƒ} |  j | j d ƒ d	 ƒ d  S(   Niþÿÿÿiÿÿÿÿi   i   u   utf-8R–  i    s   
u   
(   iþÿÿÿiÿÿÿÿi   i   (   Rë  R—  R˜  R�  R`   Rù  (   R   R–  RŒ  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_translater  s    (   R1   R2   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_io.pyR‹    s
   	*	!		t   CIncrementalNewlineDecoderTestc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRž  |  s   t   PyIncrementalNewlineDecoderTestc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRŸ    s   t
   MiscIOTestc           B  s¡   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 e j e d	 ƒ d
 „  ƒ Z e j e d	 ƒ d „  ƒ Z d „  Z d „  Z RS(   c         C  s   t  j t  j ƒ d  S(   N(   RY   RZ   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_io.pyR]   ‡  s    c         C  s·   x° |  j  j D]¢ } t |  j  | d  ƒ } |  j | | ƒ | d k rJ q q d | j ƒ  k sh | d k r„ |  j t | t ƒ | ƒ q | j	 d ƒ s |  j t | |  j
 ƒ ƒ q q Wd  S(   Nu   openu   erroru   UnsupportedOperationu   SEEK_(   R   t   __all__t   getattrR*   R  t   lowerRÍ   t
   issubclassR8  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_io.pyt   test___all__Š  s    c         C  sÏ  |  j  t j d d d ƒ} |  j | j d ƒ | j ƒ  |  j  t j d ƒ } |  j | j t j ƒ |  j | j j t j ƒ |  j | j j j t j ƒ |  j | j d ƒ |  j | j j d ƒ |  j | j j j d ƒ | j ƒ  |  j  t j d ƒ } |  j | j d ƒ |  j | j j d ƒ |  j | j j j d ƒ |  j  | j	 ƒ  d d t
 ƒ} |  j | j d ƒ |  j | j j d ƒ |  j | j | j	 ƒ  ƒ |  j | j j | j	 ƒ  ƒ | j ƒ  | j ƒ  d  S(	   Nu   wbR}   i    u   Uu   rbu   w+u   rb+R³   (   R   RY   R[   R`   Rr   RB   Rí   Rc   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_io.pyt   test_attributes•  s,    


c         C  sØ  xÑi d d 6i d d 6i d d 6d d 6i d d 6d d 6i d d 6d d 6i d d 6i d	 d 6i d d 6d d 6i d d 6d d 6i d	 d 6d d 6i d
 d 6i d d 6i d
 d 6d d 6i d
 d 6d d 6i d d 6d d 6g D]ô} |  j  t j | � } | j ƒ  |  j t | j ƒ |  j t | j ƒ |  j t | j ƒ |  j t | j	 ƒ t
 | d ƒ ru|  j t | j d ƒ n  |  j t | j ƒ t
 | d ƒ r°|  j t | j d ƒ n  t
 | d ƒ rÕ|  j t | j ƒ n  t
 | d ƒ r|  j t | j t d ƒ ƒ n  |  j t | j ƒ |  j t | j ƒ |  j t | j d ƒ |  j t | j d ƒ |  j t | j ƒ |  j t | j ƒ |  j t | j d | d k r d n d ƒ |  j t | j g  ƒ |  j t t | ƒ qÜ Wd  S(   Nu   wu   modeu   wbi   u	   bufferingi   i    u   ru   rbu   w+u   w+bu   peeku   read1i   u   readallu   readintou   bR7   u    (   R   RY   R[   RB   Ra   RS   R›   R#   R¨  t   __iter__t   hasattrR3  R9   R#  R4  R/   R   Rp   Rˆ   R'   R(   R0   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_io.pyt   test_io_after_close°  sR    






c         C  s  |  j  t |  j ƒ |  j  t |  j d ƒ |  j  t |  j d d d d ƒ |  j  t |  j d d d  ƒ |  j d d ƒ } |  j | j d ƒ d t f d „  ƒ  Y} | d ƒ } |  j d | ƒ } | | _ | | _ t	 j
 | ƒ } ~ ~ t j ƒ  |  j | ƒ  | ƒ d  S(	   Ni   i   i   i   u    i    t   Cc           B  s   e  Z RS(    (   R1   R2   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRª  ä  s   (   Ra   Rb   RU   R*   R`   Rs  t   unicodeR   RÛ   R»   R¼   RY   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_io.pyt   test_blockingioerrorÜ  s    		
c         C  s\   |  j  |  j t j ƒ |  j  |  j t j ƒ |  j  |  j t j ƒ |  j  |  j t j ƒ d  S(   N(   t   assertIsInstanceR„   R×   t   ABCMetaR¦   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_io.pyt	   test_abcsï  s    c      	   C  sH  |  j  t j d d d ƒ�S } |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ Wd  QX|  j  t j d ƒ �S } |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ Wd  QX|  j  t j d ƒ �S } |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ |  j | | j ƒ Wd  QXd  S(   Nu   wbR}   i    u   w(	   R   RY   R[   R­  R„   R¦   t   assertNotIsInstanceR¨   Rª   (   R   t	   abcmoduleR   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _check_abc_inheritanceö  s    c         C  s   |  j  |  ƒ 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_io.pyt   test_abc_inheritance  s    c         C  s   |  j  t ƒ d  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_io.pyt   test_abc_inheritance_official  s    u   fcntl required for this testc         C  s   |  j  d ƒ d  S(   Ni   i   i @  (   t   _test_nonblock_pipe_write(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   test_nonblock_pipe_write_bigbuf  s    c         C  s   |  j  d ƒ 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_io.pyt!   test_nonblock_pipe_write_smallbuf  s    c         C  sX   t  j  | t  j ƒ } |  j | d ƒ t  j  | t  j | t j Bƒ } |  j | d ƒ d  S(   Niÿÿÿÿi    (   t   fcntlt   F_GETFLt   assertNotEqualt   F_SETFLRÀ   t
   O_NONBLOCKR`   (   R   RÔ   t   flagsRH   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   _set_non_blocking  s    c         C  sT  g  } g  } t  j ƒ  \ } } |  j | ƒ |  j | ƒ |  j | d d d t d | ƒ} |  j | d d d t d | ƒ} | �| �rxß d D]× } yV d	 }	 xI t ré t |	 d
 d g ƒ | }
 | j |
 ƒ | j |
 ƒ |	 d 7}	 q¡ WWq� |  j k
 re} |  j	 | j
 d	 t j ƒ | d | j  | d <| j | j ƒ  ƒ d }
 | j |
 ƒ | j |
 ƒ q� Xq� Wxr t rÞy | j ƒ  PWqm|  j k
 rÚ} |  j	 | j
 d	 t j ƒ |  j	 | j d	 ƒ | j | j ƒ  ƒ qmXqmW| t | j d  ƒ 7} Wd  QXWd  QXd j | ƒ d j | ƒ } } |  j	 | | ƒ |  j | j ƒ |  j | j ƒ d  S(   NRr   u   rbR³   R}   u   wbi'  iI   i–  i    i   ia   i   iÿÿÿÿt   BLOCKEDR7   (   i'  iI   i–  (   RÀ   t   pipeR¾  R   R!   R   R   R    RU   R`   RÏ   t   errnot   EAGAINRs  R9   R›   t   iterR*   RM   RÍ   R@   (   R   R“   t   sentt   receivedR  R•  t   rft   wfRD  R­   t   msgR1  (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRµ    sJ    !! 		
"(   R1   R2   R]   R¥  R¦  R©  R¬  R¯  R²  R³  R´  Rö   RJ  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_io.pyR   …  s   				,						t   CMiscIOTestc           B  s   e  Z e Z d  Z RS(   u,   RuntimeError: could not find io module state(   R1   R2   R   t   shutdown_error(    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRÉ  N  s   t   PyMiscIOTestc           B  s   e  Z e Z d  Z RS(   u$   LookupError: unknown encoding: ascii(   R1   R2   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_io.pyRË  R  s   u   ntu%   POSIX signals required for this test.t   SignalsTestc           B  s×   e  Z d  „  Z d „  Z d „  Z e j e d ƒ e j e	 j
 d k d ƒ d „  ƒ ƒ Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e j e d ƒ d „  ƒ Z d „  Z d „  Z RS(   c         C  s   t  j  t  j |  j ƒ |  _ d  S(   N(   t   signalt   SIGALRMt   alarm_interruptt   oldalrm(   R   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyR\   Z  s    c         C  s   t  j  t  j |  j ƒ 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_io.pyR]   ]  s    c         C  s   d d d  S(   Ni   i    (    (   R   t   sigt   frame(    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRÏ  `  s    u!   Threading required for this test.u   freebsd5u   freebsd6u   freebsd7u'   issue #12429: skip test on FreeBSD <= 7c   	   	     sg  g  ‰ ‡  ‡ f d †  } t  j d | ƒ } t | _ t j ƒ  \ ‰  } zÄ |  j j | | � } | j ƒ  zI t	 j
 d ƒ |  j t ƒ �' | j | t j t | ƒ d ƒ Wd QXWd t	 j
 d ƒ | j ƒ  Xˆ j t j ˆ  d ƒ ƒ |  j ˆ | d d !| d d !g ƒ Wd t j | ƒ t j ˆ  ƒ y | j ƒ  Wn+ t k
 ra} | j t j k rb‚  qbn XXd S(   u�   Check that a partial write, when it gets interrupted, properly
        invokes the signal handler, and bubbles up the exception raised
        in the latter.c            s#   t  j ˆ  d ƒ }  ˆ j |  ƒ d  S(   Ni   (   RÀ   R9   R   (   RN   (   R  t   read_results(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRË  k  s    R;  i   Ni    i   (   R?  R@  R!   t   daemonRÀ   RÀ  R   R   t   startRÍ  t   alarmRa   R‘   R    RY   t   PIPE_MAX_SIZER   RM   R   R9   R`   RB   RA   RÁ  t   EBADF(	   R   t   itemR   t   fdopen_kwargsRË  R  R•  t   wioR1  (    (   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_io.pyt   check_interrupted_writec  s.    	
,(c         C  s    |  j  d d d d d d ƒd  S(   NR�   Rr   u   wbR}   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_io.pyt!   test_interrupted_write_unbuffered’  s    c         C  s   |  j  d d d d ƒd  S(   NR�   Rr   u   wb(   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_io.pyt   test_interrupted_write_buffered•  s    c         C  s    |  j  d d d d d d ƒd  S(   Nu   xyR�   Rr   u   wR   u   ascii(   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_io.pyt   test_interrupted_write_text˜  s    c   	        s6  ‡  ‡ f d †  } t  j  t  j | ƒ t j ƒ  \ } } |  j j | | � ‰ z¾ t  j d ƒ |  j t t	 f ƒ �V } xL x+ t
 d ƒ D] } ˆ j ˆ  ƒ ˆ j ƒ  q„ Wt j | t ˆ  ƒ d ƒ qw WWd  QX| j } t | t	 ƒ r	|  j t | ƒ j d ƒ t | ƒ ƒ n  Wd  t  j d ƒ ˆ j ƒ  t j | ƒ Xd  S(   Nc            s   ˆ j  ˆ  ƒ d d d  S(   Ni   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_io.pyt   on_alarmœ  s    i   id   u   reentrant calli    (   RÍ  RÎ  RÀ   RÀ  R   R   RÖ  Ra   R‘   t   RuntimeErrorR¯   R    R›   R9   R   R  t
   isinstanceRÍ   RŸ  R	  RB   (	   R   R-   RÚ  Rà  R  R•  t   cmR­   t   exc(    (   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_io.pyt   check_reentrant_write›  s$    $	,
c         C  s   |  j  d d d ƒd  S(   NR�   Rr   u   wb(   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_io.pyt   test_reentrant_write_buffered¶  s    c         C  s   |  j  d d d d d ƒd  S(   Nu   xyRr   u   wR   u   ascii(   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_io.pyt   test_reentrant_write_text¹  s    c           sÌ   t  j ƒ  \ } ‰  t | d <‡  f d †  } t j t j | ƒ zU |  j j | | � } t  j ˆ  d ƒ t j d ƒ |  j	 | | j
 d ƒ ƒ d ƒ Wd t j d ƒ | j ƒ  t  j ˆ  ƒ t  j | ƒ Xd S(	   uÇ   Check that a buffered read, when it gets interrupted (either
        returning a partial result or EINTR), properly invokes the signal
        handler and retries if the latter returned successfully.u   closefdc           s   t  j ˆ  d ƒ d  S(   Nt   bar(   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_io.pyt   alarm_handlerÂ  s    Rn  i   i   u   foobarNi    (   RÀ   RÀ  R~   RÍ  RÎ  R   R   R    RÖ  R`   R9   RB   (   R   Rù  RÚ  R  Ré  t   rio(    (   R•  s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   check_interrupted_read_retry¼  s    
#
c         C  s   |  j  d „  d d ƒd  S(   Nc         S  s   |  j  d ƒ S(   Nu   latin1(   Rù  (   Rf   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRÌ   Õ  R7   Rr   u   rb(   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_io.pyt%   test_interrupterd_read_retry_bufferedÔ  s    c         C  s   |  j  d „  d d ƒd  S(   Nc         S  s   |  S(   N(    (   Rf   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRÌ   Ù  R7   Rr   u   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_io.pyt!   test_interrupterd_read_retry_textØ  s    c   	        s¯  t  j d ƒ ‰ t  j } t j ƒ  \ ‰ } t | d <g  ‰ t ‰ d
 g ‰ ‡ ‡ ‡ ‡ ‡ f d †  } t j d | ƒ ‰ t	 ˆ _
 ‡  f d †  } ‡ f d †  ‰  t j t j | ƒ zŽ |  j j | | � } t j d ƒ |  j | | j | | ƒ ƒ | j ƒ  t	 ‰ ˆ j ƒ  |  j ˆ d ƒ |  j | t d	 „  ˆ Dƒ ƒ ƒ Wd
 t j d ƒ t	 ‰ t j | ƒ t j ˆ ƒ y | j ƒ  Wn+ t k
 r©} | j t j k rª‚  qªn XXd
 S(   uÈ   Check that a buffered write, when it gets interrupted (either
        returning a partial result or EINTR), properly invokes the signal
        handler and retries if the latter returned successfully.u   selectu   closefdc            s€   y\ xU ˆ sZ xH ˆ ˆ j  ˆ g g  g  d ƒ d k rV t j ˆ d ƒ }  ˆ j |  ƒ q Wq WWn t k
 r{ } | ˆ  d <n Xd  S(   Ng      ð?i    i   (   t   selectRÀ   R9   R   t   BaseException(   RN   Rä  (   t   errorR  RÓ  Rî  t   write_finished(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRË  í  s    	(R;  c           s$   t  j  t  j ˆ  ƒ t  j d ƒ d  S(   Ni   (   RÍ  RÎ  RÖ  (   RÑ  RÒ  (   t   alarm2(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyt   alarm1÷  s    c           s   ˆ  j  ƒ  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_io.pyRò  ú  s    i   i    c         s  s   |  ] } t  | ƒ Vq d  S(   N(   R   (   t   .0Rf   (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pys	   <genexpr>  s    N(   RY   t   import_moduleR×  RÀ   RÀ  R~   R*   R?  R@  R!   RÔ  RÍ  RÎ  R   R   RÖ  R`   R    R›   RM   R½   t   sumRB   RA   RÁ  RØ  (	   R   RÙ  RÚ  RD  R•  RË  Ró  RÛ  R1  (    (   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_io.pyt   check_interrupted_write_retryÜ  s>    	
		

$c         C  s   |  j  d d d ƒd  S(   NRf   Rr   u   wb(   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_io.pyt&   test_interrupterd_write_retry_buffered  s    c         C  s   |  j  d d d d d ƒd  S(   Nu   xRr   u   wR   u   latin1(   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_io.pyt"   test_interrupterd_write_retry_text  s    (   u   freebsd5u   freebsd6u   freebsd7(   R1   R2   R\   R]   RÏ  Rö   RJ  R?  t   skipIfR�   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_io.pyRÌ  W  s$   			-									>	t   CSignalsTestc           B  s   e  Z e Z RS(    (   R1   R2   R   (    (    (    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pyRû  !  s   t   PySignalsTestc           B  s   e  Z e Z d  Z d  Z RS(   N(   R1   R2   RW   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_io.pyRü  $  s   c            s‰  t  t t t t t t t t t	 t
 t t t t t t t t f }  t t t t t t f } t j d g } t d „  | Dƒ ƒ } t d „  | Dƒ ƒ } t ƒ  ‰  | j ‡  f d †  | Dƒ ƒ | j ‡  f d †  | Dƒ ƒ t j | d <x’ |  D]Š } | j  j! d ƒ r2xo | j" ƒ  D] \ } } t# | | | ƒ qWqê | j  j! d ƒ rê x- | j" ƒ  D] \ } } t# | | | ƒ qQWqê qê Wt$ j% |  Œ  d  S(	   Nu   IncrementalNewlineDecoderc         s  s$   |  ] } | t  t | ƒ f Vq 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_io.pys	   <genexpr>?  s    c         s  s$   |  ] } | t  t | ƒ f Vq d  S(   N(   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_io.pys	   <genexpr>@  s    c         3  s)   |  ] } | j  ˆ  d  | j  f Vq d S(   u   CN(   R1   (   Rô  Rf   (   t   globs(    s‚   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_io.pys	   <genexpr>B  s    c         3  s)   |  ] } | j  ˆ  d  | j  f Vq d S(   u   PyN(   R1   (   Rô  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_io.pys	   <genexpr>C  s    u   openu   Cu   Py(&   Rò   Rõ   RL  RS  Rˆ  R‹  R¬  R®  Rç  Ré  R  Rž  RŸ  R}  R‡  RÉ  RË  Rû  Rü  R6   R<   RE   R?   RK   R   R   R¡  t   dictt   globalst   updateRW   t   OpenWrapperR1   R	  R-  t   setattrRY   t   run_unittest(   R+  t   mockst   all_memberst   c_io_nst   py_io_nsR{  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_io.pyt	   test_main-  s6    	u   __main__(b   R3   t
   __future__R    R   RÀ   R�   RB  R®   R<  Rö   R»   Rv   R×   RÍ  RÁ  t	   itertoolsR   R   t   collectionsR   R   R{  R   RY   R‰  Rë  R   t   _pyioRW   R?  t   ImportErrorR*   R¸  t   typet   __metaclass__t
   py3k_bytesR   R   R   R   R¦   R4   R5   R6   R:   R;   R<   R=   R>   R?   RC   RD   RE   RŠ   RI   RJ   RK   RT   RV   R†  RX   Rò   Rõ   Rø   R  R  RL  RS  RT  Rˆ  R‹  RŒ  R¬  R®  R¯  Rç  Ré  Rì  Rê  t   registerR  R  R  R}  R‡  R‹  Rž  RŸ  R   RÉ  RË  Rú  Rí   RÌ  Rû  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_io.pyt   <module>   s¸   

			8
,ÿ ¾‰¾0ÿ -¹â	W+ÿ ÿ è4tÉÉ		#