gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725)

Close database connection explicitly in test cleanup.
This commit is contained in:
Nikita Sobolev 2023-11-04 12:22:19 +03:00 committed by GitHub
parent ac01e2243a
commit f48e669504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -943,6 +943,10 @@ it can be updated:
>>> Movie('Star Wars').director
'J.J. Abrams'
.. testcleanup::
conn.close()
Pure Python Equivalents
^^^^^^^^^^^^^^^^^^^^^^^