Skip to content

Commit ee5ab29

Browse files
authored
fix failing tests for docs and py312-asgi (#4620)
* fix ci Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * fix again Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> --------- Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
1 parent 98913a9 commit ee5ab29

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/nitpick-exceptions.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ py-class=
4646
psycopg.AsyncConnection
4747
ObjectProxy
4848
wrapt.proxies.ObjectProxy
49+
_wrappers.ObjectProxy
4950
fastapi.applications.FastAPI
5051
starlette.applications.Starlette
5152
_contextvars.Token

instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,13 @@ def setUp(self):
323323

324324
self.env_patch.start()
325325

326+
def tearDown(self):
327+
self.env_patch.stop()
328+
super().tearDown()
329+
326330
def subTest(self, msg=..., **params):
327331
sub = super().subTest(msg, **params)
328-
# Reinitialize test state to avoid state pollution
329-
self.setUp()
332+
self.memory_exporter.clear()
330333
return sub
331334

332335
# Helper to assert exemplars presence across specified histogram metric names.

0 commit comments

Comments
 (0)