We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08c7946 commit 48e19d5Copy full SHA for 48e19d5
tests/tracing/test_async_context.py
@@ -1,4 +1,7 @@
1
import asyncio
2
+import sys
3
+
4
5
import pytest
6
import sentry_sdk
7
@@ -16,6 +19,10 @@ async def parent_task():
16
19
return parent_span, spans
17
20
18
21
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
+)
26
@pytest.mark.asyncio
27
async def test_concurrent_spans_are_children():
28
sentry_sdk.init(
0 commit comments