Skip to content

Commit acd0bb8

Browse files
committed
wip: fix failing test on Python 3.9
- For some reason, the docstring comparison for the reflection check seemed to fail in Python 3.9 - I shortened the docstring to make it easier to compare in VSCode test output, that seemed to fix the test. Maybe 3.9 doesn't strip leading spaces in the docstring (e.g. like textwrap.dedent)?
1 parent a203bf7 commit acd0bb8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/contrib/test_opentelemetry.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ async def run(self) -> str:
390390

391391
@activity.defn
392392
def sync_activity(param: typing.Any) -> str:
393-
"""An activity that uses tracing features.
394-
395-
When executed in a process pool, we expect the trace context to be available
396-
from the parent process.
397-
"""
393+
"""An activity that uses tracing features."""
398394
inner_tracer = get_tracer("sync_activity")
399395
with inner_tracer.start_as_current_span(
400396
"child_span",
@@ -455,7 +451,7 @@ async def test_activity_trace_propagation(
455451
name="sync_activity",
456452
qualname="sync_activity",
457453
module="tests.contrib.test_opentelemetry",
458-
docstring="An activity that uses tracing features.\n\nWhen executed in a process pool, we expect the trace context to be available\nfrom the parent process.\n",
454+
docstring="An activity that uses tracing features.",
459455
annotations={"param": "typing.Any", "return": "str"},
460456
)
461457
]

0 commit comments

Comments
 (0)