Skip to content

Doc/howto/descriptor.rst has a warning during doctest run #111724

@sobolevn

Description

@sobolevn

Bug report

Warning:

Document: howto/descriptor
--------------------------
1 items passed all tests:
173 tests in default
173 tests in 1 items.
173 passed and 0 failed.
Test passed.
Exception ignored in: <sqlite3.Connection object at 0x7f8ea14d0d10>
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Doc/venv/lib/python3.13/site-packages/docutils/nodes.py", line 387, in __new__
def __new__(cls, data, rawsource=None):
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f8ea14d0d10>

I propose adding:

.. testcleanup::

   conn.close()

To silence it.

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirtestsTests in the Lib/test dirtopic-sqlite3type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions