diff --git a/tests/schemas/test_coreapi.py b/tests/schemas/test_coreapi.py index 08e1abd5b..29e44cdef 100644 --- a/tests/schemas/test_coreapi.py +++ b/tests/schemas/test_coreapi.py @@ -1445,7 +1445,7 @@ def test_schema_handles_exception(): @pytest.mark.skipif(not coreapi, reason='coreapi is not installed') def test_coreapi_deprecation(): - with pytest.warns(RemovedInDRF315Warning): + with pytest.warns(RemovedInDRF317Warning): SchemaGenerator() with pytest.warns(RemovedInDRF315Warning):