From 579f33eb794fd868512226ecf452fc2bb0628a7c Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 30 Jan 2020 10:35:02 +0100 Subject: Replaced assertWarns() with SimpleTestCase.assertWarnsMessage() in tests. --- tests/auth_tests/test_hashers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auth_tests') diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py index a837c967a7..754149dcea 100644 --- a/tests/auth_tests/test_hashers.py +++ b/tests/auth_tests/test_hashers.py @@ -462,7 +462,7 @@ class BasePasswordHasherTests(SimpleTestCase): def test_harden_runtime(self): msg = 'subclasses of BasePasswordHasher should provide a harden_runtime() method' - with self.assertWarns(Warning, msg=msg): + with self.assertWarnsMessage(Warning, msg): self.hasher.harden_runtime('password', 'encoded') def test_must_update(self): -- cgit v1.3