Closed
Description
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
- gh-111726: Explicitly close database connections in sqlite3 doctests #111730
- [3.12] gh-111726: Cleanup test files after running sqlite3 doctest (GH-117604) #117622
- gh-111726: Remove some unneeded doctests from sqlite3 docs #117623
- [3.12] gh-111726: Remove some doctests from sqlite3 docs (GH-117623) #117625
- [3.12] gh-111726: Explicitly close database connections in sqlite3 doctests (GH-111730) #117630