diff --git a/CHANGES.rst b/CHANGES.rst index 186e8f580..fcb014fde 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,12 @@ .. currentmodule:: werkzeug +Version 3.0.2 +------------- + +Unreleased + +- Fix test failure with Pytest 8.0. :issue:`2845` :pr:`2846` + Version 3.0.1 ------------- diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index e4ee58633..707c744c4 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -8,6 +8,7 @@ from werkzeug.datastructures import Headers from werkzeug.datastructures import WWWAuthenticate from werkzeug.exceptions import HTTPException +from werkzeug.routing import RequestRedirect from werkzeug.wrappers import Response @@ -163,7 +164,10 @@ def test_description_none(): ), ) def test_response_body(cls): - exc = cls() + if cls == RequestRedirect: + exc = cls("https://example.com") + else: + exc = cls() response_body = exc.get_body() assert response_body.startswith("\n\n") assert f"{exc.code} {escape(exc.name)}" in response_body