From 41a60348faf890b8c880a2ca423214bbe57df8e5 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 26 Jul 2026 16:37:30 +0000 Subject: [PATCH] test: rename race regression helper to avoid clobbering _make_logging_obj --- .../test_litellm/litellm_core_utils/test_litellm_logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_litellm/litellm_core_utils/test_litellm_logging.py b/tests/test_litellm/litellm_core_utils/test_litellm_logging.py index aed323dfe3b..9bc1064a260 100644 --- a/tests/test_litellm/litellm_core_utils/test_litellm_logging.py +++ b/tests/test_litellm/litellm_core_utils/test_litellm_logging.py @@ -4139,7 +4139,7 @@ class _MutateOnCompareKey(str): return str(self) != other -def _make_logging_obj(litellm_call_id): +def _make_logging_obj_for_race(litellm_call_id): return LitellmLogging( model="gpt-4o-mini", messages=[{"role": "user", "content": "Hey"}], @@ -4160,7 +4160,7 @@ def test_success_handler_snapshots_model_call_details_before_iterating(): log. The poison key mutates the dict mid-iteration; on the buggy code the logfire callback never runs. """ - logging_obj = _make_logging_obj("race-success-1") + logging_obj = _make_logging_obj_for_race("race-success-1") poison = _MutateOnCompareKey("poison", logging_obj.model_call_details) logging_obj.model_call_details[poison] = "value" @@ -4188,7 +4188,7 @@ def test_failure_handler_snapshots_model_call_details_before_iterating(): mutates the dict mid-iteration; on the buggy code the logfire callback never runs. """ - logging_obj = _make_logging_obj("race-failure-1") + logging_obj = _make_logging_obj_for_race("race-failure-1") poison = _MutateOnCompareKey("poison", logging_obj.model_call_details) logging_obj.model_call_details[poison] = "value"