Skip to content

Commit

Permalink
Update test_proxy_functional.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Apr 25, 2024
1 parent 783ad3d commit 2940c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_proxy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async def test_https_proxy_unsupported_tls_in_tls(
) as conn_err:
await sess.get(url, proxy=secure_proxy_url, ssl=client_ssl_ctx)

assert type(conn_err.value.__cause__) == TypeError
assert isinstance(conn_err.value.__cause__, TypeError)
assert match_regex(f"^{type_err!s}$", str(conn_err.value.__cause__))

await sess.close()
Expand Down

0 comments on commit 2940c22

Please sign in to comment.