Skip to content

Commit 66e926b

Browse files
committed
Minimize changes
1 parent 5aed01f commit 66e926b

File tree

1 file changed

+7
-2
lines changed
  • opentelemetry-instrumentation/tests/auto_instrumentation

1 file changed

+7
-2
lines changed

opentelemetry-instrumentation/tests/auto_instrumentation/test_load.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ def test_load_distro_error(self, iter_mock, isinstance_mock):
203203
# Confirm method raises exception if it fails to load a distro.
204204
self.assertRaises(Exception, _load._load_distro)
205205

206+
@staticmethod
207+
def _instrumentation_failed_to_load_call(entry_point, dependency_conflict):
208+
return call(
209+
"Skipping instrumentation %s: %s", entry_point, dependency_conflict
210+
)
211+
206212
@patch.dict(
207213
"os.environ",
208214
{OTEL_PYTHON_DISABLED_INSTRUMENTATIONS: " instr1 , instr3 "},
@@ -328,8 +334,7 @@ def test_load_instrumentors_dep_conflict(
328334
"Instrumentation skipped for library %s",
329335
ep_mock3.name,
330336
),
331-
call(
332-
"Skipping instrumentation %s: %s",
337+
self._instrumentation_failed_to_load_call(
333338
ep_mock4.name,
334339
dependency_conflict,
335340
),

0 commit comments

Comments
 (0)