Skip to content

Commit 9c28df0

Browse files
committed
Fix expected_http_error
1 parent faf9297 commit 9c28df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def expected_http_error(error, expected_code, expected_message=None):
2727
if isinstance(e, HTTPError):
2828
if expected_code != e.status_code:
2929
return False
30-
return expected_message is not None and expected_message != str(e)
30+
return not (expected_message is not None and expected_message != str(e))
3131
elif any(
3232
[
3333
isinstance(e, HTTPClientError),

0 commit comments

Comments
 (0)