Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
euniceek committed Jun 10, 2021
1 parent ba15cdc commit 092e341
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opentelemetry-api/tests/context/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


def _do_work() -> str:
# pylint: disable=protected-access
key = context._create_key("say")
context.attach(context.set_value(key, "bar"))
return key
Expand All @@ -29,6 +30,7 @@ def setUp(self):
context.attach(Context())

def test_context_key(self):
# pylint: disable=protected-access
key1 = context._create_key("say")
key2 = context._create_key("say")
self.assertNotEqual(key1, key2)
Expand All @@ -38,6 +40,7 @@ def test_context_key(self):
self.assertEqual(context.get_value(key2, context=second), "bar")

def test_context(self):
# pylint: disable=protected-access
key1 = context._create_key("say")
self.assertIsNone(context.get_value(key1))
empty = context.get_current()
Expand Down

0 comments on commit 092e341

Please sign in to comment.