summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-09-03 19:20:00 -0700
committerBenjamin Peterson <benjamin@python.org>2019-09-03 19:21:11 -0700
commite509d245be993c336fbc6aa3cf1abc399bed3a65 (patch)
tree4350f5294fdd6ae75cee0eb3ad00bdc473864094 /paste/fixture.py
parentcdd2a9a58c59b8e599aa42b66b3c55ea47c7a4b7 (diff)
downloadpaste-git-benjaminp-fixture-unicode-paths.tar.gz
TestApp: Make unicode urls always work.benjaminp-fixture-unicode-paths
Passing a unicode url to get() always worked (assuming the url contained only ASCII), but it didn't work to post(), put(), or delete() if query parameters were included. This change fixes the latter cases.
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/paste/fixture.py b/paste/fixture.py
index 969863c..4b88718 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -235,6 +235,7 @@ class TestApp(object):
environ['CONTENT_TYPE'] = content_type
elif params:
environ.setdefault('CONTENT_TYPE', 'application/x-www-form-urlencoded')
+ url = str(url)
if '?' in url:
url, environ['QUERY_STRING'] = url.split('?', 1)
else: