diff options
-rw-r--r-- | paste/fixture.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index df1c75d..363f119 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -226,8 +226,8 @@ class TestApp(object): if hasattr(params, 'items'): # Some other multi-dict like format params = urlencode(params.items()) - if six.PY3: - params = params.encode('utf8') + if six.PY3 and isinstance(params, six.text_type): + params = params.encode('utf8') if upload_files: params = urlparse.parse_qsl(params, keep_blank_values=True) content_type, params = self.encode_multipart( |