We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22e9b7 commit 9623227Copy full SHA for 9623227
1 file changed
examples/web_srv.py
@@ -4,8 +4,7 @@
4
import asyncio
5
import textwrap
6
7
-import aiohttp
8
-from aiohttp import web
+from aiohttp import ClientSession, web
9
10
11
async def intro(request: web.Request) -> web.StreamResponse:
@@ -72,7 +71,7 @@ async def run_tests(port: int) -> None:
72
71
"""Run all tests against the server."""
73
base_url = f"http://localhost:{port}"
74
75
- async with aiohttp.ClientSession() as session:
+ async with ClientSession() as session:
76
print("=== Test 1: Intro page ===")
77
async with session.get(f"{base_url}/") as resp:
78
assert resp.status == 200
0 commit comments