Skip to content

Commit 58f6a52

Browse files
rbagdxrmx
authored andcommitted
Upgrade Werkzeug library for testing (open-telemetry#2623)
1 parent cea505e commit 58f6a52

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

instrumentation/opentelemetry-instrumentation-pyramid/test-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ translationstring==1.4
1717
typing_extensions==4.9.0
1818
venusian==3.1.0
1919
WebOb==1.8.7
20-
Werkzeug==0.16.1
20+
Werkzeug==3.0.3
2121
wrapt==1.16.0
2222
zipp==3.17.0
2323
zope.deprecation==5.0

instrumentation/opentelemetry-instrumentation-pyramid/tests/pyramid_base_test.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414

1515
import pyramid.httpexceptions as exc
1616
from pyramid.response import Response
17-
from werkzeug.test import Client
18-
19-
# opentelemetry-instrumentation-pyramid uses werkzeug==0.16.1 which has
20-
# werkzeug.wrappers.BaseResponse. This is not the case for newer versions of
21-
# werkzeug like the one lint uses.
22-
from werkzeug.wrappers import BaseResponse # pylint: disable=no-name-in-module
17+
from werkzeug.test import Client, TestResponse
2318

2419

2520
class InstrumentationTest:
@@ -77,4 +72,4 @@ def excluded2_endpoint(request):
7772
)
7873

7974
# pylint: disable=attribute-defined-outside-init
80-
self.client = Client(config.make_wsgi_app(), BaseResponse)
75+
self.client = Client(config.make_wsgi_app(), TestResponse)

0 commit comments

Comments
 (0)