From 49c6176d1c40054d028802e66f06eb4beeb97ae4 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 23 Mar 2022 12:20:26 +0200 Subject: [PATCH] Change error type --- tests/test_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_routes.py b/tests/test_routes.py index 6fdf97d594..be23909f04 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -254,7 +254,7 @@ def handler2(request): def test_route_invalid_parameter_syntax(app): - with pytest.raises(InvalidUsage): + with pytest.raises(ValueError): @app.get("/get/<:str>", strict_slashes=True) def handler(request):