Skip to content

Commit 48e19d5

Browse files
add skipif
1 parent 08c7946 commit 48e19d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/tracing/test_async_context.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import asyncio
2+
import sys
3+
4+
25
import pytest
36
import sentry_sdk
47

@@ -16,6 +19,10 @@ async def parent_task():
1619
return parent_span, spans
1720

1821

22+
@pytest.mark.skipif(
23+
sys.version_info < (3, 7),
24+
reason="python 3.6 lacks proper contextvar support. Contextvars are needed to prevent scope bleed in async context",
25+
)
1926
@pytest.mark.asyncio
2027
async def test_concurrent_spans_are_children():
2128
sentry_sdk.init(

0 commit comments

Comments
 (0)