Skip to content

Commit a608930

Browse files
ericapisaniclaude
andcommitted
fix(tests): Allow duplicate entry points from editable installs
Editable installs on some Python versions register the entry point twice (via setup.py and dist-info). Assert >= 1 match instead of exactly 1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f19d5cb commit a608930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/integrations/opentelemetry/test_entry_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_propagator_registered_as_entry_point():
1919
else:
2020
matches = list(all_eps.select(group="opentelemetry_propagator", name="sentry"))
2121

22-
assert len(matches) == 1
22+
assert len(matches) >= 1
2323
assert matches[0].value == "sentry_sdk.integrations.opentelemetry:SentryPropagator"
2424

2525
loaded = matches[0].load()

0 commit comments

Comments
 (0)