Skip to content

Commit f629932

Browse files
committed
lint
1 parent 7bc89b3 commit f629932

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ def setUp(self):
171171
self._app = self._create_app()
172172
self._app.add_middleware(HTTPSRedirectMiddleware)
173173
self._client = TestClient(self._app, base_url="https://testserver:443")
174-
self._client.__enter__() # noqa: C2801 # run the lifespan, initialize the middleware stack
174+
# run the lifespan, initialize the middleware stack
175+
# this is more in-line with what happens in a real application when the server starts up
176+
self._client.__enter__() # pylint: disable=unnecessary-dunder-call
175177

176178
def tearDown(self):
177179
super().tearDown()

0 commit comments

Comments
 (0)