Skip to content

Commit

Permalink
addressing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jun 5, 2020
1 parent d8320d5 commit 3732f31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opentelemetry-sdk/tests/trace/propagation/test_b3_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import opentelemetry.sdk.trace as trace
import opentelemetry.sdk.trace.propagation.b3_format as b3_format
import opentelemetry.trace as trace_api
from opentelemetry.trace.propagation import set_span_in_context
from opentelemetry.context import get_current
from opentelemetry.trace.propagation import set_span_in_context

FORMAT = b3_format.B3Format()

Expand Down Expand Up @@ -257,7 +257,8 @@ def test_missing_span_id(self):
span_context = trace_api.get_current_span(ctx).get_context()
self.assertEqual(span_context.span_id, trace_api.INVALID_SPAN_ID)

def test_inject_empty_context(self):
@staticmethod
def test_inject_empty_context():
"""If the current context has no span, don't add headers"""
new_carrier = {}
FORMAT.inject(dict.__setitem__, new_carrier, get_current())
Expand Down

0 comments on commit 3732f31

Please sign in to comment.