From d55e453bd55f353bd8834c5cc3850d74684721c5 Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Tue, 27 Feb 2018 20:26:49 -0800 Subject: [PATCH] cleaning up --- sanic/exceptions.py | 2 -- tox.ini | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sanic/exceptions.py b/sanic/exceptions.py index e6402aee..de4d7718 100644 --- a/sanic/exceptions.py +++ b/sanic/exceptions.py @@ -156,8 +156,6 @@ class MethodNotSupported(SanicException): super().__init__(message) self.headers = dict() self.headers["Allow"] = ", ".join(allowed_methods) - # if method in ['HEAD', 'PATCH', 'PUT', 'DELETE']: - # self.headers['Content-Length'] = 0 @add_status_code(500) diff --git a/tox.ini b/tox.ini index bbcec351..71498013 100644 --- a/tox.ini +++ b/tox.ini @@ -18,7 +18,7 @@ deps = beautifulsoup4 gunicorn commands = - pytest tests --cov sanic --cov-report= {posargs} + pytest tests -n 4 --cov sanic --cov-report= {posargs} - coverage combine --append coverage report -m