Skip to content

Commit 2f079d2

Browse files
committed
.
1 parent bc03c6a commit 2f079d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integrations/threading/test_threading.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import sentry_sdk
1010
from sentry_sdk import capture_message
1111
from sentry_sdk.integrations.threading import ThreadingIntegration
12+
from sentry_sdk.tracing import _OTEL_VERSION
1213

1314
original_start = Thread.start
1415
original_run = Thread.run
@@ -105,7 +106,10 @@ def double(number):
105106
assert len(event["spans"]) == 0
106107

107108

108-
@pytest.mark.skipif(sys.version_info[:2] == [3, 8], reason="Fails in CI")
109+
@pytest.mark.skipif(
110+
sys.version[:2] == [3, 8] and (1, 12) <= _OTEL_VERSION < (1, 15),
111+
reason="Fails in CI on 3.8 and specific OTel versions, works locally",
112+
)
109113
def test_circular_references(sentry_init, request):
110114
sentry_init(default_integrations=False, integrations=[ThreadingIntegration()])
111115

0 commit comments

Comments
 (0)