mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	| @@ -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. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user