summaryrefslogtreecommitdiff
path: root/webtest
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2018-05-18 12:31:48 +0200
committerGael Pasgrimaud <gael@gawel.org>2018-05-18 12:31:48 +0200
commit25bfadac1d3288fb5f52b36081c636e836694372 (patch)
treef0c41c5f5d385022e399a9f7c32cd49a921df1db /webtest
parent4e29ce304e2295e6c68b2974945b1dc5aa0bc6d3 (diff)
downloadwebtest-25bfadac1d3288fb5f52b36081c636e836694372.tar.gz
fixed #193
Diffstat (limited to 'webtest')
-rw-r--r--webtest/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/forms.py b/webtest/forms.py
index 2a5ff8d..0fb9789 100644
--- a/webtest/forms.py
+++ b/webtest/forms.py
@@ -38,7 +38,7 @@ class Upload(object):
def __iter__(self):
yield self.filename
- if self.content:
+ if self.content is not None:
yield self.content
yield self.content_type
# TODO: do we handle the case when we need to get