From 084f0d27a3dbb5b93f0e544b9f0c762fba31acc3 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 11 Apr 2017 15:19:00 -0500 Subject: [PATCH 1/3] Increment to 0.5.0 --- sanic/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/__init__.py b/sanic/__init__.py index b67a3a6a..7bf0994a 100644 --- a/sanic/__init__.py +++ b/sanic/__init__.py @@ -1,6 +1,6 @@ from sanic.app import Sanic from sanic.blueprints import Blueprint -__version__ = '0.4.1' +__version__ = '0.5.0' __all__ = ['Sanic', 'Blueprint'] From d20a49e5006a0ee3c6e64a11feb253fadcd840df Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 11 Apr 2017 16:02:49 -0500 Subject: [PATCH 2/3] Lock chardet for now... --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index 28014eb6..163df025 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,6 @@ aiofiles aiohttp==1.3.5 +chardet<=2.3.0 beautifulsoup4 coverage httptools From 015c87b5e1c3023a3fea229d235273093b17496d Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 11 Apr 2017 16:02:57 -0500 Subject: [PATCH 3/3] Add traceback for better debugging --- sanic/testing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sanic/testing.py b/sanic/testing.py index 1cad6a7b..787106a6 100644 --- a/sanic/testing.py +++ b/sanic/testing.py @@ -1,3 +1,5 @@ +import traceback + from sanic.log import log HOST = '127.0.0.1' @@ -50,6 +52,8 @@ class SanicTestClient: **request_kwargs) results[-1] = response except Exception as e: + log.error( + 'Exception:\n{}'.format(traceback.format_exc())) exceptions.append(e) self.app.stop()