summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-06-04 20:17:24 +0000
committerianb <devnull@localhost>2006-06-04 20:17:24 +0000
commitd5fe8730755b970608e0fbb3ecd3d148dc47a9ec (patch)
tree36a70d4fe4aef9e34b27a9400a87ecb7727b5227
parent5b02061b69a69cbe10ff6cb717d0f49d50269af7 (diff)
downloadpaste-d5fe8730755b970608e0fbb3ecd3d148dc47a9ec.tar.gz
Handle case with testapp.post(params={})
-rw-r--r--docs/news.txt2
-rw-r--r--paste/fixture.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/news.txt b/docs/news.txt
index 896feb7..759f662 100644
--- a/docs/news.txt
+++ b/docs/news.txt
@@ -11,6 +11,8 @@ NEWS
* Added a warning to ``paste.wsgilib.add_close`` if the upstream
app_iter consumer doesn't call the ``app_iter.close()`` method.
+* Fixed ``testapp.post(params={})``
+
0.9.3
-----
diff --git a/paste/fixture.py b/paste/fixture.py
index 9cfebfa..ca29204 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -217,7 +217,7 @@ class TestApp(object):
extra_environ = {}
environ = self._make_environ()
# @@: Should this be all non-strings?
- if params and isinstance(params, (list, tuple, dict)):
+ if isinstance(params, (list, tuple, dict)):
params = urllib.urlencode(params)
if upload_files:
params = cgi.parse_qsl(params, keep_blank_values=True)