summaryrefslogtreecommitdiff
path: root/webtest/__init__.py
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2011-07-16 02:26:30 +0200
committerGael Pasgrimaud <gael@gawel.org>2011-07-16 02:26:30 +0200
commit9d0b22096df38096a56deb0cd1e04547e8ac1807 (patch)
treebf035403bab6ba25b4f1067f2e63059a5351e14d /webtest/__init__.py
parent793492cb5cf83b6f411de430f1526e246e9ca71b (diff)
parenta5f1e7f96f5a39f4aaa68c088e599d1d03586acc (diff)
downloadwebtest-9d0b22096df38096a56deb0cd1e04547e8ac1807.tar.gz
merge pull request
Diffstat (limited to 'webtest/__init__.py')
-rw-r--r--webtest/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/__init__.py b/webtest/__init__.py
index 95f2686..e78badd 100644
--- a/webtest/__init__.py
+++ b/webtest/__init__.py
@@ -713,6 +713,7 @@ class TestApp(object):
environ = self._make_environ(extra_environ)
# Hide from py.test:
__tracebackhide__ = True
+ url = self._remove_fragment(url)
if params:
if not isinstance(params, (str, unicode)):
params = urllib.urlencode(params, doseq=True)
@@ -726,7 +727,6 @@ class TestApp(object):
url, environ['QUERY_STRING'] = url.split('?', 1)
else:
environ['QUERY_STRING'] = ''
- url = self._remove_fragment(url)
req = self.RequestClass.blank(url, environ)
if headers:
req.headers.update(headers)