Loading tests/backends/tests.py +3 −4 Original line number Diff line number Diff line Loading @@ -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 Loading
tests/backends/tests.py +3 −4 Original line number Diff line number Diff line Loading @@ -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