mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
gh-111724: Fix doctest ResourceWarning in howto/descriptor.rst (#111725)
Close database connection explicitly in test cleanup.
This commit is contained in:
parent
ac01e2243a
commit
f48e669504
1 changed files with 4 additions and 0 deletions
|
|
@ -943,6 +943,10 @@ it can be updated:
|
||||||
>>> Movie('Star Wars').director
|
>>> Movie('Star Wars').director
|
||||||
'J.J. Abrams'
|
'J.J. Abrams'
|
||||||
|
|
||||||
|
.. testcleanup::
|
||||||
|
|
||||||
|
conn.close()
|
||||||
|
|
||||||
|
|
||||||
Pure Python Equivalents
|
Pure Python Equivalents
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue