From 092e3418cfcdbee5a70fd2f846462ff6481a700b Mon Sep 17 00:00:00 2001 From: eunice98k Date: Thu, 10 Jun 2021 10:44:36 -0700 Subject: [PATCH] Fix lint errors --- opentelemetry-api/tests/context/test_context.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentelemetry-api/tests/context/test_context.py b/opentelemetry-api/tests/context/test_context.py index f6fd2ee0341..89c4bc136ff 100644 --- a/opentelemetry-api/tests/context/test_context.py +++ b/opentelemetry-api/tests/context/test_context.py @@ -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 @@ -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) @@ -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()