Skip to content

Commit aa79505

Browse files
Apply suggestion from @Dreamsorcerer
1 parent c3de081 commit aa79505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_client_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ async def handler(request: web.Request) -> web.Response:
875875
# Use an IP-based URL to verify that ad-hoc cookies are sent
876876
# when the session cookie jar has unsafe=True.
877877
ip_url = server.make_url("/")
878+
assert ip_url.host is not None
878879
assert ip_url.host.count(".") == 3 # Sanity check it looks like an IP address
879880
cookies = {"adhoc": "value"}
880881
async with aiohttp.ClientSession(cookie_jar=jar) as sess:

0 commit comments

Comments
 (0)