Skip to content

Commit 37594f7

Browse files
committed
Delint tests
1 parent ca50fc9 commit 37594f7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tests/system/test_observability_options.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def test_transaction_abort_then_retry_spans():
150150
from opentelemetry.trace.status import StatusCode
151151
from opentelemetry.sdk.trace import TracerProvider
152152
from opentelemetry.sdk.trace.sampling import ALWAYS_ON
153-
from opentelemetry import trace
154153

155154
PROJECT = _helpers.EMULATOR_PROJECT
156155
CONFIGURATION_NAME = "config-name"
@@ -161,11 +160,8 @@ def test_transaction_abort_then_retry_spans():
161160
LABELS = {"test": "true"}
162161

163162
counters = dict(aborted=0)
164-
already_aborted = False
165163

166164
def select_in_txn(txn):
167-
from google.rpc import error_details_pb2
168-
169165
results = txn.execute_sql("SELECT 1")
170166
for row in results:
171167
_ = row

tests/unit/test_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def test_spans_bind_get(self):
243243
database._sessions.extend(SESSIONS)
244244
pool.bind(database)
245245

246-
with trace_call("pool.Get", SESSIONS[0]) as span:
246+
with trace_call("pool.Get", SESSIONS[0]):
247247
pool.get()
248248

249249
span_list = self.get_finished_spans()

0 commit comments

Comments
 (0)