From 5da342e4dd7dfcc16aa25928ea91d69c2d362f73 Mon Sep 17 00:00:00 2001 From: Marc Hernandez Cabot Date: Thu, 19 Dec 2019 21:40:40 +0100 Subject: [PATCH] fix docstring and remove redundant parentheses --- src/flask/ctx.py | 2 +- tests/test_basic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask/ctx.py b/src/flask/ctx.py index 4e6b40b1..8f96c5fd 100644 --- a/src/flask/ctx.py +++ b/src/flask/ctx.py @@ -75,7 +75,7 @@ class _AppCtxGlobals(object): set and return a default value. Like :meth:`dict.setdefault`. :param name: Name of attribute to get. - :param: default: Value to set and return if the attribute is not + :param default: Value to set and return if the attribute is not present. .. versionadded:: 0.11 diff --git a/tests/test_basic.py b/tests/test_basic.py index 1022d3c9..f2e3ca96 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1689,7 +1689,7 @@ def test_routing_redirect_debugging(app, client): with pytest.raises(AssertionError) as e: client.post("/foo", data={}) assert "http://localhost/foo/" in str(e.value) - assert ("Make sure to directly send your POST-request to this URL") in str( + assert "Make sure to directly send your POST-request to this URL" in str( e.value )