summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-09-29 00:05:19 -0600
committerBert JW Regeer <bertjw@regeer.org>2016-09-29 19:07:53 -0600
commitf35a535a1a7677473941699737202f6b87d17c6d (patch)
treed57df6bfb570a34f85cd05be96e3ae986deedeb2 /tests
parent310477ff453011194275c7e897a48cacab95d0c6 (diff)
downloadwebob-f35a535a1a7677473941699737202f6b87d17c6d.tar.gz
Req.body_file no longer accepts bytes
This has been deprecated since WebOb 1.2 and non-functional for a long time.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_request.py b/tests/test_request.py
index 54eef17..ce10ce8 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -101,7 +101,7 @@ class TestRequestCommon(object):
def test_body_file_setter_w_bytes(self):
req = self._blankOne('/')
- with pytest.raises(DeprecationWarning):
+ with pytest.raises(ValueError):
setattr(req, 'body_file', b'foo')
def test_body_file_setter_non_bytes(self):