From 36153279d16e2577ae53278537ed35a15dec16fe Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Thu, 4 Jul 2019 13:57:24 -0400 Subject: [PATCH] [tools] Remove use of deprecated API The "message" parameter of Pytests's `raises` method has been deprecated [1]. This causes a test failure in the current configuration. Since the parameter was not previously serving the intended purpose (that is, it was *not* verifying the message of the raised exception), it may be removed without degrading coverage. [1] https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises --- tools/wptserve/tests/functional/test_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wptserve/tests/functional/test_response.py b/tools/wptserve/tests/functional/test_response.py index 20fb3f776a9e98e..d8d64d54ccc78a3 100644 --- a/tools/wptserve/tests/functional/test_response.py +++ b/tools/wptserve/tests/functional/test_response.py @@ -160,7 +160,7 @@ def handler(request, response): def test_write_raw_none(self): @wptserve.handlers.handler def handler(request, response): - with pytest.raises(ValueError, message="data cannot be None"): + with pytest.raises(ValueError): response.writer.write_raw_content(None) route = ("GET", "/test/test_write_raw_content", handler)