Skip to content

Commit 143000a

Browse files
committed
modify test configure
1 parent e05b02b commit 143000a

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

instrumentation/opentelemetry-instrumentation-asyncio/pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ dependencies = [
2929
"wrapt >= 1.0.0, < 2.0.0",
3030
]
3131

32+
[project.optional-dependencies]
33+
instruments = []
34+
test = [
35+
"opentelemetry-test-utils == 0.41b0.dev",
36+
]
37+
3238
[project.optional-dependencies]
3339
test = [
3440
"opentelemetry-instrumentation-asyncio[instruments]",

instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_taskgroup.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
import asyncio
1515
import sys
1616

17-
import aiotools
1817
from opentelemetry.test.test_base import TestBase
1918
from opentelemetry.trace import get_tracer
2019

21-
from .common_test_func import async_func
2220
from opentelemetry.instrumentation.asyncio import AsyncioInstrumentor
21+
from .common_test_func import async_func
2322

2423
py11 = False
2524
if sys.version_info >= (3, 11):
@@ -44,16 +43,9 @@ async def main():
4443
async with asyncio.TaskGroup() as tg:
4544
for _ in range(10):
4645
tg.create_task(async_func())
47-
else:
48-
async with aiotools.TaskGroup() as tg:
49-
for _ in range(10):
50-
tg.create_task(async_func())
5146

5247
asyncio.run(main())
5348
spans = self.memory_exporter.get_finished_spans()
5449
assert spans
5550
if py11:
5651
self.assertEqual(len(spans), 10)
57-
else:
58-
# aiotools.TaskGroup is Out of scope of support.
59-
self.assertEqual(len(spans), 0)

0 commit comments

Comments
 (0)