ó
�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 e j f d „  ƒ  YZ d f  d „  ƒ  YZ	 d e j f d „  ƒ  YZ
 d	 „  Z d
 „  Z e d k r­ e ƒ  n  d S(   iÿÿÿÿN(   t   supportt   RegressionTestsc           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 RS(   c         C   s   t  j d ƒ |  _ d  S(   Ns   :memory:(   t   sqlitet   connectt   con(   t   self(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   setUp   s    c         C   s   |  j  j ƒ  d  S(   N(   R   t   close(   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   tearDown"   s    c         C   s    |  j  j ƒ  } | j d ƒ d  S(   Ns   pragma user_version(   R   t   cursort   execute(   R   t   cur(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckPragmaUserVersion%   s    c         C   sT   t  j d d t  j ƒ} z  |  j j ƒ  } | j d ƒ Wd  | j ƒ  | j ƒ  Xd  S(   Ns   :memory:t   detect_typess   pragma schema_version(   R   R   t   PARSE_COLNAMESR   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/sqlite3/test/regression.pyt   CheckPragmaSchemaVersion*   s    
c         C   sÐ   t  j d d d ƒ} g  t d ƒ D] } | j ƒ  ^ q" } | d j d ƒ xD t d ƒ D]6 } | d j d g  t d ƒ D] } | f ^ qx ƒ qX Wx- t d ƒ D] } | | j d | d	 ƒ qŸ W| j ƒ  d  S(
   Ns   :memory:t   cached_statementsi   i    s   create table test(x)i
   s   insert into test(x) values (?)t    s   select x from test(   R   R   t   xrangeR	   R
   t   ranget   executemanyt   rollback(   R   R   t   xt   cursorst   i(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckStatementReset4   s    %4c         C   sc   |  j  j ƒ  } | j d ƒ |  j | j d d d ƒ | j d ƒ |  j | j d d d ƒ d  S(   Ns    select 1 as "foo bar [datetime]"i    s   foo bars   select 1 as "foo baz"s   foo baz(   R   R	   R
   t   assertEqualt   description(   R   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckColumnNameWithSpacesC   s
    c         C   sj   t  j d ƒ } g  } xD t d ƒ D]6 } | j ƒ  } | j | ƒ | j d t | ƒ ƒ q" W| j ƒ  d  S(   Ns   :memory:ii   s   select 1 x union select (   R   R   R   R	   t   appendR
   t   strR   (   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/sqlite3/test/regression.pyt#   CheckStatementFinalizationOnCloseDbK   s    c         C   s§   t  j d k  r d  St  j d ƒ } | j d ƒ | j d ƒ y | j d ƒ Wn t  j k
 rc n X| j d ƒ y | j ƒ  Wn! t  j k
 r¢ |  j d ƒ n Xd  S(	   Ni   i   s   :memory:s3   create table foo(x, unique(x) on conflict rollback)s   insert into foo(x) values (1)s   insert into foo(x) values (2)s1   pysqlite knew nothing about the implicit ROLLBACK(   i   i   i   (   R   t   sqlite_version_infoR   R
   t   DatabaseErrort   committ   OperationalErrort   fail(   R   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckOnConflictRollbackY   s    c         C   s4   |  j  j d ƒ |  j  j d ƒ |  j  j d ƒ d S(   sm   
        pysqlite would crash with older SQLite versions unless
        a workaround is implemented.
        s   create table foo(bar)s   drop table fooN(   R   R
   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt-   CheckWorkaroundForBuggySqliteTransferBindingsi   s    c         C   s   |  j  j d ƒ d S(   s   
        pysqlite used to segfault with SQLite versions 3.5.x. These return NULL
        for "no-operation" statements
        t    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/sqlite3/test/regression.pyt   CheckEmptyStatementr   s    c         C   s   t  j d ƒ } | j ƒ  d S(   s
  
        With pysqlite 2.4.0 you needed to use a string or an APSW connection
        object for opening database connections.

        Formerly, both bytestrings and unicode strings used to work.

        Let's make sure unicode strings work in the future.
        u   :memory: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/sqlite3/test/regression.pyt   CheckUnicodeConnecty   s    	c         C   sŒ   d } t  j d d t  j ƒ} | j d ƒ | j d t j j ƒ  f ƒ | j | ƒ | j d ƒ | j d ƒ | j d ƒ | j | ƒ d	 S(
   s�   
        pysqlite until 2.4.1 did not rebuild the row_cast_map when recompiling
        a statement. This test exhibits the problem.
        s   select * from foos   :memory:R   s   create table foo(bar timestamp)s   insert into foo(bar) values (?)s   drop table foos   create table foo(bar integer)s   insert into foo(bar) values (5)N(   R   R   t   PARSE_DECLTYPESR
   t   datetimet   now(   R   t   SELECTR   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckTypeMapUsage…   s    c         C   s   |  j  t t j i  d ƒ d S(   s!   
        See issue 3312.
        N(   t   assertRaisest	   TypeErrorR   t   register_adaptert   None(   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckRegisterAdapter”   s    c         C   s,   t  j d ƒ } |  j t t | d d ƒ d S(   s!   
        See issue 3312.
        s   :memory:t   isolation_levelu   Ã©N(   R   R   R/   t   UnicodeEncodeErrort   setattr(   R   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckSetIsolationLevelš   s    c         C   s¬   d t  j f d „  ƒ  Y} t  j d ƒ } | | ƒ } y$ | j d ƒ j ƒ  |  j d ƒ Wn' t  j k
 rn n |  j d ƒ n X|  j t  j d ƒ � | j ƒ  Wd QXd S(   sd   
        Verifies that cursor methods check whether base class __init__ was
        called.
        t   Cursorc           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/sqlite3/test/regression.pyt   __init__¨   s    (   t   __name__t
   __module__R9   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR8   §   s   s   :memory:s
   select 4+5s#   should have raised ProgrammingErrors$   ^Base Cursor\.__init__ not called\.$N(	   R   R8   R   R
   t   fetchallR$   t   ProgrammingErrort   assertRaisesRegexpR   (   R   R8   R   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckCursorConstructorCallCheck¢   s    
c         C   sp   d t  j f d „  ƒ  Y} | d ƒ } y | j ƒ  } |  j d ƒ Wn' t  j k
 rX n |  j d ƒ n Xd S(   sh   
        Verifies that connection methods check whether base class __init__ was
        called.
        t
   Connectionc           B   s   e  Z d  „  Z RS(   c         S   s   d  S(   N(    (   R   t   name(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR9   ¾   s    (   R:   R;   R9   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR@   ½   s   s   :memory:s#   should have raised ProgrammingErrorN(   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/sqlite3/test/regression.pyt#   CheckConnectionConstructorCallCheck¸   s    c            sÖ   d t  j f ‡  f d †  ƒ  Y} d t  j f d „  ƒ  Y‰  | d ƒ } | j ƒ  } | j d ƒ | j d d d d g ƒ | j d ƒ | j ƒ  y | j ƒ  |  j d ƒ Wn' t  j	 k
 r¾ n |  j d ƒ n Xd S(   sœ   
        Verifies that subclassed cursor classes are correctly registered with
        the connection object, too.  (fetch-across-rollback problem)
        R@   c              s   e  Z ‡  f d  †  Z RS(   c            s
   ˆ  |  ƒ S(   N(    (   R   (   R8   (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR	   Ð   s    (   R:   R;   R	   (    (   R8   (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR@   Ï   s   R8   c           B   s   e  Z d  „  Z RS(   c         S   s   t  j j |  | ƒ d  S(   N(   R   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/sqlite3/test/regression.pyR9   Ô   s    (   R:   R;   R9   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR8   Ó   s   s   :memory:s   create table foo(x)s   insert into foo(x) values (?)i   i   i   s   select x from foos!   should have raised InterfaceErrorN(   i   (   i   (   i   (
   R   R@   R8   R	   R
   R   R   R<   R$   t   InterfaceError(   R   R@   R   R   (    (   R8   s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckCursorRegistrationÊ   s    

c         C   s   t  j d d d ƒ} d S(   s§   
        Verifies that creating a connection in autocommit mode works.
        2.5.3 introduced a regression so that these could no longer
        be created.
        s   :memory:R4   N(   R   R   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/sqlite3/test/regression.pyt   CheckAutoCommitå   s    c         C   sF   |  j  j ƒ  } | j d ƒ | j d ƒ | j d ƒ | j ƒ  } d S(   s‡   
        Verifies that running a PRAGMA statement that does an autocommit does
        work. This did not work in 2.5.3/2.5.4.
        s   create table foo(bar)s   insert into foo(bar) values (5)s   pragma page_sizeN(   R   R	   R
   t   fetchone(   R   R   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/sqlite3/test/regression.pyt   CheckPragmaAutocommití   s
    c         C   s   |  j  t j |  j d ƒ d S(   s}   
        Call a connection with a non-string SQL request: check error handling
        of the statement constructor.
        i   N(   R/   R   t   WarningR   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckConnectionCallù   s    c            s~   t  j d ƒ } | j ƒ  ‰  ˆ  j d ƒ ˆ  j d ƒ ‡  f d †  } |  j t  j ƒ �" ˆ  j d d „  | ƒ  Dƒ ƒ Wd QXd S(   sÝ   
        http://bugs.python.org/issue10811

        Recursively using a cursor, such as when reusing it from a generator led to segfaults.
        Now we catch recursive cursor usage and raise a ProgrammingError.
        s   :memory:s   create table a (bar)s   create table b (baz)c           3   s   ˆ  j  d d ƒ d Vd  S(   Ns   insert into a (bar) values (?)i   (   i   (   R
   (    (   R   (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   foo  s    s   insert into b (baz) values (?)c         s   s   |  ] } | f Vq d  S(   N(    (   t   .0R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pys	   <genexpr>  s    N(   R   R   R	   R
   R/   R=   R   (   R   R   RK   (    (   R   s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckRecursiveCursorUse   s    	c         C   sË   t  j d d t  j ƒ} | j ƒ  } | j d ƒ | j d ƒ | j d ƒ | j d ƒ g  | j ƒ  D] } | d ^ qe } |  j | t j d d	 d	 d
 d d d ƒ t j d d	 d	 d
 d d d ƒ g ƒ d S(   sË   
        http://bugs.python.org/issue14720

        The microsecond parsing of convert_timestamp() should pad with zeros,
        since the microsecond string "456" actually represents "456000".
        s   :memory:R   s   CREATE TABLE t (x TIMESTAMP)s4   INSERT INTO t (x) VALUES ('2012-04-04 15:06:00.456')s:   INSERT INTO t (x) VALUES ('2012-04-04 15:06:00.123456789')s   SELECT * FROM ti    iÜ  i   i   i   i@õ i@â N(   R   R   R*   R	   R
   R<   R   R+   (   R   R   R   R   t   values(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt'   CheckConvertTimestampMicrosecondPadding  s    #	c         C   s    |  j  t t j d d d ƒd  S(   Ns   :memory:R4   i{   (   R/   R0   R   R   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckInvalidIsolationLevelType/  s    	c         C   sq   t  j d ƒ } |  j t | d ƒ |  j t | d ƒ | j ƒ  } |  j t | j d ƒ |  j t | j d ƒ d  S(   Ns   :memory:s	    select 1s	   select 1 s
     select 2s	   select 2 (   R   R   R/   t
   ValueErrorR	   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/sqlite3/test/regression.pyt   CheckNullCharacter5  s    c         C   s  t  j d ƒ } | j d ƒ |  j | j d ƒ d } x³ t | j d ƒ ƒ D]œ \ } } | j d | f ƒ | j ƒ  | d k r— |  j | d d ƒ nF | d k rº |  j | d d ƒ n# | d k rÝ |  j | d d ƒ n  | d 7} qK W|  j | d	 d
 ƒ d S(   sÉ   
        Connection.commit() did reset cursors, which made sqlite3
        to return rows multiple times when fetched from cursors
        after commit. See issues 10513 and 23129 for details.
        s   :memory:s£   
        create table t(c);
        create table t2(c);
        insert into t values(0);
        insert into t values(1);
        insert into t values(2);
        R'   i    s   select c from ts   insert into t2(c) values (?)i   i   i   s'   should have returned exactly three rowsN(   R   R   t   executescriptR   R4   t	   enumerateR
   R"   (   R   R   t   counterR   RG   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckCommitCursorReset>  s     "
c         C   sZ   d „  } t  j d ƒ } t  j | ƒ } t j | | ƒ } | j | ƒ ~ ~ t j ƒ  d S(   sm   
        The interpreter shouldn't crash in case Cursor.__init__() is called
        more than once.
        c          W   s   d  S(   N(    (   t   args(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   callbacka  s    s   :memory:N(   R   R   R8   t   weakreft   refR9   R    t
   gc_collect(   R   RX   R   R   RZ   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   CheckBpo31770\  s    	c         C   s#   |  j  t ƒ � |  j ` Wd  QXd  S(   N(   R/   t   AttributeErrorR   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/sqlite3/test/regression.pyt   CheckDelIsolation_levelSegfaultl  s    (   R:   R;   R   R   R   R   R   R   R   R%   R&   R(   R)   R.   R3   R7   R?   RB   RD   RE   RH   RJ   RM   RO   RP   RR   RV   R\   R^   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR      s6   				
																								t   UnhashableFuncc           B   s&   e  Z d  „  Z d d „ Z d „  Z RS(   c         C   s   t  d ƒ ‚ d  S(   Ns   unhashable type(   R0   (   R   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   __hash__r  s    c         C   s   d |  _  | |  _ d  S(   Ni    (   t   callst   return_value(   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/sqlite3/test/regression.pyR9   u  s    	c         O   s   |  j  d 7_  |  j S(   Ni   (   Ra   Rb   (   R   RW   t   kwargs(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   __call__y  s    N(   R:   R;   R`   R2   R9   Rd   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyR_   q  s   	t   UnhashableCallbacksTestCasec           B   sD   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   s°   
    https://bugs.python.org/issue34052

    Registering unhashable callbacks raises TypeError, callbacks are not
    registered in SQLite after such registration attempt.
    c         C   s   t  j d ƒ |  _ d  S(   Ns   :memory:(   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/sqlite3/test/regression.pyR   …  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/sqlite3/test/regression.pyR   ˆ  s    c         C   s_   t  d d ƒ } |  j t d ƒ � |  j j | d ƒ Wd  QX|  j j d ƒ |  j | j ƒ d  S(   NRb   i    s   unhashable typei   s   SELECT 1(   R_   R>   R0   R   t   set_progress_handlerR
   t   assertFalseRa   (   R   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/sqlite3/test/regression.pyt   test_progress_handler‹  s
    c         C   sŒ   d } t  ƒ  } |  j t d ƒ � |  j j | d | ƒ Wd  QXd | } |  j t j | ƒ � |  j j d | ƒ Wd  QX|  j | j	 ƒ d  S(   Nt	   func_names   unhashable typei    s   no such function: %ss   SELECT %s()(
   R_   R>   R0   R   t   create_functionR   R#   R
   Rg   Ra   (   R   Rj   Rh   t   msg(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt	   test_func’  s    	
c         C   s_   t  d t j ƒ } |  j t d ƒ � |  j j | ƒ Wd  QX|  j j d ƒ |  j | j	 ƒ d  S(   NRb   s   unhashable types   SELECT 1(
   R_   R   t   SQLITE_DENYR>   R0   R   t   set_authorizerR
   Rg   Ra   (   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/sqlite3/test/regression.pyt   test_authorizerœ  s
    c         C   s•   d t  f d „  ƒ  Y} d } |  j t d ƒ �' |  j j | d | d d	 i  ƒ ƒ Wd  QXd | } |  j t j | ƒ � |  j j d | ƒ Wd  QXd  S(
   Nt   UnhashableTypec           B   s   e  Z d  Z RS(   N(   R:   R;   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/sqlite3/test/regression.pyRq   ¤  s   t	   aggr_names   unhashable typei    t   Aggrs   no such function: %ss   SELECT %s()(    (   t   typeR>   R0   R   t   create_aggregateR   R#   R
   (   R   Rq   Rr   Rl   (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt	   test_aggr£  s    (
(	   R:   R;   t   __doc__R   R   Ri   Rm   Rp   Rv   (    (    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyRe   ~  s   				
	c          C   s.   t  j t d ƒ }  t  j |  t  j t ƒ f ƒ S(   Nt   Check(   t   unittestt	   makeSuiteR   t	   TestSuiteRe   (   t   regression_suite(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   suite®  s    c          C   s    t  j ƒ  }  |  j t ƒ  ƒ d  S(   N(   Ry   t   TextTestRunnert   runR}   (   t   runner(    (    s�   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/sqlite3/test/regression.pyt   testµ  s    t   __main__(   R+   Ry   t   sqlite3R   RY   R�   R    t   TestCaseR   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/sqlite3/test/regression.pyt   <module>   s   ÿ T0		