mirror of
https://github.com/django/django.git
synced 2025-09-09 12:10:49 +00:00
parent
d5cef2a19c
commit
e68c084ed1
1 changed files with 3 additions and 4 deletions
|
@ -627,8 +627,7 @@ class IsUsableTests(TransactionTestCase):
|
|||
Regression for #21553.
|
||||
"""
|
||||
# Open a connection to the database.
|
||||
with connection.cursor():
|
||||
pass
|
||||
connection.cursor().close()
|
||||
# Emulate a connection close by the database.
|
||||
connection._close()
|
||||
# Even then is_usable() should not raise an exception.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue