mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
[3.12] gh-111724: Fix doctest ResourceWarning
in howto/descriptor.rst
(GH-111725) (#111727)
gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725)
Close database connection explicitly in test cleanup.
(cherry picked from commit f48e669504
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
cd778b4917
commit
9c583f36d5
1 changed files with 4 additions and 0 deletions
|
@ -943,6 +943,10 @@ it can be updated:
|
|||
>>> Movie('Star Wars').director
|
||||
'J.J. Abrams'
|
||||
|
||||
.. testcleanup::
|
||||
|
||||
conn.close()
|
||||
|
||||
|
||||
Pure Python Equivalents
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue