Skip to content

Commit

Permalink
Remove changes done by pythongh-117623
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Apr 8, 2024
1 parent 9cef674 commit fbf5c6c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ Module functions
.. testsetup:: sqlite3.trace

import sqlite3
import sys
old_hook = sys.unraisablehook

.. doctest:: sqlite3.trace

Expand All @@ -425,11 +423,6 @@ Module functions
ZeroDivisionError('division by zero') in callback evil_trace
Error message: None

.. testcleanup:: sqlite3.trace

con.close()
sys.unraisablehook = old_hook

.. function:: register_adapter(type, adapter, /)

Register an *adapter* :term:`callable` to adapt the Python type *type*
Expand Down Expand Up @@ -1086,7 +1079,6 @@ Connection objects
Added the ``sqlite3.enable_load_extension`` auditing event.

.. testsetup:: sqlite3.loadext
:skipif: True

import sqlite3
con = sqlite3.connect(":memory:")
Expand Down Expand Up @@ -1116,14 +1108,15 @@ Connection objects
for row in con.execute("SELECT rowid, name, ingredients FROM recipe WHERE name MATCH 'pie'"):
print(row)

con.close()

.. testoutput:: sqlite3.loadext
:hide:

(2, 'broccoli pie', 'broccoli cheese onions flour')
(3, 'pumpkin pie', 'pumpkin sugar flour butter')

.. testcleanup::
:skipif: True

con.close()

Expand Down

0 comments on commit fbf5c6c

Please sign in to comment.