Skip to content

Commit f48e669

Browse files
authored
gh-111724: Fix doctest ResourceWarning in howto/descriptor.rst (#111725)
Close database connection explicitly in test cleanup.
1 parent ac01e22 commit f48e669

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/howto/descriptor.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,10 @@ it can be updated:
943943
>>> Movie('Star Wars').director
944944
'J.J. Abrams'
945945

946+
.. testcleanup::
947+
948+
conn.close()
949+
946950

947951
Pure Python Equivalents
948952
^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)