Skip to content

Commit

Permalink
pallets upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed May 12, 2021
1 parent 31ba8da commit 734476b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
5 changes: 4 additions & 1 deletion conbench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def _init_api_docs(application):

def _json_http_errors(e):
import flask as f
from werkzeug.wrappers.response import Response as WSGIResponse

response = e.get_response()
# TODO: revert back to response = e.get_response() once this is fixed
# https://github.com/pallets/werkzeug/issues/2115
response = WSGIResponse("body omitted", e.code, e.get_headers(None, None))
data = {"code": e.code, "name": e.name}
if e.code == 400:
data["description"] = e.description
Expand Down
22 changes: 11 additions & 11 deletions conbench/tests/benchmark/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
Options:
--iterations INTEGER [default: 1]
--drop-caches BOOLEAN [default: false]
--gc-collect BOOLEAN [default: true]
--gc-disable BOOLEAN [default: true]
--show-result BOOLEAN [default: true]
--show-output BOOLEAN [default: false]
--drop-caches BOOLEAN [default: False]
--gc-collect BOOLEAN [default: True]
--gc-disable BOOLEAN [default: True]
--show-result BOOLEAN [default: True]
--show-output BOOLEAN [default: False]
--run-id TEXT Group executions together with a run id.
--run-name TEXT Name of run (commit, pull request, etc).
--help Show this message and exit.
Expand Down Expand Up @@ -80,14 +80,14 @@
Options:
--color [green|pink|yellow]
--fruit [apple|orange]
--all BOOLEAN [default: false]
--all BOOLEAN [default: False]
--count INTEGER [default: 1]
--iterations INTEGER [default: 1]
--drop-caches BOOLEAN [default: false]
--gc-collect BOOLEAN [default: true]
--gc-disable BOOLEAN [default: true]
--show-result BOOLEAN [default: true]
--show-output BOOLEAN [default: false]
--drop-caches BOOLEAN [default: False]
--gc-collect BOOLEAN [default: True]
--gc-disable BOOLEAN [default: True]
--show-result BOOLEAN [default: True]
--show-output BOOLEAN [default: False]
--run-id TEXT Group executions together with a run id.
--run-name TEXT Name of run (commit, pull request, etc).
--help Show this message and exit.
Expand Down

0 comments on commit 734476b

Please sign in to comment.