Current File : //opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyc |
�
��#ec @� s� d d l m Z d d l Z d d l Z e a d e j f d � � YZ d e j f d � � YZ
d � Z d � Z e
d k r� e � n d S(
i����( t with_statementNt MyConnectionc B� s e Z d � Z RS( c C� s t a t j j | � d S( N( t Truet did_rollbackt sqlitet
Connectiont rollback( t self( ( s6 /opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyR s ( t __name__t
__module__R ( ( ( s6 /opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyR s t ContextTestsc B� s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c C� s2 t j d d t �| _ | j j d � t a d S( Ns :memory:t factorys create table test(c unique)( R t connectR t cont executet FalseR ( R ( ( s6 /opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyt setUp% s c C� s | j j � d S( N( R
t close( R ( ( s6 /opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyt tearDown+ s c C� s | j � Wd QXd S( s7 Can the connection be used as a context manager at all?N( R
( R ( ( s6 /opt/RZpython2/lib/python2.7/sqlite3/test/py25tests.pyt CheckContextManager. s
c C� s] | j � | j j d � Wd QX| j j � | j j d � j � d } | j | d � d S( s* Is a commit called in the context manager?s"