Fixed a broken test introduced in 6fa7d7c5. Refs #21553.

Thanks Shai.
This commit is contained in:
Aymeric Augustin 2014-04-10 07:51:04 +02:00
parent d5cef2a19c
commit e68c084ed1
1 changed files with 3 additions and 4 deletions

View File

@ -627,8 +627,7 @@ class IsUsableTests(TransactionTestCase):
Regression for #21553. Regression for #21553.
""" """
# Open a connection to the database. # Open a connection to the database.
with connection.cursor(): connection.cursor().close()
pass
# Emulate a connection close by the database. # Emulate a connection close by the database.
connection._close() connection._close()
# Even then is_usable() should not raise an exception. # Even then is_usable() should not raise an exception.