Skip to content

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

Closed

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

Activity

  1. added
    type-bug
    tests
    docs
    on Nov 4, 2023
  2. self-assigned this
    on Nov 4, 2023
  3. added a commit that references this issue on Nov 4, 2023
  4. added a commit that references this issue on Nov 4, 2023
  5. added 2 commits that reference this issue on Nov 4, 2023
  6. added 2 commits that reference this issue on Nov 4, 2023
  7. terryjreedy commented on Nov 4, 2023

    @terryjreedy
    Member

    I presume you and @erlend-aasland wanted the backports merged and want the issue closed.

  8. added a commit that references this issue on Feb 11, 2024
  9. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsteststopic-sqlite3type-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions