Ensure to close the connections in the doctests to avoid deadlocks.

This commit is contained in:
Daniele Varrazzo 2010-04-19 23:51:42 +01:00
parent ac6938a26a
commit 7cf52da969
4 changed files with 19 additions and 0 deletions

View File

@ -351,3 +351,8 @@ The ``connection`` class
Return `True` if the connection is executing an asynchronous operation.
.. testcode::
:hide:
conn.rollback()

View File

@ -466,3 +466,8 @@ The ``cursor`` class
.. versionadded:: 2.0.6
.. testcode::
:hide:
conn.rollback()

View File

@ -70,3 +70,7 @@ between 8.1 and 8.4 are included in the module.
.. versionadded:: 2.0.14
.. testcode::
:hide:
conn.rollback()

View File

@ -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.
.. testcode::
:hide:
conn.rollback()