mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-111724: Fix doctest ResourceWarning in howto/descriptor.rst (#111725)
Close database connection explicitly in test cleanup.
This commit is contained in:
parent
ac01e2243a
commit
f48e669504
1 changed files with 4 additions and 0 deletions
|
|
@ -943,6 +943,10 @@ it can be updated:
|
|||
>>> Movie('Star Wars').director
|
||||
'J.J. Abrams'
|
||||
|
||||
.. testcleanup::
|
||||
|
||||
conn.close()
|
||||
|
||||
|
||||
Pure Python Equivalents
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue