tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
X\¬Qc@€sŒddlmZddlZddlZeadejfd„ƒYZdej    fd„ƒYZ
d„Z d„Z e d    krˆe ƒndS(
iÿÿÿÿ(twith_statementNt MyConnectioncB€seZd„ZRS(cC€statjj|ƒdS(N(tTruet did_rollbacktsqlitet
Connectiontrollback(tself((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyRs(t__name__t
__module__R(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyRst ContextTestscB€s5eZd„Zd„Zd„Zd„Zd„ZRS(cC€s2tjddtƒ|_|jjdƒtadS(Ns:memory:tfactoryscreate table test(c unique)(RtconnectRtcontexecutetFalseR(R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pytsetUp%scC€s|jjƒdS(N(R tclose(R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyttearDown+scC€s|jWdQXdS(s7Can the connection be used as a context manager at all?N(R (R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pytCheckContextManager.s
cC€s]|j|jjdƒWdQX|jjƒ|jjdƒjƒd}|j|dƒdS(s*Is a commit called in the context manager?s"insert into test(c) values ('foo')Nsselect count(*) from testii(R RRtfetchonet assertEqual(Rtcount((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pytCheckContextManagerCommit3s
 
 cC€so|jttƒy4|j%|jjdƒ|jjdƒWdQXWntjk
rZnX|jttƒdS(s,Is a rollback called in the context manager?sinsert into test(c) values (4)N(RRRR RRtIntegrityErrorR(R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pytCheckContextManagerRollback;s
(RR    RRRRR(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyR
$s
                cC€s"tjtdƒ}tj|fƒS(NtCheck(tunittestt    makeSuiteR
t    TestSuite(t    ctx_suite((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pytsuiteGscC€s tjƒ}|jtƒƒdS(N(RtTextTestRunnertrunR(trunner((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyttestKs t__main__(t
__future__RRtsqlite3RRRRRtTestCaseR
RR#R(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sqlite3/test/py25tests.pyt<module>s  #