From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 4 Nov 2023 19:56:08 +0000 (+0100) Subject: [3.11] gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725... X-Git-Tag: v3.11.7~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cebf2d2a5d751052d16b6234e78e0e902b72b706;p=thirdparty%2FPython%2Fcpython.git [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 f48e669504ce53040a04e0181064c11741a87817) Co-authored-by: Nikita Sobolev --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 1d9424cb735a..0a7263614670 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 ^^^^^^^^^^^^^^^^^^^^^^^