@@ -102,7 +102,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
102102
103103for closed in (True ,False ):
104104with self .subTest (closed = closed ):
105- #set initial state based on whether the command is already closed
105+ #Set initial state based on whether the command is already closed
106106initial_state = (
107107CommandState .CLOSED if closed else CommandState .SUCCEEDED
108108 )
@@ -114,7 +114,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
114114mock_execute_response .is_staging_operation = False
115115mock_execute_response .command_id = Mock (spec = CommandId )
116116
117- # Mock the backend that will be used by the real ThriftResultSet
117+ # Mock the backend that will be used
118118mock_backend = Mock (spec = ThriftDatabricksClient )
119119mock_backend .staging_allowed_local_path = None
120120mock_thrift_client_class .return_value = mock_backend
@@ -132,7 +132,7 @@ def test_closing_connection_closes_commands(self, mock_thrift_client_class):
132132# Mock execute_command to return our real result set
133133cursor .backend .execute_command = Mock (return_value = real_result_set )
134134
135- # Execute a command - this should set cursor.active_result_set to our real result set
135+ # Execute a command
136136cursor .execute ("SELECT 1" )
137137
138138# Close the connection