%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyc |
� 5}�ac @ s2 d d l Z d d l Z d d l Z d d l m Z y d d l Z Wn e k r] d Z n Xd e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ e j e d � d e j f d � � Y� Z d e j f d � � YZ d � Z d � Z e d k r.e � n d S( i����N( t test_supportt SqliteTypeTestsc 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 s8 t j d � | _ | j j � | _ | j j d � d S( Ns :memory:s9 create table test(i integer, s varchar, f number, b blob)( t sqlitet connectt cont cursort curt execute( t self( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt setUp# s c C s | j j � | j j � d S( N( R t closeR ( R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt tearDown( s c C sJ | j j d d � | j j d � | j j � } | j | d d � d S( Ns insert into test(s) values (?)u Österreichs select s from testi ( u Österreich( R R t fetchonet assertEqual( R t row( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckString, s c C sJ | j j d d � | j j d � | j j � } | j | d d � d S( Ns insert into test(i) values (?)i* s select i from testi ( i* ( R R R R ( R R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckSmallInt2 s c C sS d } | j j d | f � | j j d � | j j � } | j | d | � d S( Ni i( s insert into test(i) values (?)s select i from testi I ( R R R R ( R t numR ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckLargeInt8 s c C sS d } | j j d | f � | j j d � | j j � } | j | d | � d S( Ng��Q� @s insert into test(f) values (?)s select f from testi ( R R R R ( R t valR ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckFloat? s c C sl t j � � t d � } Wd QX| j j d | f � | j j d � | j j � } | j | d | � d S( Nt Guglhupfs insert into test(b) values (?)s select b from testi ( R t check_py3k_warningst bufferR R R R ( R R R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckBlobF s c C s7 | j j d � | j j � } | j | d d � d S( Nu select 'Österreich'i u Österreich( R R R R ( R R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckUnicodeExecuteN s c C sH y- | j j d t d � f � | j d � Wn t j k rC n Xd S( Ns select ?i� s% should have raised a ProgrammingError( R R t chrt failR t ProgrammingError( R ( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckNonUtf8_DefaultS s c C sL | j j } z, t | j _ | j j d t d � f � Wd | | j _ Xd S( Ns select ?i� ( R t text_factoryt strR R R ( R t orig_text_factory( ( s; /opt/plesk/python/2.7/lib64/python2.7/sqlite3/test/types.pyt CheckNonUtf8_TextFactoryStringZ s c C sw | j j } zW y<