Skip to content

Commit

Permalink
[Mega-Linter] Apply linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lrafeei authored and github-actions[bot] committed Aug 2, 2023
1 parent 0d7d4ff commit 04648b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions tests/agent_features/test_span_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def test_each_span_type(trace_type, args):
)
@background_task(name="test_each_span_type")
def _test():

transaction = current_transaction()
transaction._sampled = True

Expand Down Expand Up @@ -307,7 +306,6 @@ def _test():
}
)
def test_external_span_limits(kwarg_override, attr_override):

exact_intrinsics = {
"type": "Span",
"sampled": True,
Expand Down Expand Up @@ -364,7 +362,6 @@ def _test():
}
)
def test_datastore_span_limits(kwarg_override, attribute_override):

exact_intrinsics = {
"type": "Span",
"sampled": True,
Expand Down Expand Up @@ -505,7 +502,6 @@ def __exit__(self, *args):
)
@pytest.mark.parametrize("exclude_attributes", (True, False))
def test_span_event_user_attributes(trace_type, args, exclude_attributes):

_settings = {
"distributed_tracing.enabled": True,
"span_events.enabled": True,
Expand Down Expand Up @@ -622,7 +618,6 @@ def _test():
),
)
def test_span_event_error_attributes_notice_error(trace_type, args):

_settings = {
"distributed_tracing.enabled": True,
"span_events.enabled": True,
Expand Down Expand Up @@ -670,7 +665,6 @@ def _test():
),
)
def test_span_event_error_attributes_observed(trace_type, args):

error = ValueError("whoops")

exact_agents = {
Expand Down
2 changes: 0 additions & 2 deletions tests/datastore_postgresql/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def test_execute_via_cursor():
host=DB_SETTINGS["host"],
port=DB_SETTINGS["port"],
) as connection:

cursor = connection.cursor()

cursor.execute("""drop table if exists %s""" % DB_SETTINGS["table_name"])
Expand Down Expand Up @@ -153,7 +152,6 @@ def test_rollback_on_exception():
host=DB_SETTINGS["host"],
port=DB_SETTINGS["port"],
):

raise RuntimeError("error")

except RuntimeError:
Expand Down

0 comments on commit 04648b7

Please sign in to comment.