Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Feb 5, 2025
1 parent 88e2179 commit 29c1ef0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/tracer/test_memory_leak.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
"""
Variety of test cases ensuring that ddtrace does not leak memory.
"""
from typing import TYPE_CHECKING
from weakref import WeakValueDictionary

import pytest

from ddtrace.trace import Span
from ddtrace.trace import Tracer
from tests.utils import DummyTracer


if TYPE_CHECKING: # pragma: no cover
from ddtrace.trace import Span # noqa:F401
from ddtrace.trace import Tracer # noqa:F401


@pytest.fixture
def tracer() -> DummyTracer:
return DummyTracer()


def trace(weakdict: WeakValueDictionary, tracer: Tracer, *args, **kwargs):
# type: (...) -> Span
def trace(weakdict: WeakValueDictionary, tracer: Tracer, *args, **kwargs) -> Span:
"""Return a span created from ``tracer`` and add it to the given weak
dictionary.
Expand Down

0 comments on commit 29c1ef0

Please sign in to comment.