Skip to content

Commit 77577fc

Browse files
committed
Fixed tests for old python versions.
Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent 2ad7c53 commit 77577fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import List, Optional
22

33
import pytest
44
from aiohttp import web
@@ -98,7 +98,7 @@ async def test_multiple(
9898
my_app: web.Application,
9999
aiohttp_client: ClientGenerator,
100100
):
101-
async def handler(my_header: list[int] = Depends(Header(multiple=True))):
101+
async def handler(my_header: List[int] = Depends(Header(multiple=True))):
102102
return web.json_response({"header": my_header})
103103

104104
my_app.router.add_get("/", handler)

tests/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import List, Optional
22

33
import pytest
44
from aiohttp import web
@@ -98,7 +98,7 @@ async def test_multiple(
9898
my_app: web.Application,
9999
aiohttp_client: ClientGenerator,
100100
):
101-
async def handler(my_query: list[int] = Depends(Query(multiple=True))):
101+
async def handler(my_query: List[int] = Depends(Query(multiple=True))):
102102
return web.json_response({"query": my_query})
103103

104104
my_app.router.add_get("/", handler)

0 commit comments

Comments
 (0)