We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc89b3 commit f629932Copy full SHA for f629932
instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py
@@ -171,7 +171,9 @@ def setUp(self):
171
self._app = self._create_app()
172
self._app.add_middleware(HTTPSRedirectMiddleware)
173
self._client = TestClient(self._app, base_url="https://testserver:443")
174
- self._client.__enter__() # noqa: C2801 # run the lifespan, initialize the middleware stack
+ # 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
177
178
def tearDown(self):
179
super().tearDown()
0 commit comments