From: Nikita Sobolev Date: Sat, 4 Nov 2023 09:22:19 +0000 (+0300) Subject: gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725) X-Git-Tag: v3.13.0a2~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f48e669504ce53040a04e0181064c11741a87817;p=thirdparty%2FPython%2Fcpython.git gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725) Close database connection explicitly in test cleanup. --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 024c1eb3e3b2..90d67d84d0ef 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -943,6 +943,10 @@ it can be updated: >>> Movie('Star Wars').director 'J.J. Abrams' +.. testcleanup:: + + conn.close() + Pure Python Equivalents ^^^^^^^^^^^^^^^^^^^^^^^