Skip to content

Commit d91938a

Browse files
authored
Apply suggestions from code review
1 parent 74b8508 commit d91938a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-aiokafka/tests/test_instrumentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def is_async_consume_hook_mock(obj: Any) -> bool:
266266

267267
AIOKafkaInstrumentor().uninstrument()
268268

269-
# mock.patch is a hack for Python 3.9 see https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3880
269+
# TODO: remove mock.patch when we drop Python 3.9 support
270270
with mock.patch(
271271
"opentelemetry.instrumentation.aiokafka.iscoroutinefunction"
272272
) as iscoro:
@@ -462,7 +462,7 @@ def is_async_produce_hook_mock(obj: Any) -> bool:
462462
return obj is async_produce_hook_mock
463463

464464
AIOKafkaInstrumentor().uninstrument()
465-
# mock.patch is a hack for Python 3.9 see https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3880
465+
# TODO: remove mock.patch when we drop Python 3.9 support
466466
with mock.patch(
467467
"opentelemetry.instrumentation.aiokafka.iscoroutinefunction"
468468
) as iscoro:

0 commit comments

Comments
 (0)