Skip to content

Commit

Permalink
fix test_client_session.py
Browse files Browse the repository at this point in the history
  • Loading branch information
derlih committed Jan 18, 2021
1 parent d559a39 commit ac6c7f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_client_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import aiohttp
from aiohttp import client, hdrs, web
from aiohttp.client import ClientSession
from aiohttp.client import ClientSession, ClientTimeout
from aiohttp.client_reqrep import ClientRequest
from aiohttp.connector import BaseConnector, TCPConnector
from aiohttp.test_utils import make_mocked_coro
Expand Down Expand Up @@ -677,8 +677,9 @@ async def test_client_session_timeout_default_args(loop: Any) -> None:


async def test_client_session_timeout_argument() -> None:
session = ClientSession(timeout=500)
assert session.timeout == 500
timeout = ClientTimeout(total=500)
session = ClientSession(timeout=timeout)
assert session.timeout == timeout


async def test_requote_redirect_url_default() -> None:
Expand Down

0 comments on commit ac6c7f4

Please sign in to comment.