mirror of https://github.com/python/cpython
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
|
@ -943,6 +943,10 @@ it can be updated:
|
|||
>>> Movie('Star Wars').director
|
||||
'J.J. Abrams'
|
||||
|
||||
.. testcleanup::
|
||||
|
||||
conn.close()
|
||||
|
||||
|
||||
Pure Python Equivalents
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Reference in New Issue