Skip to content

Commit 2ffad48

Browse files
author
vitja
committed
refactor testsuite: remove testsuite.compat usages
commit_hash:d6abcabe8bbe88b3e381f912066e541a39cff84d
1 parent b818fdf commit 2ffad48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testsuite/pytest_plugins/pytest_userver/plugins/service_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"""
44

55
# pylint: disable=redefined-outer-name
6+
import contextlib
67
import typing
78

89
import aiohttp.client_exceptions
910
import pytest
1011
import websockets
1112

1213
from testsuite.daemons import service_client as base_service_client
13-
from testsuite.utils import compat
1414

1515
from pytest_userver import client
1616

@@ -68,7 +68,7 @@ async def userver_client_cleanup(
6868
else:
6969
tasks_to_suspend = ()
7070

71-
@compat.asynccontextmanager
71+
@contextlib.asynccontextmanager
7272
async def cleanup_manager(client: client.Client):
7373
@servicelogs_register_flusher
7474
async def do_flush():
@@ -105,7 +105,7 @@ async def websocket_client(service_client, service_port):
105105
"""
106106

107107
class Client:
108-
@compat.asynccontextmanager
108+
@contextlib.asynccontextmanager
109109
async def get(self, path):
110110
update_server_state = getattr(
111111
service_client,

0 commit comments

Comments
 (0)