config root man

Current Path : /usr/local/lib/python2.5/sqlite3/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/sqlite3/test/dbapi.pyc

hRc@sddkZddkZddkZdeifdYZdeifdYZdeifdYZdeifd	YZd
eifdYZ	deifd
YZ
deifdYZdZdZ
edjoe
ndS(iNtModuleTestscBs}eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZRS(
cCs!|itiddtidS(Ns2.0sapilevel is %s, should be 2.0(tassertEqualtsqlitetapilevel(tself((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckAPILevelscCs!|itiddtidS(Nisthreadsafety is %d, should be 1(RRtthreadsafety(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckThreadSafety!scCs!|itiddtidS(Ntqmarks%paramstyle is '%s', should be 'qmark'(RRt
paramstyle(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckParamStyle%scCs |ittitddS(Ns*Warning is not a subclass of StandardError(tassert_t
issubclassRtWarningt
StandardError(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckWarning*scCs |ittitddS(Ns(Error is not a subclass of StandardError(t
failUnlessRRtErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckError.scCs#|ittitiddS(Ns)InterfaceError is not a subclass of Error(RRRtInterfaceErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckInterfaceError2scCs#|ittitiddS(Ns(DatabaseError is not a subclass of Error(RRRt
DatabaseErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckDatabaseError6scCs#|ittitiddS(Ns,DataError is not a subclass of DatabaseError(RRRt	DataErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckDataError:scCs#|ittitiddS(Ns3OperationalError is not a subclass of DatabaseError(RRRtOperationalErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckOperationalError>scCs#|ittitiddS(Ns1IntegrityError is not a subclass of DatabaseError(RRRtIntegrityErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckIntegrityErrorBscCs#|ittitiddS(Ns0InternalError is not a subclass of DatabaseError(RRRt
InternalErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckInternalErrorFscCs#|ittitiddS(Ns3ProgrammingError is not a subclass of DatabaseError(RRRtProgrammingErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckProgrammingErrorJscCs#|ittitiddS(Ns4NotSupportedError is not a subclass of DatabaseError(RRRtNotSupportedErrorR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckNotSupportedErrorNs	(t__name__t
__module__RRR
RRRRRRRRR R"(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs												tConnectionTestscBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCsBtid|_|ii}|id|idddS(Ns:memory:s4create table test(id integer primary key, name text)s!insert into test(name) values (?)tfoo(sfoo(Rtconnecttcxtcursortexecute(Rtcu((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytsetUpTs
cCs|iidS(N(R(tclose(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyttearDownZscCs|iidS(N(R(tcommit(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCommit]scCs|ii|iidS(sV
        A commit should also work when no changes were made to the database.
        N(R(R/(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCommitAfterNoChanges`s
cCs|iidS(N(R(trollback(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckRollbackgscCs|ii|iidS(sX
        A rollback should also work when no changes were made to the database.
        N(R(R2(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckRollbackAfterNoChangesjs
cCs|ii}dS(N(R(R)(RR+((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCursorqscCsGd}yti|}Wntij
odSnX|iddS(Ns/foo/bar/bla/23534/mydb.dbs&should have raised an OperationalError(RR'Rtfail(RtYOU_CANNOT_OPEN_THIStcon((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckFailedOpents	cCs|iidS(N(R(R-(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckClose|scCs|i|iiti|i|iiti|i|iiti|i|iiti|i|iiti|i|iiti|i|ii	ti	|i|ii
ti
|i|iiti|i|iitidS(N(
tfailUnlessEqualR(R
RRRRRRRRRR!(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExceptionss(R#R$R,R.R0R1R3R4R5R9R:R<(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR%Ss									tCursorTestscBspeZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)RS((cCsKtid|_|ii|_|iid|iidddS(Ns:memory:sCcreate table test(id integer primary key, name text, income number)s!insert into test(name) values (?)R&(sfoo(RR'R(R)R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR,scCs|ii|iidS(N(R+R-R((R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR.s
cCs|iiddS(Nsdelete from test(R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteNoArgsscCsUy!|iid|idWn-tij
odSn|idnXdS(Nsselect asdfs&should have raised an OperationalErrorsraised wrong exception(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteIllegalSqlscCsUy!|iid|idWn-tij
odSn|idnXdS(Nsselect 5+4; select 4+5sshould have raised a Warningsraised wrong exception(R+R*R6RR
(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteTooMuchSqlscCs|iiddS(Nsselect 5+4; -- foo bar(R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteTooMuchSql2scCs|iiddS(NsT
            select 5+4;

            /*
            foo
            */
            (R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteTooMuchSql3s	cCsRy!|iid|idWn*tj
odSn|idnXdS(Ni*sshould have raised a ValueErrorsraised wrong exception.(R+R*R6t
ValueError(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteWrongSqlArgscCs|iidddS(Nsinsert into test(id) values (?)i*(i*(R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteArgIntscCs|iidddS(Ns#insert into test(income) values (?)gq=
ף@(gq=
ף@(R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteArgFloatscCs|iidddS(Ns!insert into test(name) values (?)tHugo(RG(R+R*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteArgStringscCsAy$|iidd|idWntij
onXdS(Nsinsert into test(id) values (?)itEgons#should have raised ProgrammingError(iRI(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteWrongNoOfArgs1s
cCs>y!|iid|idWntij
onXdS(Nsinsert into test(id) values (?)s#should have raised ProgrammingError(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteWrongNoOfArgs2s
cCs>y!|iid|idWntij
onXdS(Nsinsert into test(id) values (?)s#should have raised ProgrammingError(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteWrongNoOfArgs3s
cCsS|iid|iidhdd<|ii}|i|dddS(Ns%insert into test(name) values ('foo')s&select name from test where name=:nameR&tnamei(R+R*tfetchoneR;(Rtrow((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteDictMappingsc	CsZ|iidy-|iidhdd<|idWntij
onXdS(Ns%insert into test(name) values ('foo')s1select name from test where name=:name and id=:idR&RMs#should have raised ProgrammingError(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt$CheckExecuteDictMappingTooLittleArgsscCsN|iidy!|iid|idWntij
onXdS(Ns%insert into test(name) values ('foo')s&select name from test where name=:names#should have raised ProgrammingError(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteDictMappingNoArgssc	CsZ|iidy-|iidhdd<|idWntij
onXdS(Ns%insert into test(name) values ('foo')s"select name from test where name=?R&RMs#should have raised ProgrammingError(R+R*R6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteDictMappingUnnamedscCs|iidS(N(R+R-(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR:scCsZ|iid|iid|iid|iid|i|iiddS(Nsdelete from tests%insert into test(name) values ('foo')supdate test set name='bar'i(R+R*R;trowcount(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckRowcountExecutes
cCsF|iid|iiddddg|i|iiddS(	Nsdelete from tests!insert into test(name) values (?)iii(i(i(i(R+R*texecutemanyR;RT(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckRowcountExecutemany
scCsH|iid|iid|iidjo|idndS(Ns%insert into test(name) values ('foo')is"total changes reported wrong value(R+R*R(t
total_changesR6(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckTotalChangesscCs>|iidg}tddD]}||fq ~dS(Ns#insert into test(income) values (?)idin(R+RVtrange(Rt_[1]tx((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManySequencescCs-dddY}|iid|dS(NtMyItercBseZdZdZRS(cSs
d|_dS(Ni(tvalue(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt__init__scSs7|idjo
tn|id7_|ifSdS(Ni
i(R_t
StopIteration(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytnext!s
(R#R$R`Rb(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR^s	s#insert into test(income) values (?)((R+RV(RR^((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManyIteratorscCs#d}|iid|dS(Ncss#xtdD]}|fVq
WdS(Ni(RZ(ti((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytmygen+s
s#insert into test(income) values (?)(R+RV(RRe((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManyGenerator*s	cCsXy'|iiddg|idWn*tj
odSn|idnXdS(Ni*isshould have raised a ValueErrorsraised wrong exception.(i(R+RVR6RC(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManyWrongSqlArg1scCs[y'|iiddg|idWn-tij
odSn|idnXdS(Nsselect ?is%should have raised a ProgrammingErrorsraised wrong exception.(i(R+RVR6RR(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManySelect:scCsoy$|iidd|idWnDtj
odSn/tj
o"}dG|iGH|idnXdS(Ns#insert into test(income) values (?)i*sshould have raised a TypeErrortraisedsraised wrong exception.(R+RVR6t	TypeErrort	Exceptiont	__class__(Rte((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckExecuteManyNotIterableCscCs|iid|iidd|iidd	|iidg}x"|iD]}|i|dqVW|i|dd|i|dddS(
Nsdelete from testsinsert into test(id) values (?)iisselect id from test order by idii(i(i(R+R*tappendR;(RtlstRO((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckFetchIterMs
cCsV|iid|ii}|i|dd|ii}|i|ddS(Nsselect name from testiR&(R+R*RNR;tNone(RRO((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckFetchoneYs
cCs/|ii}|i}|i|ddS(N(R(R)RNR;Rr(RtcurRO((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckFetchoneNoStatement`scCs|i|iidd|i_|iid|iid|iid|iid|iid|ii}|it|ddS(Niisdelete from tests#insert into test(name) values ('A')s#insert into test(name) values ('B')s#insert into test(name) values ('C')sselect name from test(R;R+t	arraysizeR*t	fetchmanytlen(Rtres((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckArraySizeescCs^|iid|iid}|it|d|iid}|i|gdS(Nsselect name from testidi(R+R*RwR;Rx(RRy((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckFetchmanyvs
cCsX|iid|ii}|it|d|ii}|i|gdS(Nsselect name from testi(R+R*tfetchallR;Rx(RRy((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckFetchall}s
cCs|iidddgdS(Niii(R+t
setinputsizes(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckSetinputsizesscCs|iidddS(Nii(R+t
setoutputsize(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckSetoutputsizescCs|iiddS(Ni*(R+R(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckSetoutputsizeNoColumnscCs|i|ii|idS(N(R;R+t
connectionR((R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCursorConnectionscCsWy,d}|ii|}|idWntj
odSnX|iddS(NcSsdS(N((((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytfssshould have raised a TypeErrorsshould have raised a ValueError(R(R)R6Rj(RRRt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckWrongCursorCallables		cCsVdddY}|}y ti|}|idWntj
onXdS(NtFoocBseZRS((R#R$(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRssshould have raised a ValueError((RtCursorR6Rj(RRR&Rt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCursorWrongClasss	(*R#R$R,R.R>R?R@RARBRDRERFRHRJRKRLRPRQRRRSR:RURWRYR]RcRfRgRhRnRqRsRuRzR{R}RRRRRR(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR=sP																										
								
												tThreadTestscBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCs8tid|_|ii|_|iiddS(Ns:memory:s\create table test(id integer primary key, name text, bin binary, ratio number, ts timestamp)(RR'R8R)RtR*(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR,scCs|ii|iidS(N(RtR-R8(R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR.s
cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsUy!|i}|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(R)RoRR(R8terrorsRt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytruns
ttargettkwargsR8Ris
(t	threadingtThreadR8tstarttjoinRxR6(RRRtt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConCursors	
-

cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsSy|i|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(R/RoRR(R8R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

RRR8Ris
(RRR8RRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConCommits	
-

cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsSy|i|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(R2RoRR(R8R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

RRR8Ris
(RRR8RRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConRollbacks	
-

cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsSy|i|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(R-RoRR(R8R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

RRR8Ris
(RRR8RRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckConCloses	
-

cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsVy"|id|iddSWn-tij
odSn|idnXdS(Ns#insert into test(name) values ('a')sdid not raise ProgrammingErrorsraised wrong exception(R*RoRR(RtR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

RRRtRis
(RRRtRRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCurImplicitBegins	
-

cCsd}g}tid|dh|id<|d<}|i|it|djo|idi|ndS(NcSsSy|i|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(R-RoRR(RtR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

RRRtRis
(RRRtRRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt
CheckCurCloses	
-

cCsd}g}|iidtid|dh|id<|d<}|i|it|djo|idi|ndS(	NcSsVy"|id|iddSWn-tij
odSn|idnXdS(Nsselect name from testsdid not raise ProgrammingErrorsraised wrong exception(R*RoRR(RtR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs

s#insert into test(name) values ('a')RRRtRis
(RtR*RRRRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCurExecutes	
-

cCsd}g}|iid|iidtid|dh|id<|d<}|i|it|djo|id	i|ndS(
NcSsUy!|i}|iddSWn-tij
odSn|idnXdS(Nsdid not raise ProgrammingErrorsraised wrong exception(RNRoRR(RtRRO((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR-s
s#insert into test(name) values ('a')sselect name from testRRRtRis
(RtR*RRRRRxR6(RRRR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckCurIterNext,s	
-

(R#R$R,R.RRRRRRRR(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs									tConstructorTestscBsGeZdZdZdZdZdZdZdZRS(cCstiddd}dS(Nii
i(RtDate(Rtd((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt	CheckDateAscCstiddd}dS(Nii'i#(RtTime(RR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyt	CheckTimeDscCs"tidddddd}dS(Nii
iii'i#(Rt	Timestamp(Rtts((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckTimestampGscCstid}dS(Ni*(Rt
DateFromTicks(RR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckDateFromTicksJscCstid}dS(Ni*(Rt
TimeFromTicks(RR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckTimeFromTicksMscCstid}dS(Ni*(RtTimestampFromTicks(RR((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckTimestampFromTicksPscCstitdd}dS(Nit'(RtBinarytchr(Rtb((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckBinarySs(	R#R$RRRRRRR(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR@s						tExtensionTestscBsGeZdZdZdZdZdZdZdZRS(cCsYtid}|i}|id|id|id}|i|ddS(Ns:memory:s
            -- bla bla
            /* a stupid comment */
            create table a(i);
            insert into a(i) values (5);
            sselect i from aii(RR'R)t
executescriptR*RNR;(RR8RtRy((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckScriptStringSqlWs
cCsYtid}|i}|id|id|id}|i|ddS(Ns:memory:u
            create table a(i);
            insert into a(i) values (5);
            select i from a;
            delete from a;
            insert into a(i) values (6);
            sselect i from aii(RR'R)RR*RNR;(RR8RtRy((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckScriptStringUnicodeds
cCshtid}|i}t}y|idWntij
o
t}nX|i|tddS(Ns:memory:screate table test(sadfsadfdsasshould have raised an exception(RR'R)tFalseRRtTrueR;(RR8RtRi((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckScriptErrorIncompleterscCshtid}|i}t}y|idWntij
o
t}nX|i|tddS(Ns:memory:s5create table test(sadfsadfdsa); select foo from hurz;sshould have raised an exception(RR'R)RRRRR;(RR8RtRi((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckScriptErrorNormal|scCs?tid}|idid}|i|dddS(Ns:memory:sselect 5iis Basic test of Connection.execute(RR'R*RNR;(RR8tresult((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConnectionExecutescCstid}|id|idd
dg|idi}|i|dddd|i|d	ddddS(Ns:memory:screate table test(foo)s insert into test(foo) values (?)iis!select foo from test order by foois$Basic test of Connection.executemanyi(i(i(RR'R*RVR|R;(RR8R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConnectionExecutemanys
cCsLtid}|id|idid}|i|dddS(Ns:memory:s9create table test(foo); insert into test(foo) values (5);sselect foo from testiis&Basic test of Connection.executescript(RR'RR*RNR;(RR8R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckConnectionExecutescripts
(	R#R$RRRRRRR(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRVs	
		
	
		tClosedTestscBs>eZdZdZdZdZdZdZRS(cCsdS(N((R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR,scCsdS(N((R((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyR.scCsftid}|iy|i}|idWn)tij
on|idnXdS(Ns:memory:s%Should have raised a ProgrammingError(RR'R-R)R6R(RR8Rt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckClosedConCursors
cCsdtid}|iy|i|idWn)tij
on|idnXdS(Ns:memory:s%Should have raised a ProgrammingError(RR'R-R/R6R(RR8((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckClosedConCommits

cCsdtid}|iy|i|idWn)tij
on|idnXdS(Ns:memory:s%Should have raised a ProgrammingError(RR'R-R2R6R(RR8((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckClosedConRollbacks

cCsstid}|i}|iy|id|idWn)tij
on|idnXdS(Ns:memory:sselect 4s%Should have raised a ProgrammingError(RR'R)R-R*R6R(RR8Rt((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytCheckClosedCurExecutes

(R#R$R,R.RRRR(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyRs					cCstitd}titd}titd}titd}titd}titd}titd}ti	|||||||fS(NtCheck(
tunittestt	makeSuiteRR%R=RRRRt	TestSuite(tmodule_suitetconnection_suitetcursor_suitetthread_suitetconstructor_suitet	ext_suitetclosed_suite((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pytsuitescCs ti}|itdS(N(RtTextTestRunnerRR(trunner((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pyttestst__main__(RRtsqlite3RtTestCaseRR%R=RRRRRRR#(((s./usr/local/lib/python2.5/sqlite3/test/dbapi.pys<module>s79C4	
	


Man Man