diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 16:37:43 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 16:37:43 +0200 |
commit | 5cdae44edea5f766cae9bf3b20dd6fcad5b705ab (patch) | |
tree | d6485069f2180410e78400ad16afc5e39084e144 /tests | |
parent | c7e5265cf84a3dd6d17aed875e0849da2aa9d54d (diff) | |
download | paste-5cdae44edea5f766cae9bf3b20dd6fcad5b705ab.tar.gz |
Port recursive to Python 3
HTTP body is bytes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_recursive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_recursive.py b/tests/test_recursive.py index 8d2f96b..7664382 100644 --- a/tests/test_recursive.py +++ b/tests/test_recursive.py @@ -5,10 +5,10 @@ from paste.recursive import RecursiveMiddleware, ForwardRequestException def error_docs_app(environ, start_response): if environ['PATH_INFO'] == '/not_found': start_response("404 Not found", [('Content-type', 'text/plain')]) - return ['Not found'] + return [b'Not found'] elif environ['PATH_INFO'] == '/error': start_response("200 OK", [('Content-type', 'text/plain')]) - return ['Page not found'] + return [b'Page not found'] elif environ['PATH_INFO'] == '/recurse': raise ForwardRequestException('/recurse') else: |