diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-04 09:22:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 09:22:19 (GMT) |
commit | f48e669504ce53040a04e0181064c11741a87817 (patch) | |
tree | f4e9f104446bafb19b2a92a0769f20c7a6799b19 /Doc | |
parent | ac01e2243a1104b2154c0d1bdbc9f8d5b3ada778 (diff) | |
download | cpython-f48e669504ce53040a04e0181064c11741a87817.zip cpython-f48e669504ce53040a04e0181064c11741a87817.tar.gz cpython-f48e669504ce53040a04e0181064c11741a87817.tar.bz2 |
gh-111724: Fix doctest `ResourceWarning` in `howto/descriptor.rst` (#111725)
Close database connection explicitly in test cleanup.
Diffstat (limited to 'Doc')
-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 024c1eb..90d67d8 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 ^^^^^^^^^^^^^^^^^^^^^^^ |