diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-11-04 19:55:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 19:55:55 (GMT) |
commit | 9c583f36d59bee13803d5192f6ba1f594b731b9a (patch) | |
tree | 002747b9c46445835205f13889a9dceb0cba6908 | |
parent | cd778b4917b29b4868aa339e920f947ab6cb6cb9 (diff) | |
download | cpython-9c583f36d59bee13803d5192f6ba1f594b731b9a.zip cpython-9c583f36d59bee13803d5192f6ba1f594b731b9a.tar.gz cpython-9c583f36d59bee13803d5192f6ba1f594b731b9a.tar.bz2 |
[3.12] gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (GH-111725) (#111727)
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 <mail@sobolevn.me>
-rw-r--r-- | Doc/howto/descriptor.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 1d9424c..0a72636 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 ^^^^^^^^^^^^^^^^^^^^^^^ |