[3.1.x] Fixed backends.postgresql.tests.Tests.test_nodb_cursor_raises_postgres_authentication_failure().

Follow up to 9efe832ee1.
This commit is contained in:
Mariusz Felisiak 2021-02-05 06:08:08 +01:00 committed by GitHub
parent 5dec57a6fc
commit efaf9f4ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,
)