Skip to content

Commit 69e7eb5

Browse files
committed
test(sqlalchemy): remove unused parent_span variable
Signed-off-by: Cagri Yonca <cagri@ibm.com>
1 parent 685990b commit 69e7eb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/clients/test_sqlalchemy.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def test_context_restored_after_query(self) -> None:
305305
find the correct parent. This validates the fix for the bug where
306306
after_cursor_execute used get_current_span() instead of conn.span, which
307307
could corrupt the context stack and cause child spans to be dropped."""
308-
with self.tracer.start_as_current_span("test") as parent_span:
308+
with self.tracer.start_as_current_span("test"):
309309
with engine.begin() as connection:
310310
connection.execute(text("select 1"))
311311

0 commit comments

Comments
 (0)