From 0819957eda318205e17591dccd81482701eab25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Mon, 30 Apr 2012 21:40:02 +0300 Subject: [PATCH] Use faster password hasher in sqlite tests Fixed #18163 --- tests/test_sqlite.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py index 41c3b25b68..c04ef97cd0 100644 --- a/tests/test_sqlite.py +++ b/tests/test_sqlite.py @@ -22,3 +22,9 @@ DATABASES = { } SECRET_KEY = "django_tests_secret_key" +# To speed up tests under SQLite we use the MD5 hasher as the default one. +# This should not be needed under other databases, as the relative speedup +# is only marginal there. +PASSWORD_HASHERS = ( + 'django.contrib.auth.hashers.MD5PasswordHasher', +)