Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb4fc12

Browse files
a-feldreyang
authored andcommitted
Fix test failures involving contextvars. (open-telemetry#96)
1 parent 20011c5 commit cb4fc12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opentelemetry-sdk/tests/trace/test_trace.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def test_start_span_explicit(self):
112112
self.assertIsNotNone(child.end_time)
113113

114114
def test_span_members(self):
115-
context = contextvars.ContextVar('test_span_members')
116-
tracer = trace.Tracer(context)
115+
tracer = trace.Tracer('test_span_members')
117116

118117
other_context1 = trace_api.SpanContext(
119118
trace_id=trace.generate_trace_id(),

0 commit comments

Comments
 (0)