Skip to content

Commit fb02f8f

Browse files
Update tests/python/test_apimrequests.py
Co-authored-by: Copilot <[email protected]>
1 parent d90587e commit fb02f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/python/test_apimrequests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ def test_multi_get_error(mock_print_info, mock_print_message, mock_session, apim
119119
mock_sess.request.side_effect = requests.exceptions.RequestException("fail")
120120
mock_session.return_value = mock_sess
121121
with patch.object(apim, "_print_response_code"):
122-
# Should raise inside the loop, but function should still close session and return what it has
122+
# Should raise inside the loop and propagate the exception, ensuring the session is closed
123123
with pytest.raises(requests.exceptions.RequestException):
124124
apim.multiGet(default_path, runs=1, printResponse=True)

0 commit comments

Comments
 (0)