From ac6c7f44ef6eb322348fd009a4326868a3b884f5 Mon Sep 17 00:00:00 2001 From: Dmitry Erlikh Date: Mon, 18 Jan 2021 14:20:07 +0100 Subject: [PATCH] fix test_client_session.py --- tests/test_client_session.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_client_session.py b/tests/test_client_session.py index 859f5b38f06..e9816ae54da 100644 --- a/tests/test_client_session.py +++ b/tests/test_client_session.py @@ -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 @@ -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: