Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Feb 6, 2025
1 parent a993302 commit c62f3b0
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions tests/tracer/test_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@ def test_tracer_shutdown_timeout():


@pytest.mark.subprocess
def test_tracer_shutdown():
def test_tracer_shutdown(
err=b"Spans started after the tracer has been shut down will not be sent to the Datadog Agent.\n",
):
import mock

from ddtrace.internal.writer import AgentWriter
Expand All @@ -691,26 +693,6 @@ def test_tracer_shutdown():

mock_write.assert_not_called()

@pytest.mark.subprocess
def test_tracer_shutdown_warning():
import logging

import mock

from ddtrace.trace import tracer as t

t.shutdown()

with mock.patch.object(logging.Logger, "warning") as mock_logger:
with t.trace("something"):
pass

mock_logger.assert_has_calls(
[
mock.call("Spans started after the tracer has been shut down will not be sent to the Datadog Agent."),
]
)


@pytest.mark.skip(reason="Fails to Pickle RateLimiter in the Tracer")
@pytest.mark.subprocess
Expand Down

0 comments on commit c62f3b0

Please sign in to comment.