diff --git a/tests/schemas/test_coreapi.py b/tests/schemas/test_coreapi.py index e7f8c053a..720f70725 100644 --- a/tests/schemas/test_coreapi.py +++ b/tests/schemas/test_coreapi.py @@ -1448,7 +1448,7 @@ def test_coreapi_deprecation(): with pytest.warns(RemovedInDRF317Warning): SchemaGenerator() - with pytest.warns(RemovedInDRF315Warning): + with pytest.warns(RemovedInDRF317Warning): AutoSchema() with pytest.warns(RemovedInDRF315Warning):