Skip to content

Doc/library/sqlite3.rst has multiple doctest warnings #111726

Closed

Description

@sobolevn

Bug report

Link: https://github.com/python/cpython/actions/runs/6753865568/job/18360794210?pr=111723#step:8:82

Document: library/sqlite3
-------------------------
Exception ignored in: <sqlite3.Connection object at 0x7f1684307130>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f1684307130>
Exception ignored in: <sqlite3.Connection object at 0x7f1684307ac0>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f1684307ac0>
Exception ignored in: <sqlite3.Connection object at 0x7f16891eb680>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891eb680>
Exception ignored in: <sqlite3.Connection object at 0x7f16891eb240>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891eb240>
Exception ignored in: <sqlite3.Connection object at 0x7f16891ea9c0>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891ea9c0>
Exception ignored in: <sqlite3.Connection object at 0x7f16891eb350>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891eb350>
Exception ignored in: <sqlite3.Connection object at 0x7f16891eb130>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891eb130>
Exception ignored in: <sqlite3.Connection object at 0x7f16891ea8b0>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891ea8b0>
Exception ignored in: <sqlite3.Connection object at 0x7f16891e9bf0>
Traceback (most recent call last):
  File "/home/runner/work/cpython/cpython/Lib/functools.py", line 55, in update_wrapper
    pass
ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7f16891e9bf0>
4 items passed all tests:
  71 tests in default
   3 tests in sqlite3.cursor
   3 tests in sqlite3.limits
   8 tests in sqlite3.trace
85 tests in 4 items.
85 passed and 0 failed.
Test passed.
Exception ignored in sys.unraisablehook: <function debug at 0x7f167bb73c50>
Traceback (most recent call last):
  File "<doctest sqlite3.trace[4]>", line 2, in debug
AttributeError: 'sqlite3.Connection' object has no attribute '__name__'
Exception ignored in sys.unraisablehook: <function debug at 0x7f167bb73c50>
Traceback (most recent call last):
  File "<doctest sqlite3.trace[4]>", line 2, in debug
AttributeError: 'sqlite3.Connection' object has no attribute '__name__'
Exception ignored in sys.unraisablehook: <function debug at 0x7f167bb73c50>
Traceback (most recent call last):
  File "<doctest sqlite3.trace[4]>", line 2, in debug
AttributeError: 'sqlite3.Connection' object has no attribute '__name__'
Exception ignored in sys.unraisablehook: <function debug at 0x7f167bb73c50>
Traceback (most recent call last):
  File "<doctest sqlite3.trace[4]>", line 2, in debug
AttributeError: 'sqlite3.Connection' object has no attribute '__name__'
Exception ignored in sys.unraisablehook: <function debug at 0x7f167bb73c50>
Traceback (most recent call last):
  File "<doctest sqlite3.trace[4]>", line 2, in debug
AttributeError: 'sqlite3.Connection' object has no attribute '__name__'

I will examine possible fixes and send a PR.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    testsTests in the Lib/test dir
    docsDocumentation in the Doc dir
    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 Apr 8, 2024
  5. added a commit that references this issue on Apr 8, 2024
  6. added 2 commits that reference this issue on Apr 8, 2024
  7. added a commit that references this issue on Apr 8, 2024
  8. added 2 commits that reference this issue on Apr 8, 2024
  9. added a commit that references this issue on Apr 8, 2024
  10. added a commit that references this issue on Apr 8, 2024
  11. added 3 commits that reference this issue on Apr 17, 2024
  12. hugovk commented on Jun 15, 2024

    @hugovk
    Member

    Triage: the linked PRs are merged, can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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