Skip to content

Commit 3eed921

Browse files
committed
update comment in test
1 parent 91d41d7 commit 3eed921

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

instrumentation/opentelemetry-instrumentation-psycopg2/tests/test_psycopg2_instrumentation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ def test_instrumentation_dependencies_both_installed(
9595
instrumentation = Psycopg2Instrumentor()
9696

9797
def _distribution(name):
98-
# Function raises PackageNotFoundError
99-
# if name is not in the list. We will
100-
# not raise it for both names
98+
# The function returns None here for all names
99+
# to simulate both packages being installed
101100
return None
102101

103102
mock_distribution.side_effect = _distribution

0 commit comments

Comments
 (0)