summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-02-27 22:22:07 +0000
committerianb <devnull@localhost>2006-02-27 22:22:07 +0000
commit358d831fed8517045943353b1c14af1faf3e1aa3 (patch)
tree2169e85cc1654768ba8b0f9be678a967583897a3 /paste/fixture.py
parent254a4aefe341319658c9391bdecd5a90277ecdd9 (diff)
downloadpaste-358d831fed8517045943353b1c14af1faf3e1aa3.tar.gz
Allow any stringifiable argument to be passed to TestApp.get for the URL
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 2e21217..79c3d87 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -183,6 +183,7 @@ class TestApp(object):
environ = self._make_environ()
for header, value in headers.items():
environ['HTTP_%s' % header.replace('-', '_').upper()] = value
+ url = str(url)
if '?' in url:
url, environ['QUERY_STRING'] = url.split('?', 1)
else: