Skip to content

Commit 102a8ca

Browse files
httpx_issue_979 - Linter correction - use of double quote instead of single quote for the client url
Signed-off-by: Peri, Suryanarayana <[email protected]>
1 parent 51b2910 commit 102a8ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
from opentelemetry.test.mock_textmap import MockTextMapPropagator
5757
from opentelemetry.test.test_base import TestBase
5858
from opentelemetry.trace import StatusCode
59-
from opentelemetry import trace as trace_api
6059

6160
if typing.TYPE_CHECKING:
6261
from opentelemetry.instrumentation.httpx import (
@@ -1219,9 +1218,9 @@ def test_basic_multiple(self):
12191218
async def test_no_op_tracer_provider(self):
12201219
HTTPXClientInstrumentor().uninstrument()
12211220
HTTPXClientInstrumentor().instrument(
1222-
tracer_provider=trace_api.NoOpTracerProvider()
1221+
tracer_provider=trace.NoOpTracerProvider()
12231222
)
12241223
async with httpx.AsyncClient() as client:
1225-
await client.get('http://test.com')
1224+
await client.get("http://test.com")
12261225
spans = self.memory_exporter.get_finished_spans()
12271226
self.assertEqual(len(spans), 0)

0 commit comments

Comments
 (0)