ó
ŠwÛjc           @   s  d  d l  Z  d  d l Z d  d l Z d  d l 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
 m Z d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d f  d „  ƒ  YZ e j e e d ƒ d ƒ d  e j f d! „  ƒ  Yƒ Z d" „  Z e d# k re ƒ  n  d S($   iÿÿÿÿN(   t   StringIO(   t   test_supportt   Test_Csvc           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 RS(   s°   
    Test the underlying C csv parser in ways that are not appropriate
    from the high level interface. Further tests of this nature are done
    in TestDialectRegistry.
    c         C   se  |  j  t | ƒ |  j  t | d  ƒ |  j  t | | d d ƒ|  j  t | | d d ƒ|  j  t | | d d ƒ|  j  t j | | d ƒ |  j  t | | d d  ƒ|  j  t | | d d ƒ|  j  t | | d d ƒ|  j  t | | d d  ƒ|  j  t | | d d ƒ|  j  t | | d	 d  ƒ|  j  t | | d	 t j d d
 ƒ|  j  t | | d	 t j d d  ƒd  S(   Nt   bad_attri    t	   delimitert   XXt   fooi   t	   quotechart   lineterminatort   quotingt    (   t   assertRaisest	   TypeErrort   Nonet   csvt   Errort	   QUOTE_ALL(   t   selft   ctort   arg(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   _test_arg_valid   s     c         C   s   |  j  t j g  ƒ d  S(   N(   R   R   t   reader(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_reader_arg_valid)   s    c         C   s   |  j  t j t ƒ  ƒ d  S(   N(   R   R   t   writerR    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_writer_arg_valid,   s    c         G   s-  | | Œ  } |  j  | j j d ƒ |  j  | j j t ƒ |  j  | j j d  ƒ |  j  | j j d ƒ |  j  | j j d ƒ |  j  | j j	 t
 j ƒ |  j  | j j t ƒ |  j  | j j t ƒ |  j t t | j d ƒ |  j t t | j d d ƒ |  j t t | j d ƒ |  j t t | j d d  ƒ d  S(   Nt   ,s   
t   "R   t   :R	   (   t   assertEqualt   dialectR   t   doublequotet   Truet
   escapecharR   R   R   R	   R   t   QUOTE_MINIMALt   skipinitialspacet   Falset   strictR   R   t   delattrt   setattrt   AttributeError(   R   R   t   argst   obj(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   _test_default_attrs/   s    c         C   s   |  j  t j g  ƒ d  S(   N(   R*   R   R   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_reader_attrsA   s    c         C   s   |  j  t j t ƒ  ƒ d  S(   N(   R*   R   R   R    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_writer_attrsD   s    c         G   s  t  d d d t d d d d d d	 d
 t j d t d t ƒ } | | | Ž  } |  j | j j d ƒ |  j | j j t ƒ |  j | j j	 d ƒ |  j | j j
 d ƒ |  j | j j d	 ƒ |  j | j j t j ƒ |  j | j j t ƒ |  j | j j t ƒ d  S(   NR   R   R   R    s   \R   s   R   t   *R	   R"   R$   (   t   dictR#   R   t
   QUOTE_NONER   R   R   R   R   R    R   R   R	   R"   R$   (   R   R   R(   t   kwargsR)   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   _test_kw_attrsG   s    	c         C   s   |  j  t j g  ƒ d  S(   N(   R1   R   R   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_reader_kw_attrsW   s    c         C   s   |  j  t j t ƒ  ƒ d  S(   N(   R1   R   R   R    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_writer_kw_attrsZ   s    c         G   sã   d d d „  ƒ  Y} | | f } | | Œ  } |  j  | j j d ƒ |  j  | j j t ƒ |  j  | j j d ƒ |  j  | j j d ƒ |  j  | j j d ƒ |  j  | j j t	 j
 ƒ |  j  | j j t ƒ |  j  | j j t ƒ d  S(   NR   c           B   s;   e  Z d  Z e Z d Z d Z d Z e j	 Z
 e Z e Z RS(   t   -t   ^t   $t   #(   t   __name__t
   __module__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_csv.pyR   _   s   	R4   R5   R6   R7   (    (   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_csv.pyt   _test_dialect_attrs]   s    	c         C   s   |  j  t j g  ƒ d  S(   N(   R:   R   R   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_reader_dialect_attrss   s    c         C   s   |  j  t j t ƒ  ƒ d  S(   N(   R:   R   R   R    (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_writer_dialect_attrsv   s    c         K   s“   t  j ƒ  \ } } t j | d ƒ } zP t j | | � } | j | ƒ | j d ƒ |  j | j	 ƒ  | | j
 j ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bi    (   t   tempfilet   mkstempt   ost   fdopenR   R   t   writerowt   seekR   t   readR   R   t   closet   unlink(   R   t   fieldst   expectR0   t   fdt   namet   fileobjR   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   _write_testz   s    
c         K   sŸ   t  j ƒ  \ } } t j | d ƒ } z\ t j | | � } |  j | ƒ � | j | ƒ Wd  QX| j d ƒ |  j	 | j
 ƒ  d ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bi    R
   (   R=   R>   R?   R@   R   R   R   RA   RB   R   RC   RD   RE   (   R   t   excRF   R0   RH   RI   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_csv.pyt   _write_error_test‡   s    
c         C   s¨   |  j  t j d  ƒ |  j d d ƒ |  j d  g d ƒ |  j  t j d  g d t j ƒd d	 d „  ƒ  Y} |  j  t | ƒ  ƒ d d
 d „  ƒ  Y} |  j  t | ƒ  g ƒ d  S(   NR
   s   ""R	   t   BadListc           B   s   e  Z d  „  Z d „  Z RS(   c         S   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_csv.pyt   __len__›   s    c         S   s   | d k r t  ‚ n  d  S(   Ni   (   t   IOError(   R   t   i(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   __getitem__�   s    (   R8   R9   RO   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_csv.pyRN   š   s   	t   BadItemc           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   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_csv.pyt   __str__¢   s    (   R8   R9   RT   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyRS   ¡   s   (    (    (    (   RM   R   R   R   RK   R/   RP   (   R   RN   RS   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_write_arg_valid”   s    c         C   s.   d d } |  j  | | g d | | f ƒ d  S(   Nt   XiPÃ  s   %s,%s(   RK   (   R   t	   bigstring(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_write_bigfield¦   s    
c         C   sÇ   |  j  d d d g d ƒ |  j t j d d d g d t j ƒ|  j  d d d g d d t j ƒ|  j  d d d g d d t j ƒ|  j  d d d g d d t j ƒ|  j  d d g d	 d t j ƒd  S(
   Nt   ai   s   p,qs	   a,1,"p,q"R	   s   "a",1,"p,q"s   "a","1","p,q"s   a
bs	   "a
b","1"(   RK   RM   R   R   R/   R!   t   QUOTE_NONNUMERICR   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_write_quoting¬   s    



c      	   C   s  |  j  d d d g d d d ƒ|  j t j d d d g d d  d t ƒ|  j  d d d g d	 d d d t ƒ|  j  d
 g d d d d t j ƒ|  j  d
 g d d d d t j d t ƒ|  j  d
 g d d d d t j ƒ|  j  d d d g d d d d t j ƒd  S(   NRY   i   s   p,qs	   a,1,"p,q"R    s   \s   p,"q"R   s   a,1,"p,\"q\""R   s   """"R	   s   \"s   a,1,p\,q(   RK   RM   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_csv.pyt   test_write_escape¹   s    c         C   sï   d d
 d „  ƒ  Y} t  j | ƒ  ƒ } |  j t | j d g g ƒ t j ƒ  \ } } t j | d ƒ } zk t  j | ƒ } |  j t	 | j d  ƒ | j d d g d d g g ƒ | j d ƒ |  j | j ƒ  d	 ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Nt
   BrokenFilec           B   s   e  Z d  „  Z RS(   c         S   s
   t  ‚ d  S(   N(   RP   (   R   t   buf(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   writeÌ   s    (   R8   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_csv.pyR]   Ë   s   RY   s   w+bt   bt   ct   di    s
   a,b
c,d
(    (   R   R   R   RP   t	   writerowsR=   R>   R?   R@   R   R   RB   R   RC   RD   RE   (   R   R]   R   RH   RI   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_csv.pyt   test_writerowsÊ   s    
c         C   s†   d d d d g } t  ƒ  } t j | d t j ƒ} | j | ƒ | j d ƒ t j | d t j ƒ} t | ƒ } |  j | | ƒ d  S(   NgòQŒBÊÀó?g      ð?g      @t   abcR	   i    (	   R    R   R   RZ   RA   RB   R   t   nextR   (   R   t   orig_rowt   fRa   t   new_row(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_write_floatÜ   s    	c         K   s2   t  j | | � } t | ƒ } |  j | | ƒ d  S(   N(   R   R   t   listR   (   R   t   inputRG   R0   R   t   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_csv.pyt
   _read_testè   s    c         C   s“   |  j  g  g  ƒ |  j  d g g  g ƒ |  j t j |  j  d g d  d d ƒ|  j t j |  j  d g d  d d ƒ|  j  d g d g g d d ƒd  S(	   NR
   s   "ab"cR$   i   s   ab cRe   R   i    (   Rn   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_csv.pyt   test_read_oddinputsí   s    c         C   sÑ   |  j  d g d d g g ƒ |  j  d g d d g g ƒ |  j  d g d d g g ƒ |  j  d g d d g g ƒ |  j t j |  j  d g g  ƒ |  j t j |  j  d g g  ƒ |  j t j |  j  d	 g g  ƒ d  S(
   Ns   a,bRY   R`   s   a,b
s   a,b
s   a,bs   a,bc,ds   a,b
c,ds   a,b
c,d(   Rn   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_csv.pyt   test_read_eol÷   s    c      	   C   sÍ   |  j  d g d d g g ƒ |  j  d g d g g ƒ |  j  d g d g g d d ƒ|  j t j |  j  d g g  d t ƒ|  j t j |  j  d g g  d t ƒ|  j t j |  j  d g g  d d d t ƒd  S(	   Ns   a,"RY   R
   s   "aR5   s   
R    R$   (   Rn   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_csv.pyt   test_read_eof   s    %%c         C   sÓ   |  j  d g d d d g g d d ƒ|  j  d g d d g g d d ƒ|  j  d	 g d d g g d d ƒ|  j  d
 g d d g g d d ƒ|  j  d g d d g g d d ƒ|  j  d g d d g g d d ƒd  S(   Ns   a,\b,cRY   R`   Ra   R    s   \s   a,b\,cs   b,cs   a,"b\,c"s   a,"b,\c"s	   a,"b,c\""s   b,c"s   a,"b,c"\s   b,c\(   Rn   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_escape	  s    %""""c         C   sú   |  j  d g d d d g g ƒ |  j  d g d d d d d g g d d  d d	 ƒ|  j  d g d d d d d g g d
 t j d d	 ƒ|  j  d g d d d d d g g d
 t j ƒ|  j  d g d d g g ƒ |  j t |  j  d g g  g d
 t j ƒd  S(   Ns	   1,",3,",5t   1s   ,3,t   5R   t   3R   R    s   \R	   s   ,3,"5",7.3, 9R
   i   g333333@i	   s   "a
b", 7s   a
bs    7s   abc,3(   Rn   R   R   R/   RZ   R   t
   ValueError(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_quoting  s    $$$
c         C   sÿ   t  j ƒ  } zÞ d } d | } d | | f } |  j | g | | g g ƒ t  j | ƒ |  j | g | | g g ƒ |  j t  j ƒ  | ƒ t  j | d ƒ |  j t  j |  j | g g  ƒ |  j t t  j d  ƒ |  j t t  j d d  ƒ Wd  t  j | ƒ Xd  S(   NiPÃ  RV   s   %s,%si   (   R   t   field_size_limitRn   R   R   R   R   R   (   R   t   limitt   sizeRW   t   bigline(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_bigfield  s    
c         C   sÞ   x× t  j d d d g ƒ t  j d d d g d d d d g ƒf D]– } |  j | j d ƒ | j ƒ  |  j | j d	 ƒ | j ƒ  |  j | j d
 ƒ | j ƒ  |  j | j d ƒ |  j t | j ƒ |  j | j d ƒ q@ Wd  S(   Ns   line,1s   line,2s   line,3t
   fieldnamesRY   R`   Ra   i    i   i   i   (   R   R   t
   DictReaderR   t   line_numRf   R   t   StopIteration(   R   t   r(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_linenum2  s    


c         C   sØ   t  j ƒ  \ } } t j | d ƒ } z• t j | ƒ } |  j t | j d  ƒ d d g d d g g } | j | ƒ | j
 d ƒ x7 t t j | ƒ ƒ D]  \ } } |  j | | | ƒ q” WWd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bs   a
bR`   Ra   s   x
di    (   R=   R>   R?   R@   R   R   R   R   Rc   R   RB   t	   enumerateR   R   RD   RE   (   R   RH   RI   RJ   R   t   rowsRQ   t   row(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_roundtrip_quoteed_newlines@  s    "
(    R8   R9   t   __doc__R   R   R   R*   R+   R,   R1   R2   R3   R:   R;   R<   RK   RM   RU   RX   R[   R\   Rd   Rj   Rn   Ro   Rp   Rq   Rr   Rw   R|   R‚   R†   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyR      s<   																						
								t   TestDialectRegistryc           B   sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s=  |  j  t t j d  ƒ |  j  t t j ƒ |  j  t j t j d  ƒ |  j  t j t j d ƒ |  j  t t j ƒ |  j  t j t j d  ƒ |  j  t j t j d ƒ |  j  t t j d  ƒ |  j  t t j d  d  ƒ |  j  t t j d d d ƒ |  j  t t j d d d  ƒ|  j  t t j d d d  ƒ|  j  t t j g  ƒ d  S(   Nt   nonesuchi    t   badargumentR	   (	   R   R   R   t   list_dialectsR   t   get_dialectR   t   unregister_dialectt   register_dialect(   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_registry_badargsP  s    c         C   s¡   d t  j f d „  ƒ  Y} d } t  j ƒ  | g } | j ƒ  t  j | | ƒ |  j t  j | ƒ |  j t  j | ƒ j	 d ƒ t
 t  j ƒ  ƒ } |  j | | ƒ d  S(   Nt
   myexceltsvc           B   s   e  Z d  Z RS(   s   	(   R8   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_csv.pyR�   b  s   s   	(   R   t   excelR‹   t   sortRŽ   t
   addCleanupR�   R   RŒ   R   t   sorted(   R   R�   RI   t   expected_dialectst   got_dialects(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_registrya  s    
c         C   s}   d } t  j | d d ƒ|  j t  j | ƒ |  j t  j | ƒ j d ƒ |  j d d d g g t t  j d g | ƒ ƒ ƒ d  S(   Nt   fedcbaR   t   ;RV   t   Yt   Zs   X;Y;Z(	   R   RŽ   R“   R�   R   RŒ   R   Rk   R   (   R   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_csv.pyt   test_register_kwargsm  s
    c         C   s0   d t  j f d „  ƒ  Y} |  j t  j | ƒ d  S(   NR�   c           B   s   e  Z d  Z RS(   s   	(   R8   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_csv.pyR�   u  s   (   R   t   DialectR   R   (   R   R�   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_incomplete_dialectt  s    c         C   sÊ   d t  j f d „  ƒ  Y} t j ƒ  \ } } t j | d ƒ } zn | j d ƒ | j d ƒ t  j | d | ƒ  ƒ} |  j	 | j
 ƒ  d d g ƒ |  j	 | j
 ƒ  d	 d
 g ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Nt   spacec           B   s   e  Z d  Z e j Z d Z RS(   t    s   \(   R8   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_csv.pyRŸ   z  s   	s   w+bs   abc def
c1ccccc1 benzene
i    R   Re   t   deft   c1ccccc1t   benzene(   R   R‘   R=   R>   R?   R@   R_   RB   R   R   Rf   RD   RE   (   R   RŸ   RH   RI   RJ   t   rdr(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_space_dialecty  s     
c         C   sI  d t  j f d „  ƒ  Y} d t  j f d „  ƒ  Y} d t  j f d „  ƒ  Y} t  j d | ƒ zÙt j ƒ  \ } } t j | d ƒ } zL t  j | ƒ } | j d d	 d
 g ƒ | j	 d ƒ |  j
 | j ƒ  d ƒ Wd  | j ƒ  t j | ƒ Xt j ƒ  \ } } t j | d ƒ } zO t  j | | ƒ } | j d d	 d
 g ƒ | j	 d ƒ |  j
 | j ƒ  d ƒ Wd  | j ƒ  t j | ƒ Xt j ƒ  \ } } t j | d ƒ } zU t  j | d | ƒ  ƒ} | j d d	 d
 g ƒ | j	 d ƒ |  j
 | j ƒ  d ƒ Wd  | j ƒ  t j | ƒ Xt j ƒ  \ } } t j | d ƒ } zR t  j | d d ƒ} | j d d	 d
 g ƒ | j	 d ƒ |  j
 | j ƒ  d ƒ Wd  | j ƒ  t j | ƒ Xt j ƒ  \ } } t j | d ƒ } zX t  j | d | d d ƒ} | j d d	 d
 g ƒ | j	 d ƒ |  j
 | j ƒ  d ƒ Wd  | j ƒ  t j | ƒ XWd  t  j d ƒ Xd  S(   Nt   testAc           B   s   e  Z d  Z RS(   s   	(   R8   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_csv.pyR¦   Œ  s   t   testBc           B   s   e  Z d  Z RS(   R   (   R8   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_csv.pyR§   Ž  s   t   testCc           B   s   e  Z d  Z RS(   t   |(   R8   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_csv.pyR¨   �  s   s   w+bi   i   i   i    s   1,2,3
s   1	2	3
R   s   1:2:3
s   1|2|3
R   R™   s   1;2;3
(   R   R‘   RŽ   R=   R>   R?   R@   R   RA   RB   R   RC   RD   RE   R�   (   R   R¦   R§   R¨   RH   RI   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_csv.pyt   test_dialect_apply‹  sf    




c         C   st   |  j  t t j g  d d ƒ|  j  t t j g  d d  ƒ|  j  t t j g  d d ƒ|  j  t t j g  d d ƒd  S(   NR   i    R   R	   iÿÿÿÿid   (   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_csv.pyt   test_bad_dialectÏ  s    (	   R8   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_csv.pyRˆ   O  s   						Dt   TestCsvBasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s•   t  j ƒ  \ } } t j | d ƒ } zR | j | ƒ | j d ƒ t j | d |  j ƒ} t	 | ƒ } |  j
 | | ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bi    R   (   R=   R>   R?   R@   R_   RB   R   R   R   Rk   R   RD   RE   (   R   Rl   t   expected_resultRH   RI   RJ   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_csv.pyt   readerAssertEqualä  s    
c         C   s�   t  j ƒ  \ } } t j | d ƒ } zL t j | d |  j ƒ} | j | ƒ | j d ƒ |  j	 | j
 ƒ  | ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bR   i    (   R=   R>   R?   R@   R   R   R   Rc   RB   R   RC   RD   RE   (   R   Rl   R­   RH   RI   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_csv.pyt   writerAssertEqualñ  s    
(   R8   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_csv.pyR¬   ã  s   	t   TestDialectExcelc           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 RS(   R‘   c         C   s   |  j  d d g g ƒ d  S(   NRe   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_single   s    c         C   s&   |  j  d d d d d d g g ƒ d  S(   Ns	   1,2,3,4,5Rs   t   2Ru   t   4Rt   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_simple  s    c         C   s   |  j  d g  ƒ d  S(   NR
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_blankline  s    c         C   s   |  j  d d d g g ƒ d  S(   NR   R
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_empty_fields	  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   ""R
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_singlequoted  s    c         C   s   |  j  d d d g g ƒ d  S(   Ns   "",R
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_singlequoted_left_empty  s    c         C   s   |  j  d d d g g ƒ d  S(   Ns   ,""R
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_singlequoted_right_empty  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   """"R   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_single_quoted_quote  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   """"""s   ""(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quoted_quotes  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   a""b(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_inline_quote  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   a"b"c(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_inline_quotes  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   "a"bt   ab(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quotes_and_more!  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   a"b(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_lone_quote&  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   "a" "b"s   a "b"(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quote_and_quote)  s    c         C   s   |  j  d d g g ƒ d  S(   Ns    "a"(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_space_and_quote.  s    c         C   s)   |  j  d d d d d d d g g ƒ d  S(   Ns#   1,2,3,"I think, therefore I am",5,6Rs   R²   Ru   s   I think, therefore I amRt   t   6(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quoted1  s    		c         C   s&   |  j  d d d d d d g g ƒ d  S(   NsJ   1,2,3,"""I see,"" said the blind man","as he picked up his hammer and saw"Rs   R²   Ru   s   "I see," said the blind mans"   as he picked up his hammer and saw(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quoted_quote7  s    		c         C   s;   d } |  j  | d d d d d g d d d	 d
 g g ƒ d  S(   NsR   1,2,3,"""I see,""
said the blind man","as he picked up his
hammer and saw"
9,8,7,6Rs   R²   Ru   s   "I see,"
said the blind mans"   as he picked up his
hammer and sawt   9t   8t   7RÃ   (   R®   (   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_csv.pyt   test_quoted_nl=  s    		c         C   s#   |  j  d d d d d g g ƒ d  S(   Ns	   12,12,1",t   12s   1"R
   (   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_dubious_quoteI  s    c         C   s   |  j  g  d ƒ d  S(   NR
   (   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt	   test_nullL  s    c         C   s   |  j  d g g d ƒ d  S(   NRe   s   abc
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_single_writerO  s    c         C   s&   |  j  d d d d d g g d ƒ d  S(   Ni   i   Re   i   i   s   1,2,abc,3,4
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_simple_writerR  s    c         C   s&   |  j  d d d d d g g d ƒ d  S(   Ni   i   s   a"bc"i   i   s   1,2,"a""bc""",3,4
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quotesU  s    c         C   s   |  j  d g g d ƒ d  S(   Ns   abc,defs   "abc,def"
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quote_fieldsepX  s    c         C   s&   |  j  d d d d d g g d ƒ d  S(   Ni   i   s   a
bci   i   s   1,2,"a
bc",3,4
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_newlines[  s    (   R8   R9   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_csv.pyR°   ý  s4   																								t   EscapedExcelc           B   s   e  Z e j Z d  Z RS(   s   \(   R8   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_csv.pyRÒ   ^  s   	t   TestEscapedExcelc           B   s#   e  Z e ƒ  Z d  „  Z d „  Z RS(   c         C   s   |  j  d g g d ƒ d  S(   Ns   abc,defs
   abc\,def
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_escape_fieldsepe  s    c         C   s   |  j  d d g g ƒ d  S(   Ns
   abc\,def
s   abc,def(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_escape_fieldseph  s    (   R8   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_csv.pyRÓ   b  s   		t   QuotedEscapedExcelc           B   s   e  Z e j Z d  Z RS(   s   \(   R8   R9   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_csv.pyRÖ   k  s   	t   TestQuotedEscapedExcelc           B   s#   e  Z e ƒ  Z d  „  Z d „  Z RS(   c         C   s   |  j  d g g d ƒ d  S(   Ns   abc,defs   "abc,def"
(   R¯   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_write_escape_fieldsepr  s    c         C   s   |  j  d d g g ƒ d  S(   Ns   "abc\,def"
s   abc,def(   R®   (   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyRÕ   u  s    (   R8   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_csv.pyR×   o  s   		t   TestDictFieldsc           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 RS(   c         C   sÚ   t  j ƒ  \ } } t j | d ƒ } z— t j | d d d d g ƒ} | j ƒ  | j d ƒ |  j | j	 ƒ  d ƒ | j
 i d d 6d	 d 6ƒ | j d ƒ | j	 ƒ  |  j | j ƒ  d
 ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bR}   t   f1t   f2t   f3i    s
   f1,f2,f3
i
   Re   s	   10,,abc
(   R=   R>   t   iot   openR   t
   DictWritert   writeheaderRB   R   t   readlineRA   RC   RD   R?   RE   (   R   RH   RI   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_csv.pyt   test_write_simple_dict{  s    


c         C   s#   t  ƒ  } |  j t t j | ƒ d  S(   N(   R    R   R   R   Rß   (   R   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_csv.pyt   test_write_no_fields‹  s    	c         C   sî   t  j ƒ  \ } } t j | d ƒ } z« t j | d d d d g ƒ} |  j t ƒ �) } | j i d d 6d d 6d	 d
 6ƒ Wd  QXt	 | j
 ƒ } |  j d | ƒ |  j d | ƒ |  j d | ƒ |  j d | ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bR}   RÚ   RÛ   RÜ   i
   t   f4t   spamRe   i   s   'f4's   'f2'Rs   (   R=   R>   R?   R@   R   Rß   R   Rv   RA   t   strt	   exceptiont   assertInt   assertNotInRD   RE   (   R   RH   RI   RJ   R   t   cxRç   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt#   test_write_fields_not_in_fieldnames�  s    (
c         C   sª   t  j ƒ  \ } } t j | d ƒ } zg | j d ƒ | j d ƒ t j | d d d d g ƒ} |  j | j	 ƒ  i d d 6d	 d 6d
 d 6ƒ Wd  | j
 ƒ  t j | ƒ Xd  S(   Ns   w+bs	   1,2,abc
i    R}   RÚ   RÛ   RÜ   Rs   R²   Re   (   R=   R>   R?   R@   R_   RB   R   R~   R   Rf   RD   RE   (   R   RH   RI   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_csv.pyt   test_read_dict_fields   s    /
c         C   s·   t  j ƒ  \ } } t j | d ƒ } zt | j d ƒ | j d ƒ t j | ƒ } |  j | j	 d d d g ƒ |  j | j
 ƒ  i d d 6d d 6d	 d 6ƒ Wd  | j ƒ  t j | ƒ Xd  S(
   Ns   w+bs   f1,f2,f3
1,2,abc
i    RÚ   RÛ   RÜ   Rs   R²   Re   (   R=   R>   R?   R@   R_   RB   R   R~   R   R}   Rf   RD   RE   (   R   RH   RI   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_csv.pyt   test_read_dict_no_fieldnames­  s    /
c         C   sÌ   t  j ƒ  \ } } t j | d ƒ } z‰ | j d ƒ | j d ƒ t j | d t j | ƒ j	 ƒ  ƒ} |  j
 | j d d d g ƒ |  j
 | j	 ƒ  i d d 6d	 d 6d
 d 6ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bs   f1,f2,f3
1,2,abc
i    R}   RÚ   RÛ   RÜ   Rs   R²   Re   (   R=   R>   R?   R@   R_   RB   R   R~   R   Rf   R   R}   RD   RE   (   R   RH   RI   Rh   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt#   test_read_dict_fieldnames_from_file¼  s    $/
c         C   sé   d d  l  } t j ƒ  \ } } t j | d ƒ } zš | j d ƒ | j d ƒ t j | ƒ } t	 | ƒ } x^ | j
 | g | ƒ D]G } |  j | j d d d g ƒ |  j | i d d 6d	 d 6d
 d 6ƒ q~ WWd  | j ƒ  t j | ƒ Xd  S(   Niÿÿÿÿs   w+bs   f1,f2,f3
1,2,abc
i    RÚ   RÛ   RÜ   Rs   R²   Re   (   t	   itertoolsR=   R>   R?   R@   R_   RB   R   R~   Rf   t   chainR   R}   RD   RE   (   R   Rï   RH   RI   Rh   R   t   firstR…   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_dict_fieldnames_chainÉ  s    -
c         C   s³   t  j ƒ  \ } } t j | d ƒ } zp | j d ƒ | j d ƒ t j | d d d g ƒ} |  j | j	 ƒ  i d d 6d d 6d	 d
 d d g d  6ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bs   1,2,abc,4,5,6
i    R}   RÚ   RÛ   Rs   R²   Re   R³   Rt   RÃ   (   R=   R>   R?   R@   R_   RB   R   R~   R   Rf   R   RD   RE   (   R   RH   RI   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_csv.pyt   test_read_longÙ  s     
c         C   s¹   t  j ƒ  \ } } t j | d ƒ } zv | j d ƒ | j d ƒ t j | d d d g d d ƒ} |  j | j	 ƒ  i d	 d 6d
 d 6d d d d g d 6ƒ Wd  | j
 ƒ  t j | ƒ Xd  S(   Ns   w+bs   1,2,abc,4,5,6
i    R}   RÚ   RÛ   t   restkeyt   _restRs   R²   Re   R³   Rt   RÃ   (   R=   R>   R?   R@   R_   RB   R   R~   R   Rf   RD   RE   (   R   RH   RI   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_csv.pyt   test_read_long_with_restç  s     
c         C   sÆ   t  j ƒ  \ } } t j | d ƒ } zƒ | j d ƒ | j d ƒ t j | d d ƒ} |  j | j	 d d g ƒ |  j | j
 ƒ  i d d 6d	 d 6d
 d d d g d 6ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bs   f1,f2
1,2,abc,4,5,6
i    Rô   Rõ   RÚ   RÛ   Rs   R²   Re   R³   Rt   RÃ   (   R=   R>   R?   R@   R_   RB   R   R~   R   R}   Rf   RD   RE   (   R   RH   RI   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_csv.pyt&   test_read_long_with_rest_no_fieldnamesõ  s     
c         C   s  t  j ƒ  \ } } t j | d ƒ } z¿ | j d ƒ | j d ƒ t j | d d j ƒ  d d ƒ} |  j	 | j
 ƒ  i d d 6d	 d	 6d
 d 6d d 6d d 6d d 6ƒ |  j	 | j
 ƒ  i d d 6d	 d	 6d
 d 6d d 6d d 6d d 6ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Ns   w+bs   1,2,abc,4,5,6
1,2,abc
i    R}   s   1 2 3 4 5 6t   restvalt   DEFAULTRs   R²   Re   Ru   R³   Rt   RÃ   (   R=   R>   R?   R@   R_   RB   R   R~   t   splitR   Rf   RD   RE   (   R   RH   RI   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_csv.pyt   test_read_short  s    	''
c         C   sg   d d d g } t  j | d d j ƒ  ƒ} |  j | j ƒ  i d d 6d d	 6d
 d 6d d 6d d 6ƒ d  S(   Ns   2147483648,43.0e12,17,abc,def
s   147483648,43.0e2,17,abc,def
s   47483648,43.0,170,abc,def
R}   s   i1 float i2 s1 s2t
   2147483648t   i1s   43.0e12t   floatt   17t   i2Re   t   s1R¡   t   s2(   R   R~   Rú   R   Rf   (   R   t   sampleR   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_multi  s    	c         C   s¨   t  j d d d g d d j ƒ  ƒ} |  j | j ƒ  i d d 6d d 6d d 6d	 d	 6d
 d
 6d d 6ƒ |  j | j ƒ  i d d 6d d 6d d 6d	 d	 6d
 d
 6d d 6ƒ d  S(   Ns   1,2,abc,4,5,6
s   
R}   s   1 2 3 4 5 6Rs   R²   Re   Ru   R³   Rt   RÃ   (   R   R~   Rú   R   Rf   (   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_with_blanks$  s    	''c         C   sh   t  j d g d d j ƒ  d d ƒ} |  j | j ƒ  i d d 6d d 6d d	 6d
 d
 6d d 6d d 6ƒ d  S(   Ns   1;2;abc;4;5;6
R}   s   1 2 3 4 5 6R   R™   Rs   R²   Re   Ru   R³   Rt   RÃ   (   R   R~   Rú   R   Rf   (   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_read_semi_sep-  s
    	'(   R8   R9   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_csv.pyRÙ   x  s   														t   TestArrayWritesc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c   
      C   sù   d d  l  } g  t d ƒ D] } d | ^ q } | j  d | ƒ } t j ƒ  \ } } t j | d ƒ } zu t j | d d ƒ} | j | ƒ d j	 g  | D] } t
 | ƒ ^ q— ƒ d }	 | j d	 ƒ |  j | j ƒ  |	 ƒ Wd  | j ƒ  t j | ƒ Xd  S(
   Niÿÿÿÿi   RQ   s   w+bR   R‘   R   s   
i    (   t   arrayt   rangeR=   R>   R?   R@   R   R   RA   t   joinRæ   RB   R   RC   RD   RE   (
   R   R  RQ   t   contentsRY   RH   RI   RJ   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_csv.pyt   test_int_write5  s    #,
c   
      C   sý   d d  l  } g  t d ƒ D] } d | d ^ q } | j  d | ƒ } t j ƒ  \ } } t j | d ƒ } zu t j | d d ƒ} | j | ƒ d j	 g  | D] } t
 | ƒ ^ q› ƒ d	 }	 | j d
 ƒ |  j | j ƒ  |	 ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Niÿÿÿÿi   gš™™™™™¹?Rb   s   w+bR   R‘   R   s   
i    (   R  R	  R=   R>   R?   R@   R   R   RA   R
  t   reprRB   R   RC   RD   RE   (
   R   R  RQ   R  RY   RH   RI   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_csv.pyt   test_double_writeF  s    ',
c   
      C   sý   d d  l  } g  t d ƒ D] } d | d ^ q } | j  d | ƒ } t j ƒ  \ } } t j | d ƒ } zu t j | d d ƒ} | j | ƒ d j	 g  | D] } t
 | ƒ ^ q› ƒ d	 }	 | j d
 ƒ |  j | j ƒ  |	 ƒ Wd  | j ƒ  t j | ƒ Xd  S(   Niÿÿÿÿi   gš™™™™™¹?Rh   s   w+bR   R‘   R   s   
i    (   R  R	  R=   R>   R?   R@   R   R   RA   R
  R  RB   R   RC   RD   RE   (
   R   R  RQ   R  RY   RH   RI   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_csv.pyt   test_float_writeV  s    ',
c   	      C   sÌ   d d  l  } d d  l } | j  d | j ƒ } t j ƒ  \ } } t j | d ƒ } z\ t j | d d ƒ} | j	 | ƒ d j
 | ƒ d } | j d ƒ |  j | j ƒ  | ƒ Wd  | j ƒ  t j | ƒ Xd  S(	   NiÿÿÿÿRa   s   w+bR   R‘   R   s   
i    (   R  t   stringt   lettersR=   R>   R?   R@   R   R   RA   R
  RB   R   RC   RD   RE   (	   R   R  R  RY   RH   RI   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_csv.pyt   test_char_writef  s    
(   R8   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_csv.pyR  4  s   			t   TestDialectValidityc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s@  d t  j f d „  ƒ  Y} | ƒ  } |  j | j t  j ƒ d  | _ |  j t  j | ƒ t | _	 t  j
 | _ d | _ | ƒ  } |  j | j t  j
 ƒ |  j | j d ƒ |  j | j	 ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d  S(   Nt	   mydialectc           B   s/   e  Z d  Z d Z e Z e Z d Z e	 j
 Z RS(   R™   s   \s   
(   R8   R9   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_csv.pyR  w  s   R   s   ''s)   "quotechar" must be an 1-character stringi   s#   "quotechar" must be string, not int(   R   R�   R   R	   R/   R   R   R   R   R   R   R   t
   assertTrueRæ   Rç   (   R   R  Rb   t   cm(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_quotingv  s,    							c         C   sI  d t  j f d „  ƒ  Y} | ƒ  } |  j | j d ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d	 | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d
 ƒ d  S(   NR  c           B   s/   e  Z d  Z d Z e Z e Z d Z e	 j
 Z RS(   R™   s   \s   
(   R8   R9   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_csv.pyR  ™  s   R™   s   :::s)   "delimiter" must be an 1-character stringR
   u   ,s'   "delimiter" must be string, not unicodei   s#   "delimiter" must be string, not int(   R   R�   R   R   R   R   Ræ   Rç   (   R   R  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_csv.pyt   test_delimiter˜  s.    					c         C   s¢   d t  j f d „  ƒ  Y} | ƒ  } |  j | j d ƒ d | _ | ƒ  } |  j | j d ƒ d | _ |  j t  j ƒ � } | ƒ  Wd  QX|  j t | j ƒ d ƒ d  S(   NR  c           B   s/   e  Z d  Z d Z e Z e Z d Z e	 j
 Z RS(   R™   s   \s   
(   R8   R9   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_csv.pyR  ¼  s   s   
s   :::i   s!   "lineterminator" must be a string(   R   R�   R   R   R   R   Ræ   Rç   (   R   R  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_csv.pyt   test_lineterminator»  s    				(   R8   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_csv.pyR  u  s   	"	#t   TestSnifferc           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 RS(   sî   Harry's, Arlington Heights, IL, 2/1/03, Kimi Hayes
Shark City, Glendale Heights, IL, 12/28/02, Prezence
Tommy's Place, Blue Island, IL, 12/28/02, Blue Sunday/White Crow
Stonecutters Seafood and Chop House, Lemont, IL, 12/19/02, Week Back
s  'Harry''s':'Arlington Heights':'IL':'2/1/03':'Kimi Hayes'
'Shark City':'Glendale Heights':'IL':'12/28/02':'Prezence'
'Tommy''s Place':'Blue Island':'IL':'12/28/02':'Blue Sunday/White Crow'
'Stonecutters ''Seafood'' and Chop House':'Lemont':'IL':'12/19/02':'Week Back'
s+   "venue","city","state","date","performers"
s¢   05/05/03?05/05/03?05/05/03?05/05/03?05/05/03?05/05/03
05/05/03?05/05/03?05/05/03?05/05/03?05/05/03?05/05/03
05/05/03?05/05/03?05/05/03?05/05/03?05/05/03?05/05/03
sT   2147483648;43.0e12;17;abc;def
147483648;43.0e2;17;abc;def
47483648;43.0;170;abc;def
s   aaa	bbb
AAA	
BBB	
s   a|b|c
d|e|f
s   'a'|'b'|'c'
'd'|e|f
s+   "venue"+"city"+"state"+"date"+"performers"
sî   Harry's+ Arlington Heights+ IL+ 2/1/03+ Kimi Hayes
Shark City+ Glendale Heights+ IL+ 12/28/02+ Prezence
Tommy's Place+ Blue Island+ IL+ 12/28/02+ Blue Sunday/White Crow
Stonecutters Seafood and Chop House+ Lemont+ IL+ 12/19/02+ Week Back
s  'Harry''s'+ Arlington Heights'+ 'IL'+ '2/1/03'+ 'Kimi Hayes'
'Shark City'+ Glendale Heights'+' IL'+ '12/28/02'+ 'Prezence'
'Tommy''s Place'+ Blue Island'+ 'IL'+ '12/28/02'+ 'Blue Sunday/White Crow'
'Stonecutters ''Seafood'' and Chop House'+ 'Lemont'+ 'IL'+ '12/19/02'+ 'Week Back'
c         C   sO   t  j ƒ  } |  j | j |  j ƒ t ƒ |  j | j |  j |  j ƒ t ƒ d  S(   N(   R   t   SnifferR   t
   has_headert   sample1R#   t   header1R   (   R   t   sniffer(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_has_header  s    c         C   sO   t  j ƒ  } |  j | j |  j ƒ t ƒ |  j | j |  j |  j ƒ t ƒ d  S(   N(   R   R  R   R  t   sample8R#   t   header2R   (   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt'   test_has_header_regex_special_delimiter	  s    c         C   s   t  j ƒ  } xl d D]d } | j | d ƒ } |  j | j d ƒ |  j | j d ƒ |  j | j t ƒ |  j | j	 t ƒ q Wd  S(	   Ns	   ;'123;4';s   '123;4';s   ;'123;4's   '123;4's   ,;R™   t   '(   s	   ;'123;4';s   '123;4';s   ;'123;4's   '123;4'(
   R   R  t   sniffR   R   R   t   assertIsR   R#   R"   (   R   R   t   headerR   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_guess_quote_and_delimiter  s    c         C   s¦   t  j ƒ  } | j |  j ƒ } |  j | j d ƒ |  j | j d ƒ |  j | j t ƒ | j |  j	 ƒ } |  j | j d ƒ |  j | j d ƒ |  j | j t
 ƒ d  S(   NR   R   R   R%  (   R   R  R&  R  R   R   R   R"   R   t   sample2R#   (   R   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt
   test_sniff  s    c         C   s’  t  j ƒ  } | j |  j ƒ } |  j | j |  j ƒ | j |  j d d ƒ} |  j | j d ƒ | j |  j d d ƒ} |  j | j d ƒ | j |  j ƒ } |  j | j d ƒ | j |  j ƒ } |  j | j d ƒ | j |  j	 ƒ } |  j | j d ƒ | j |  j
 ƒ } |  j | j d ƒ |  j | j d	 ƒ | j |  j ƒ } |  j | j d
 ƒ | j |  j ƒ } |  j | j d
 ƒ |  j | j d	 ƒ d  S(   Nt
   delimiterss   ?,t   ?s   /,t   /R™   s   	R©   R%  t   +(   R   R  R&  t   sample3Rè   R   R   t   sample4t   sample5t   sample6t   sample7R   R"  t   sample9(   R   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_delimiters$  s*    c         C   sº   t  j ƒ  } | j |  j ƒ } |  j | j ƒ | j |  j ƒ } |  j | j ƒ | j |  j ƒ } |  j | j ƒ | j |  j	 ƒ } |  j | j ƒ | j |  j
 ƒ } |  j | j ƒ d  S(   N(   R   R  R&  R  t   assertFalseR   R#  R*  R  R"  R5  (   R   R   R   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_doublequote>  s    (   R8   R9   R  R*  R  R0  R1  R2  R3  R4  R#  R"  R5  R!  R$  R)  R+  R6  R8  (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyR  Ñ  s"   						t   NULc           B   s   e  Z d  „  Z e Z RS(   c         G   s   d  S(   N(    (   t   sR(   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyR_   L  s    (   R8   R9   R_   t
   writelines(    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyR9  K  s   	t   gettotalrefcounts   requires sys.gettotalrefcount()t	   TestLeaksc           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s¬   d } t  j ƒ  } x} t d ƒ D]o } t j ƒ  |  j t j g  ƒ t  j ƒ  } t j d g ƒ t j d g ƒ t j d g ƒ | | } | } q W|  j | d k  t	 ƒ d  S(   Ni    i   s   a,b,c
i   (
   t   sysR<  t   xranget   gct   collectR   t   garbageR   R   R   (   R   t   deltat   lastrcRQ   t   rc(    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   test_create_readS  s    


c         C   s¬   d } t  j ƒ  } t ƒ  } xt t d ƒ D]f } t j ƒ  |  j t j g  ƒ t  j ƒ  } t j	 | ƒ t j	 | ƒ t j	 | ƒ | | } | } q( W|  j | d k  t
 ƒ d  S(   Ni    i   i   (   R>  R<  R9  R?  R@  RA  R   RB  R   R   R   (   R   RC  RD  R:  RQ   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_csv.pyt   test_create_writeb  s    	


c         C   s©   d } d g d } t  j ƒ  } xm t d ƒ D]_ } t j ƒ  |  j t j g  ƒ t  j ƒ  } t j | ƒ } x | D] } qq W| | } | } q, W|  j | d k  t	 ƒ d  S(   Ni    s   a,b,c
i   i   (
   R>  R<  R?  R@  RA  R   RB  R   R   R   (   R   RC  R„   RD  RQ   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_csv.pyt	   test_readr  s    


c   	      C   sÈ   d } d d d g g d } t  ƒ  } t j ƒ  } xz t d ƒ D]l } t j ƒ  |  j t j g  ƒ t j ƒ  } t j	 | ƒ } x | D] } | j
 | ƒ qƒ W| | } | } q> W|  j | d k  t ƒ d  S(   Ni    i   i   i   i   i   (   R9  R>  R<  R?  R@  RA  R   RB  R   R   RA   R   (	   R   RC  R„   R:  RD  RQ   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_csv.pyt
   test_write‚  s    	


(   R8   R9   RF  RG  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_csv.pyR=  P  s   			c          C   sO   t  j t }  t j g  t |  ƒ D]$ } | j d ƒ r  t |  | ƒ ^ q  Œ  d  S(   Nt   Test(   R>  t   modulesR8   R   t   run_unittestt   dirt
   startswitht   getattr(   t   modRI   (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt	   test_main¢  s    t   __main__(    t   copyR>  R?   t   unittestR    R=   R   R@  RÝ   t   picklet   testR   t   TestCaseR   Rˆ   R¬   R°   R‘   RÒ   RÓ   RÖ   R×   RÙ   R  R  R  R9  t
   skipUnlesst   hasattrR=  RQ  R8   (    (    (    sƒ   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_csv.pyt   <module>   s<   ÿ ?”a		¼A\z	P	