Skip to content

Commit cebf2d2

Browse files
[3.11] gh-111724: Fix doctest ResourceWarning in howto/descriptor.rst (GH-111725) (#111728)
gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725) Close database connection explicitly in test cleanup. (cherry picked from commit f48e669) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 425efc1 commit cebf2d2

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)