Skip to content

Commit 2e0961f

Browse files
committed
Fix lint issues
1 parent 06dadb7 commit 2e0961f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@
1616
import urllib
1717
from timeit import default_timer
1818
from typing import Optional, Union
19-
from urllib import request
2019
from urllib.parse import urlencode
2120

2221
import httpretty
2322

2423
from opentelemetry.instrumentation.urllib import ( # pylint: disable=no-name-in-module,import-error
2524
URLLibInstrumentor,
2625
)
27-
from opentelemetry.semconv.metrics import MetricInstruments
2826
from opentelemetry.sdk.metrics._internal.point import Metric
2927
from opentelemetry.sdk.metrics.export import (
3028
HistogramDataPoint,
3129
NumberDataPoint,
3230
)
31+
from opentelemetry.semconv.metrics import MetricInstruments
3332
from opentelemetry.test.test_base import TestBase
3433

3534

@@ -172,7 +171,7 @@ def test_basic_metric(self):
172171

173172
def test_basic_metric_request_not_empty(self):
174173
data = {"header1": "value1", "header2": "value2"}
175-
data_encoded = urllib.parse.urlencode(data).encode()
174+
data_encoded = urlencode(data).encode()
176175

177176
start_time = default_timer()
178177
result = urllib.request.urlopen(self.URL_POST, data=data_encoded)

0 commit comments

Comments
 (0)