mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-17 01:20:32 +03:00
Ensure to close the connections in the doctests to avoid deadlocks.
This commit is contained in:
parent
ac6938a26a
commit
7cf52da969
|
@ -351,3 +351,8 @@ The ``connection`` class
|
||||||
|
|
||||||
Return `True` if the connection is executing an asynchronous operation.
|
Return `True` if the connection is executing an asynchronous operation.
|
||||||
|
|
||||||
|
|
||||||
|
.. testcode::
|
||||||
|
:hide:
|
||||||
|
|
||||||
|
conn.rollback()
|
||||||
|
|
|
@ -466,3 +466,8 @@ The ``cursor`` class
|
||||||
|
|
||||||
.. versionadded:: 2.0.6
|
.. versionadded:: 2.0.6
|
||||||
|
|
||||||
|
|
||||||
|
.. testcode::
|
||||||
|
:hide:
|
||||||
|
|
||||||
|
conn.rollback()
|
||||||
|
|
|
@ -70,3 +70,7 @@ between 8.1 and 8.4 are included in the module.
|
||||||
.. versionadded:: 2.0.14
|
.. versionadded:: 2.0.14
|
||||||
|
|
||||||
|
|
||||||
|
.. testcode::
|
||||||
|
:hide:
|
||||||
|
|
||||||
|
conn.rollback()
|
||||||
|
|
|
@ -309,3 +309,8 @@ The module exports the following constructors and singletons:
|
||||||
|
|
||||||
This type object is used to describe the "Row ID" column in a database.
|
This type object is used to describe the "Row ID" column in a database.
|
||||||
|
|
||||||
|
|
||||||
|
.. testcode::
|
||||||
|
:hide:
|
||||||
|
|
||||||
|
conn.rollback()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user