diff --git a/tests/backends/postgresql/tests.py b/tests/backends/postgresql/tests.py index c37b83bb90..aaac2eb135 100644 --- a/tests/backends/postgresql/tests.py +++ b/tests/backends/postgresql/tests.py @@ -89,7 +89,7 @@ class Tests(TestCase): ) with self.assertWarnsMessage(RuntimeWarning, msg): mocker_connections_all = mock.patch( - 'django.utils.connection.BaseConnectionHandler.all', + 'django.db.utils.ConnectionHandler.all', side_effect=mocked_all, autospec=True, )