@@ -495,6 +495,7 @@ async def handler(request):
495495 AioHttpServerInstrumentor ().uninstrument ()
496496
497497
498+ # pylint: disable=too-many-locals
498499@pytest .mark .asyncio
499500async def test_semantic_conventions_metrics_old_default (
500501 tracer , meter , aiohttp_server , monkeypatch
@@ -513,7 +514,7 @@ async def test_semantic_conventions_metrics_old_default(
513514 client_session = aiohttp .ClientSession ()
514515 try :
515516 url = f"http://{ server .host } :{ server .port } /test-path?query=test"
516- async with client_session .get (
517+ async with client_session .get ( # pylint: disable=not-async-context-manager
517518 url , headers = {"User-Agent" : "test-agent" }
518519 ) as response :
519520 assert response .status == 200
@@ -563,6 +564,7 @@ async def test_semantic_conventions_metrics_old_default(
563564 AioHttpServerInstrumentor ().uninstrument ()
564565
565566
567+ # pylint: disable=too-many-locals
566568@pytest .mark .asyncio
567569async def test_semantic_conventions_metrics_new (
568570 tracer , meter , aiohttp_server , monkeypatch
@@ -581,7 +583,7 @@ async def test_semantic_conventions_metrics_new(
581583 client_session = aiohttp .ClientSession ()
582584 try :
583585 url = f"http://{ server .host } :{ server .port } /test-path?query=test"
584- async with client_session .get (
586+ async with client_session .get ( # pylint: disable=not-async-context-manager
585587 url , headers = {"User-Agent" : "test-agent" }
586588 ) as response :
587589 assert response .status == 200
@@ -639,6 +641,7 @@ async def test_semantic_conventions_metrics_new(
639641 AioHttpServerInstrumentor ().uninstrument ()
640642
641643
644+ # pylint: disable=too-many-locals
642645@pytest .mark .asyncio
643646async def test_semantic_conventions_metrics_both (
644647 tracer , meter , aiohttp_server , monkeypatch
@@ -657,7 +660,7 @@ async def test_semantic_conventions_metrics_both(
657660 client_session = aiohttp .ClientSession ()
658661 try :
659662 url = f"http://{ server .host } :{ server .port } /test-path?query=test"
660- async with client_session .get (
663+ async with client_session .get ( # pylint: disable=not-async-context-manager
661664 url , headers = {"User-Agent" : "test-agent" }
662665 ) as response :
663666 assert response .status == 200
0 commit comments