From 8754e9b2b0fe1191373854c6e6fb0b88ad009400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Jul 2018 12:17:30 +0200 Subject: [PATCH] tests: add proper fix for test of validation error message (#25403) --- tests/test_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_all.py b/tests/test_all.py index 1abe33510..98a5a9826 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -206,7 +206,7 @@ class ValidatorsTest(TestCase): from authentic2.validators import validate_password from django.core.exceptions import ValidationError - with self.assertRaisesRegexp(ValidationError): + with pytest.raises(ValidationError): validate_password('aaa') validate_password('12345678')