Skip to content

Commit 59b93f1

Browse files
committed
rest: print also HTTP response reason in case of an error
1 parent 7fe94a0 commit 59b93f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/interface_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_rest_request(
8484
conn.request('POST', rest_uri, body)
8585
resp = conn.getresponse()
8686

87-
assert resp.status == status, f"Expected: {status}, Got: {resp.status} - Response: {str(resp.read())}"
87+
assert resp.status == status, f"Expected: {status}, Got: {resp.status} ({resp.reason}) - Response: {str(resp.read())}"
8888

8989
if ret_type == RetType.OBJ:
9090
return resp

0 commit comments

Comments
 (0)