Skip to content

Commit 8fb7894

Browse files
committed
Fix lint
1 parent 895e172 commit 8fb7894

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

opentelemetry-instrumentation/tests/auto_instrumentation/test_sitecustomize.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from unittest import TestCase
33
from unittest.mock import patch
44

5-
class TestSiteCustomize(TestCase):
65

6+
class TestSiteCustomize(TestCase):
77
@classmethod
88
def setUpClass(cls):
99
cls.load_configurators = patch(
@@ -24,15 +24,24 @@ def tearDownClass(cls):
2424
def test_unset(self):
2525
if environ.get("PYTHONPATH"):
2626
del environ["PYTHONPATH"] # enforce remove key/value from environ
27-
from opentelemetry.instrumentation.auto_instrumentation import sitecustomize
27+
from opentelemetry.instrumentation.auto_instrumentation import (
28+
sitecustomize,
29+
)
30+
2831
self.assertEqual(environ.get("PYTHONPATH"), None)
2932

3033
@patch.dict("os.environ", {"PYTHONPATH": ""})
3134
def test_empty(self):
32-
from opentelemetry.instrumentation.auto_instrumentation import sitecustomize
35+
from opentelemetry.instrumentation.auto_instrumentation import (
36+
sitecustomize,
37+
)
38+
3339
self.assertEqual(environ["PYTHONPATH"], "")
3440

3541
@patch.dict("os.environ", {"PYTHONPATH": "abc"})
3642
def test_set(self):
37-
from opentelemetry.instrumentation.auto_instrumentation import sitecustomize
43+
from opentelemetry.instrumentation.auto_instrumentation import (
44+
sitecustomize,
45+
)
46+
3847
self.assertEqual(environ["PYTHONPATH"], "abc")

0 commit comments

Comments
 (0)