From 2e0961f1037d8663901e4098fc7feb6c085d24b2 Mon Sep 17 00:00:00 2001 From: sroda Date: Wed, 28 Dec 2022 13:16:57 +0200 Subject: [PATCH] Fix lint issues --- .../tests/test_metrics_instrumentation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py b/instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py index fbc0f75b2d..89bd5c8d06 100644 --- a/instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py @@ -16,7 +16,6 @@ import urllib from timeit import default_timer from typing import Optional, Union -from urllib import request from urllib.parse import urlencode import httpretty @@ -24,12 +23,12 @@ from opentelemetry.instrumentation.urllib import ( # pylint: disable=no-name-in-module,import-error URLLibInstrumentor, ) -from opentelemetry.semconv.metrics import MetricInstruments from opentelemetry.sdk.metrics._internal.point import Metric from opentelemetry.sdk.metrics.export import ( HistogramDataPoint, NumberDataPoint, ) +from opentelemetry.semconv.metrics import MetricInstruments from opentelemetry.test.test_base import TestBase @@ -172,7 +171,7 @@ def test_basic_metric(self): def test_basic_metric_request_not_empty(self): data = {"header1": "value1", "header2": "value2"} - data_encoded = urllib.parse.urlencode(data).encode() + data_encoded = urlencode(data).encode() start_time = default_timer() result = urllib.request.urlopen(self.URL_POST, data=data_encoded)