Skip to content

Commit

Permalink
Delint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed Dec 16, 2024
1 parent ca50fc9 commit 37594f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions tests/system/test_observability_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def test_transaction_abort_then_retry_spans():
from opentelemetry.trace.status import StatusCode
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.sampling import ALWAYS_ON
from opentelemetry import trace

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

counters = dict(aborted=0)
already_aborted = False

def select_in_txn(txn):
from google.rpc import error_details_pb2

results = txn.execute_sql("SELECT 1")
for row in results:
_ = row
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_spans_bind_get(self):
database._sessions.extend(SESSIONS)
pool.bind(database)

with trace_call("pool.Get", SESSIONS[0]) as span:
with trace_call("pool.Get", SESSIONS[0]):
pool.get()

span_list = self.get_finished_spans()
Expand Down

0 comments on commit 37594f7

Please sign in to comment.