summaryrefslogtreecommitdiff
path: root/tests/urlparser_data/not_found/user/list.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/urlparser_data/not_found/user/list.py')
-rw-r--r--tests/urlparser_data/not_found/user/list.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/urlparser_data/not_found/user/list.py b/tests/urlparser_data/not_found/user/list.py
index f6228f0..fd7482f 100644
--- a/tests/urlparser_data/not_found/user/list.py
+++ b/tests/urlparser_data/not_found/user/list.py
@@ -1,3 +1,8 @@
+import six
+
def application(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
- return ['user: %s' % environ.get('app.user')]
+ body = 'user: %s' % environ.get('app.user')
+ if six.PY3:
+ body = body.encode('ascii')
+ return [body]