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):