Skip to content

Commit

Permalink
[tools] Remove use of deprecated API
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jugglinmike authored and natechapin committed Aug 23, 2019
1 parent 6fb4762 commit 3615327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/wptserve/tests/functional/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3615327

Please sign in to comment.