summaryrefslogtreecommitdiff
path: root/webtest
diff options
context:
space:
mode:
authorGael Pasgrimaud <gael@gawel.org>2014-04-16 21:55:44 +0200
committerGael Pasgrimaud <gael@gawel.org>2014-04-16 21:55:44 +0200
commit6a0435bb75ca02f3dac157f06b49b757aede04d9 (patch)
tree80114fe0abc4f0536d41acf4fb1a81c66b2099dd /webtest
parent7e5e556d3d1830813446b2bf055a615e1675a48b (diff)
downloadwebtest-6a0435bb75ca02f3dac157f06b49b757aede04d9.tar.gz
Fixed #89
Diffstat (limited to 'webtest')
-rw-r--r--webtest/app.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/webtest/app.py b/webtest/app.py
index 7d6eb79..40a7723 100644
--- a/webtest/app.py
+++ b/webtest/app.py
@@ -14,7 +14,6 @@ import re
import json
import random
import fnmatch
-import warnings
import mimetypes
from base64 import b64encode
@@ -339,7 +338,7 @@ class TestApp(object):
expect_errors=expect_errors,
content_type=content_type)
- def delete(self, url, params=utils.NoDefault, headers=None,
+ def delete(self, url, params='', headers=None,
extra_environ=None, status=None, expect_errors=False,
content_type=None, xhr=False):
"""
@@ -622,11 +621,6 @@ class TestApp(object):
Do a generic request.
"""
- if method == 'DELETE' and params is not utils.NoDefault:
- warnings.warn(('You are not supposed to send a body in a '
- 'DELETE request. Most web servers will ignore it'),
- lint.WSGIWarning)
-
environ = self._make_environ(extra_environ)
inline_uploads = []