This PR fixes a failing test based on using pytest.deprecated_call with pytest < 3.9.1.
pytest.deprecated_call
pytest < 3.9.1