From efaf9f4ac9cb281a73843a86123c4acd9ed11518 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 5 Feb 2021 06:08:08 +0100 Subject: [PATCH] [3.1.x] Fixed backends.postgresql.tests.Tests.test_nodb_cursor_raises_postgres_authentication_failure(). Follow up to 9efe832ee1e5da326e4ee5ed370db963b8fe6624. --- tests/backends/postgresql/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/backends/postgresql/tests.py b/tests/backends/postgresql/tests.py index c37b83bb909..aaac2eb1350 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, )